summaryrefslogtreecommitdiffstats
path: root/src/speedcheck.h
blob: fd54605ff4175be233485de3b75d09294c207f1d (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
27
28
29
30
31
32
33
34
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_ */