summaryrefslogtreecommitdiffstats
path: root/src/copythread.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/copythread.h
downloadspeedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.gz
speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.xz
speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.zip
initial commit
Diffstat (limited to 'src/copythread.h')
-rw-r--r--src/copythread.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/copythread.h b/src/copythread.h
new file mode 100644
index 0000000..428c7fa
--- /dev/null
+++ b/src/copythread.h
@@ -0,0 +1,26 @@
+#ifndef COPYTHREAD_H_
+#define COPYTHREAD_H_
+
+#include <QThread>
+
+class QFile;
+
+class CopyThread : public QThread {
+ Q_OBJECT
+public:
+ CopyThread(QFile *file, QObject *parent = NULL);
+ virtual ~CopyThread();
+ void stop();
+
+protected:
+ virtual void run();
+
+private:
+ QFile *_file;
+ volatile bool _doStop;
+
+signals:
+ void logMessage(QString message);
+};
+
+#endif /* COPYTHREAD_H_ */