1 #ifndef OPERATIONDIALOG_H
\r
2 #define OPERATIONDIALOG_H
\r
5 class OperationWorker;
\r
8 class OperationDialog;
\r
11 class OperationDialog : public QDialog
\r
16 explicit OperationDialog(QWidget *parent = 0);
\r
19 void setWorker(OperationWorker *worker) {
\r
22 void setAutoClose(bool yes);
\r
23 bool autoClose() const;
\r
26 Ui::OperationDialog *ui;
\r
28 OperationWorker* m_worker;
\r
32 void onProgress(const QString &msg);
\r
33 void onSuccess(const QString &msg);
\r
34 void onError(const QString &msg);
\r
35 void onFinished(bool abort);
\r
36 void on_btnCloseCancel_clicked();
\r
37 void on_btnShowDetail_clicked();
\r
39 // QDialog interface
\r
44 #endif // OPERATIONDIALOG_H
\r