CrashReportDialog Class Reference

#include <CrashReportDialog.h>

List of all members.

Public Slots

virtual void accept ()
virtual void reject ()

Public Member Functions

 CrashReportDialog (QWidget *parent=0)
void setCrashAnnotations (const QHash< QString, QString > &annotations)
void setMinidump (const QString &id, const QByteArray &minidump)
void submitCrashReport ()

Private Attributes

QString _minidumpId
QByteArray _minidump
QHash< QString, QString > _annotations
Ui::CrashReportDialog ui


Detailed Description

Definition at line 27 of file CrashReportDialog.h.


Constructor & Destructor Documentation

CrashReportDialog::CrashReportDialog ( QWidget *  parent = 0  ) 

Default constructor.

Definition at line 31 of file CrashReportDialog.cpp.

References ui.


Member Function Documentation

void CrashReportDialog::accept (  )  [virtual, slot]

Called when the user clicks the "Restart Vidalia" button on the dialog. If the "Submit my crash report..." checkbox is checked, it will first attempt to submit the crash report. After that is complete, it will try to restart the Vidalia process with any arguments specified in the crash annotations file.

See also:
setCrashAnnotations()

Definition at line 97 of file CrashReportDialog.cpp.

References _annotations, string_parse_arguments(), submitCrashReport(), and ui.

Referenced by submitCrashReport().

void CrashReportDialog::reject (  )  [virtual, slot]

Called when the user clicks the "Don't Restart" button on the dialog. If the "Submit my crash report.." checkbox is checked, it will attempt to submit the crash report and then exit without restarting Vidalia.

Definition at line 120 of file CrashReportDialog.cpp.

References submitCrashReport(), and ui.

void CrashReportDialog::setCrashAnnotations ( const QHash< QString, QString > &  annotations  ) 

Sets the crash annotations key-value pairs associated with the generated minidump.

Definition at line 46 of file CrashReportDialog.cpp.

References _annotations.

Referenced by main().

void CrashReportDialog::setMinidump ( const QString &  id,
const QByteArray &  minidump 
)

Sets the minidump contents generated by the crashed applications exception handler.

Definition at line 52 of file CrashReportDialog.cpp.

References _minidump, and _minidumpId.

Referenced by main().

void CrashReportDialog::submitCrashReport (  ) 

Uploads the generated minidump, user comments, and any additional crash annotations generated by the exception handler to the crash reporting server.

See also:
setMinidump()

setCrashAnnotations()

Definition at line 59 of file CrashReportDialog.cpp.

References _annotations, _minidump, _minidumpId, accept(), CrashReportUploader::cancel(), ui, and CrashReportUploader::uploadMinidump().

Referenced by accept(), and reject().


Member Data Documentation

QHash<QString,QString> CrashReportDialog::_annotations [private]

Set of parsed key-value pairs generated by the crashed application's exception handler and written alongside the minidump.

Definition at line 86 of file CrashReportDialog.h.

Referenced by accept(), setCrashAnnotations(), and submitCrashReport().

QByteArray CrashReportDialog::_minidump [private]

Contents of the generated minidump.

Definition at line 81 of file CrashReportDialog.h.

Referenced by setMinidump(), and submitCrashReport().

QString CrashReportDialog::_minidumpId [private]

Each minidump is given a randomly-generated GUID when it is created, which is used to form the minidump filename. This ID is also used by the crash reporting server when accepting and processing uploaded minidumps.

Definition at line 77 of file CrashReportDialog.h.

Referenced by setMinidump(), and submitCrashReport().

Ui::CrashReportDialog CrashReportDialog::ui [private]

Qt Designer created object.

Definition at line 90 of file CrashReportDialog.h.

Referenced by accept(), CrashReportDialog(), reject(), and submitCrashReport().


The documentation for this class was generated from the following files:

Generated on Mon Aug 30 19:10:02 2010 for Vidalia by  doxygen 1.5.9