summaryrefslogtreecommitdiffstats
path: root/src/speedcheck.h
blob: c665ff0cc6e0710d192302210a8f1f532ced5b60 (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
36
#ifndef SPEEDCHECK_H_
#define SPEEDCHECK_H_

#include <QMainWindow>
#include <QTimer>
#include "copythread.h"

namespace Ui
{
	class MainWindow;
}
class CopyThread;

class SpeedCheck : public QMainWindow
{
	Q_OBJECT
public:
	SpeedCheck(QString fileName, bool autoStart);
	virtual ~SpeedCheck();

private slots:
	void logMessage(CopyThread::LogMessageId msgId, QString message);
	void startClicked(bool);
	void quitClicked(bool);
	void testFinished();
	void updateTimer();

private:
	Ui::MainWindow *_ui;
	CopyThread *_thread;
	bool _doQuit;
	QString _fileName;
	QTimer _timer;
};

#endif /* SPEEDCHECK_H_ */