summaryrefslogtreecommitdiffstats
path: root/src/copythread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/copythread.h')
-rw-r--r--src/copythread.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/copythread.h b/src/copythread.h
index 428c7fa..ce6be83 100644
--- a/src/copythread.h
+++ b/src/copythread.h
@@ -2,6 +2,7 @@
#define COPYTHREAD_H_
#include <QThread>
+#include <QMetaType>
class QFile;
@@ -12,6 +13,13 @@ public:
virtual ~CopyThread();
void stop();
+ enum LogMessageId {
+ None,
+ TestSequentialStart,
+ TestRandomStart,
+ TestFinished,
+ };
+
protected:
virtual void run();
@@ -20,7 +28,9 @@ private:
volatile bool _doStop;
signals:
- void logMessage(QString message);
+ void logMessage(LogMessageId msgId, QString message);
};
+Q_DECLARE_METATYPE(CopyThread::LogMessageId);
+
#endif /* COPYTHREAD_H_ */