1 #ifndef OPERATIONDIALOG_H
\r
2 #define OPERATIONDIALOG_H
\r
4 #include "operationworker.h"
\r
9 class OperationDialog;
\r
12 class OperationDialog : public QDialog
\r
17 explicit OperationDialog(QWidget *parent = 0);
\r
20 void setWorker(OperationWorker *worker) {
\r
23 void setAutoClose(bool yes);
\r
24 bool autoClose() const;
\r
27 Ui::OperationDialog *ui;
\r
29 OperationWorker* m_worker;
\r
33 void onProgress(const QString &msg);
\r
34 void onSuccess(const QString &msg);
\r
35 void onError(const QString &msg);
\r
36 void onFinished(bool abort);
\r
37 void on_btnCloseCancel_clicked();
\r
38 void on_btnShowDetail_clicked();
\r
40 // QDialog interface
\r
45 #endif // OPERATIONDIALOG_H
\r