00001
00002
00003
00004
00005
00006
00007 #ifndef DLG_ERROR_REPORT_H
00008 #define DLG_ERROR_REPORT_H
00009
00010 #include <QDialog>
00011
00012 class QCheckBox;
00013 class QPushButton;
00014
00017 class DlgErrorReport : public QDialog
00018 {
00019 Q_OBJECT;
00020
00021 public:
00023 DlgErrorReport (const QString &xmlWithImage,
00024 QWidget *parent = 0);
00025
00026 ~DlgErrorReport();
00027
00029 QString xmlToUpload() const;
00030
00031 private slots:
00032 void slotDocumentCheckboxChanged(int);
00033 void slotSend();
00034
00035 private:
00036 DlgErrorReport ();
00037
00038 QString errorFile () const;
00039 void removeFile () const;
00040 void saveFile (const QString &xml) const;
00041 void updateFile();
00042
00043 QCheckBox *m_chkOriginal;
00044 QPushButton *m_btnSend;
00045 QPushButton *m_btnCancel;
00046 QString m_xmlOriginal;
00047 QString m_xmlAnonymized;
00048 QString m_xmlToUpload;
00049 };
00050
00051 #endif // DLG_ERROR_REPORT_H