diff options
author | Simon Rettberg | 2017-02-24 12:33:55 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-02-24 12:33:55 +0100 |
commit | d4f10f9fe446da2aff65088e5236d6ffcdd034b5 (patch) | |
tree | 5d7467a6f67272064619c000a14800e706368ac6 /src/copythread.h | |
download | speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.gz speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.xz speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.zip |
initial commit
Diffstat (limited to 'src/copythread.h')
-rw-r--r-- | src/copythread.h | 26 |
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_ */ |