blob: c64804c206cb6fb449993bcfbe6679413b886233 (
plain)
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
37
38
39
40
41
42
43
44
45
46
|
/** \file copyEngine.h
\brief Define the copy engine
\author alpha_one_x86
\licence GPL3, see the file COPYING */
#include <QObject>
#include <QList>
#include <QStringList>
#include <QFileInfo>
#include <QFile>
#include <QTimer>
#include "copyEngine.h"
#ifndef COPY_ENGINE_UNIT_TESTER_H
#define COPY_ENGINE_UNIT_TESTER_H
namespace Ui {
class options;
}
/// \brief the implementation of copy engine plugin, manage directly few stuff, else pass to ListThread class.
class copyEngineUnitTester : public copyEngine
{
Q_OBJECT
public:
enum SupportedTest{Test_Copy};
copyEngineUnitTester(const QString &path,const QList<SupportedTest> &tests);
~copyEngineUnitTester();
private:
ListThread *listThread;
bool dialogIsOpen;
QList<SupportedTest> tests;
QTimer timer;
QString path;
void initializeSource();
bool rmpath(const QDir &dir);
bool mkFile(const QString &dir,const quint16 &minSize=0,const quint16 &maxSize=65535);
private slots:
void errorSlot();
void collisionSlot();
void initialize();
};
#endif // COPY_ENGINE_UNIT_TESTER_H
|