Refactoring
This commit is contained in:
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#ifndef SYNCPROCESS_H_
|
||||
#define SYNCPROCESS_H_
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
|
||||
class QDir;
|
||||
class ProgressWidget;
|
||||
|
||||
class SyncProcess : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SyncProcess(const QString &folder1, const QString &folder2, ProgressWidget *progress);
|
||||
void run();
|
||||
|
||||
protected:
|
||||
bool synchronize();
|
||||
QStringList updateDir(const QDir &source, const QDir &destination);
|
||||
QString folder1;
|
||||
QString folder2;
|
||||
ProgressWidget *progress;
|
||||
QStringList errors;
|
||||
bool simulation;
|
||||
int index;
|
||||
};
|
||||
|
||||
#endif /* SYNCPROCESS_H_ */
|
||||
Reference in New Issue
Block a user