summaryrefslogtreecommitdiffstats
path: root/src/speedcheck.h
diff options
context:
space:
mode:
authorSimon Rettberg2017-02-24 12:33:55 +0100
committerSimon Rettberg2017-02-24 12:33:55 +0100
commitd4f10f9fe446da2aff65088e5236d6ffcdd034b5 (patch)
tree5d7467a6f67272064619c000a14800e706368ac6 /src/speedcheck.h
downloadspeedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.gz
speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.xz
speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.zip
initial commit
Diffstat (limited to 'src/speedcheck.h')
-rw-r--r--src/speedcheck.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/speedcheck.h b/src/speedcheck.h
new file mode 100644
index 0000000..fd54605
--- /dev/null
+++ b/src/speedcheck.h
@@ -0,0 +1,35 @@
+#ifndef SPEEDCHECK_H_
+#define SPEEDCHECK_H_
+
+#include <QMainWindow>
+#include <QTimer>
+
+namespace Ui
+{
+ class MainWindow;
+}
+class CopyThread;
+
+class SpeedCheck : public QMainWindow
+{
+ Q_OBJECT
+public:
+ SpeedCheck(QString fileName);
+ virtual ~SpeedCheck();
+
+private slots:
+ void logMessage(QString message);
+ void startClicked(bool);
+ void quitClicked(bool);
+ void testFinished();
+ void updateTimer();
+
+private:
+ Ui::MainWindow *_ui;
+ CopyThread *_thread;
+ volatile bool _doQuit;
+ QString _fileName;
+ QTimer _timer;
+};
+
+#endif /* SPEEDCHECK_H_ */