1 #ifndef ABSTRACTWORKER_H
\r
2 #define ABSTRACTWORKER_H
\r
8 class AbstractWorker : public QObject
\r
12 explicit AbstractWorker(QObject *parent = 0);
\r
14 void setProgressText(QLabel *label);
\r
18 QLabel *m_progressText;
\r
20 bool isStopRequested();
\r
25 void operation(const QString &msg);
\r
26 void success(const QString &msg);
\r
27 void error(const QString &msg);
\r
30 virtual void operate() = 0;
\r
34 bool m_stopRequested;
\r
37 #endif // ABSTRACTWORKER_H
\r