Engauge Digitizer  2
DlgErrorReportNetworking.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_NETWORKING_H
8 #define DLG_ERROR_REPORT_NETWORKING_H
9 
10 #include "DlgErrorReportAbstractBase.h"
11 
12 class QCheckBox;
13 class QPushButton;
14 
18 {
19  Q_OBJECT;
20 
21  public:
23  DlgErrorReportNetworking (const QString &xmlWithImage,
24  QWidget *parent = 0);
26 
28  QString xmlToUpload() const;
29 
30  private slots:
31  void slotDocumentCheckboxChanged(int);
32  void slotSend();
33 
34  private:
36 
37  void removeFile () const;
38  void updateFile();
39 
40  QCheckBox *m_chkOriginal;
41  QPushButton *m_btnSend;
42  QPushButton *m_btnCancel;
43  QString m_xmlOriginal;
44  QString m_xmlAnonymized;
45  QString m_xmlToUpload; // Either m_xmlWithoutDocument or m_xmlWithDocument
46 };
47 
48 #endif // DLG_ERROR_REPORT_NETWORKING_H
Dialog for sending error report with networking.
QString xmlToUpload() const
Xml to be uploaded. Includes document if user has approved.
Base class for dialogs that handle the error report.