Debian Codegraph @

src/calcDiffThread.h

raw symbols SCIP
1 // ---------------------------------- calcDiffThread.h ---------------------------------------------------------------------------
2 // Header file for calcDiffThread.cpp
3 /*
4 ===============================================================================================================================
5 ===============================================================================================================================
6 This file is part of "luckyBackup" project
7 Copyright, Loukas Avgeriou
8 luckyBackup is distributed under the terms of the GNU General Public License
9 luckyBackup is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 luckyBackup is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with luckyBackup. If not, see <http://www.gnu.org/licenses/>.
21
22
23 project version : Please see "main.cpp" for project version
24
25 developer : luckyb
26 last modified : 01 Sep 2010
27 ===============================================================================================================================
28 ===============================================================================================================================
29 */
30
31 #ifndef CALCDIFFTHREAD_H
32 #define CALCDIFFTHREAD_H
33
34 #include <QThread>
35 #include <QFileInfo>
36 //==============================================================================================================
37 //Declaration of class CalcDiffThread
38 // Calculate the differences between source & snapshot in a seperate thread
39 class CalcDiffThread : public QThread
40 {
41 Q_OBJECT
42
43 public:
44 explicit CalcDiffThread(QObject *parent = 0);
45 ~CalcDiffThread();
46
47 void passParams(QString dirtoreadstring, QString desti, QString currentsnapshotdirectory, QString currentsnapshotstring, QString sourcelast, QString sourcei,
48 int currentsnapshotno, int currentsnaps, bool synctype); //set all variables needed for the calculations
49 QString returnResult(); //return the resulting text of calculated stuff
50 QFileInfoList readRecursive(QString dirToReadString);
51 void setAbort(bool abortset);
52
53 protected:
54 void run();
55
56 signals:
57 void updateViewer(const QString &viewText, const bool &appendText);
58
59 private:
60 QString dirToReadString, dest, CurrentSnapshotDirectory, CurrentSnapshotString, sourceLast, source;
61 int count, CurrentSnapshotNo, currentSnaps;
62 bool syncTYPE;
63 bool abortNOW;
64
65 QString returnString;
66 };
67
68 #endif
69
70 // end of calcDiffThread.h ---------------------------------------------------------------------------