Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
DlgErrorReport.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef DLG_ERROR_REPORT_H
8 #define DLG_ERROR_REPORT_H
9 
10 #include <QDialog>
11 
12 class QCheckBox;
13 class QPushButton;
14 
17 class DlgErrorReport : public QDialog
18 {
19  Q_OBJECT;
20 
21  public:
23  DlgErrorReport (const QString &xmlWithImage,
24  QWidget *parent = 0);
25 
26  ~DlgErrorReport();
27 
29  QString xmlToUpload() const;
30 
31  private slots:
32  void slotDocumentCheckboxChanged(int);
33  void slotSend();
34 
35  private:
36  DlgErrorReport ();
37 
38  QString errorFile () const;
39  void removeFile () const;
40  void saveFile (const QString &xml) const;
41  void updateFile();
42 
43  QCheckBox *m_chkOriginal;
44  QPushButton *m_btnSend;
45  QPushButton *m_btnCancel;
46  QString m_xmlOriginal;
47  QString m_xmlAnonymized;
48  QString m_xmlToUpload; // Either m_xmlWithoutDocument or m_xmlWithDocument
49 };
50 
51 #endif // DLG_ERROR_REPORT_H
QString xmlToUpload() const
Xml to be uploaded. Includes document if user has approved.
Dialog for sending error report.