Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
DlgErrorReport.h
1 #ifndef DLG_ERROR_REPORT_H
2 #define DLG_ERROR_REPORT_H
3 
4 #include <QDialog>
5 
6 class QCheckBox;
7 class QPushButton;
8 
11 class DlgErrorReport : public QDialog
12 {
13  Q_OBJECT;
14 
15  public:
17  DlgErrorReport (const QString &xmlWithoutDocument,
18  const QString &xmlWithDocument,
19  QWidget *parent = 0);
20 
21  ~DlgErrorReport();
22 
24  QString xmlToUpload() const;
25 
26  private slots:
27  void slotDocumentCheckboxChanged(int);
28  void slotSend();
29 
30  private:
31  DlgErrorReport ();
32 
33  QString errorFile () const;
34  void removeFile () const;
35  void saveFile (const QString &xml) const;
36  void updateFile();
37 
38  QCheckBox *m_chkWithDocument;
39  QPushButton *m_btnSend;
40  QPushButton *m_btnCancel;
41  QString m_xmlWithoutDocument;
42  QString m_xmlWithDocument;
43  QString m_xmlToUpload; // Either m_xmlWithoutDocument or m_xmlWithDocument
44 };
45 
46 #endif // DLG_ERROR_REPORT_H
QString xmlToUpload() const
Xml to be uploaded. Includes document if user has approved.
Dialog for sending error report.