Vidalia 0.3.1
CrashReportDialog.h
Go to the documentation of this file.
1/*
2** This file is part of Vidalia, and is subject to the license terms in the
3** LICENSE file, found in the top level directory of this distribution. If you
4** did not receive the LICENSE file with this file, you may obtain it from the
5** Vidalia source package distributed by the Vidalia Project at
6** http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
7** including this file, may be copied, modified, propagated, or distributed
8** except according to the terms described in the LICENSE file.
9*/
10
11/*
12** \file CrashReportDialog.h
13** \brief Dialog that asks the user whether they would like to
14** submit the crash report, along with optional additional details
15** about what they were doing at the time of the crash.
16*/
17
18#include "ui_CrashReportDialog.h"
19
20#include <QHash>
21#include <QByteArray>
22
23class QString;
24
25
26class CrashReportDialog : public QDialog
27{
28 Q_OBJECT
29
30public:
31 /** Default constructor.
32 */
33 CrashReportDialog(QWidget *parent = 0);
34
35 /** Sets the crash <b>annotations</b> key-value pairs associated with
36 * the generated minidump.
37 */
38 void setCrashAnnotations(const QHash<QString,QString> &annotations);
39
40 /** Sets the <b>minidump</b> contents generated by the crashed
41 * applications exception handler.
42 */
43 void setMinidumpFiles(const QString &minidump, const QString &annotations);
44
45public slots:
46 /** Called when the user clicks the "Restart Vidalia" button on the
47 * dialog. If the "Submit my crash report..." checkbox is checked, it
48 * will first attempt to submit the crash report. After that is complete,
49 * it will try to restart the Vidalia process with any arguments specified
50 * in the crash annotations file.
51 * \sa setCrashAnnotations()
52 */
53 virtual void accept();
54
55private:
56 /** Minidump path
57 */
59
60 /** Minidump info path
61 */
63
64 /** Set of parsed key-value pairs generated by the crashed application's
65 * exception handler and written alongside the minidump.
66 */
67 QHash<QString,QString> _annotations;
68
69 /** Qt Designer created object.
70 */
71 Ui::CrashReportDialog ui;
72};
73
void setCrashAnnotations(const QHash< QString, QString > &annotations)
QHash< QString, QString > _annotations
CrashReportDialog(QWidget *parent=0)
void setMinidumpFiles(const QString &minidump, const QString &annotations)
Ui::CrashReportDialog ui
virtual void accept()