#include <CrashReportDialog.h>
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 |
Definition at line 27 of file CrashReportDialog.h.
CrashReportDialog::CrashReportDialog | ( | QWidget * | parent = 0 |
) |
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.
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.
Definition at line 59 of file CrashReportDialog.cpp.
References _annotations, _minidump, _minidumpId, accept(), CrashReportUploader::cancel(), ui, and CrashReportUploader::uploadMinidump().
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().