1 #ifndef OPERATIONDIALOG_H
\r
2 #define OPERATIONDIALOG_H
\r
8 class OperationDialog;
\r
11 class OperationDialog : public QDialog
\r
16 explicit OperationDialog(QWidget *parent = 0);
\r
19 void setWorker(IWorker *worker) {
\r
22 void setAutoClose(bool yes);
\r
23 bool autoClose() const;
\r
26 void showEvent(QShowEvent *);
\r
29 Ui::OperationDialog *ui;
\r
34 void onOperation(const QString &msg);
\r
35 void onSuccess(const QString &msg);
\r
36 void onError(const QString &msg);
\r
39 void on_btnCloseCancel_clicked();
\r
40 void on_btnShowDetail_clicked();
\r
43 #endif // OPERATIONDIALOG_H
\r