summaryrefslogtreecommitdiffstats
path: root/src/consoleworker.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/consoleworker.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/consoleworker.h')
-rw-r--r--src/consoleworker.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/consoleworker.h b/src/consoleworker.h
new file mode 100644
index 0000000..276f987
--- /dev/null
+++ b/src/consoleworker.h
@@ -0,0 +1,34 @@
+#ifndef _CONSOLEWORKER_H_
+#define _CONSOLEWORKER_H_
+
+#include "datasource/idatasource.h"
+#include "copythread.h"
+
+#include <QString>
+#include <QTimer>
+#include <QVector>
+
+class CopyThread;
+
+class ConsoleWorker : public QObject
+{
+ Q_OBJECT
+
+public:
+ ConsoleWorker(QString fileName);
+ virtual ~ConsoleWorker();
+
+private slots:
+ void logMessage(CopyThread::LogMessageId msgId, QString message);
+ void testFinished();
+ void updateTimer();
+
+private:
+ CopyThread *_thread;
+ QString _fileName;
+ QTimer _timer;
+ IDataSource* _networkSource;
+ QVector<int> _series;
+};
+
+#endif