summaryrefslogtreecommitdiffstats
path: root/src/copythread.h
blob: 428c7fa60afbf62fe5fc516405748b0dc87ebf48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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_ */