summaryrefslogtreecommitdiffstats
path: root/src/copythread.h
diff options
context:
space:
mode:
authorSimon Rettberg2022-06-22 16:44:30 +0200
committerSimon Rettberg2022-06-22 16:44:30 +0200
commit880fbb84acf853be8ac0c5a23ff0475e8ce6dff0 (patch)
tree5869e19b02f5698ed7c47cf9a8240fc46e37bc71 /src/copythread.h
parentSet maximum to ~120MB/s, about matches theoretical maximum of GBit NIC (diff)
downloadspeedcheck-880fbb84acf853be8ac0c5a23ff0475e8ce6dff0.tar.gz
speedcheck-880fbb84acf853be8ac0c5a23ff0475e8ce6dff0.tar.xz
speedcheck-880fbb84acf853be8ac0c5a23ff0475e8ce6dff0.zip
Add --console mode, to be used remotely
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_ */