| 1 | // ---------------------------------- calcDiffThread.h ---------------------------------------------------------------------------cxx . . $ `<file>/src/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_Hcxx . . $ `src/calcDiffThread.h:32:9`! |
| 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 CalcDiffThreadcxx . . $ CalcDiffThread# : public QThreadcxx . . $ QThread# |
| 40 | { |
| 41 | Q_OBJECTcxx . . $ CalcDiffThread#QPrivateSignal# |
| 42 | |
| 43 | public: |
| 44 | explicit CalcDiffThreadcxx . . $ CalcDiffThread#CalcDiffThread(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = 0); |
| 45 | ~cxx . . $ CalcDiffThread#`~CalcDiffThread`(ced63f7c635d850d).CalcDiffThreadcxx . . $ CalcDiffThread#(); |
| 46 | |
| 47 | void passParamscxx . . $ CalcDiffThread#passParams(c02e609e5be302db).(QStringcxx . . $ QString# dirtoreadstring, QStringcxx . . $ QString# desti, QStringcxx . . $ QString# currentsnapshotdirectory, QStringcxx . . $ QString# currentsnapshotstring, QStringcxx . . $ QString# sourcelast, QStringcxx . . $ QString# sourcei, |
| 48 | int currentsnapshotno, int currentsnaps, bool synctype); //set all variables needed for the calculations |
| 49 | QStringcxx . . $ QString# returnResultcxx . . $ CalcDiffThread#returnResult(4365c3963150523e).(); //return the resulting text of calculated stuff |
| 50 | QFileInfoListcxx . . $ QFileInfoList# readRecursivecxx . . $ CalcDiffThread#readRecursive(cfcb11828a38d486).(QStringcxx . . $ QString# dirToReadString); |
| 51 | void setAbortcxx . . $ CalcDiffThread#setAbort(b45ddcbc8423892c).(bool abortset); |
| 52 | |
| 53 | protected: |
| 54 | void runcxx . . $ CalcDiffThread#run(49f6e7a06ebc5aa8).(); |
| 55 | |
| 56 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 57 | void updateViewercxx . . $ CalcDiffThread#updateViewer(abbfd46f3b7726de).(const QStringcxx . . $ QString# &viewText, const bool &appendText); |
| 58 | |
| 59 | private: |
| 60 | QStringcxx . . $ QString# dirToReadStringcxx . . $ CalcDiffThread#dirToReadString., destcxx . . $ CalcDiffThread#dest., CurrentSnapshotDirectorycxx . . $ CalcDiffThread#CurrentSnapshotDirectory., CurrentSnapshotStringcxx . . $ CalcDiffThread#CurrentSnapshotString., sourceLastcxx . . $ CalcDiffThread#sourceLast., sourcecxx . . $ CalcDiffThread#source.; |
| 61 | int countcxx . . $ CalcDiffThread#count., CurrentSnapshotNocxx . . $ CalcDiffThread#CurrentSnapshotNo., currentSnapscxx . . $ CalcDiffThread#currentSnaps.; |
| 62 | bool syncTYPEcxx . . $ CalcDiffThread#syncTYPE.; |
| 63 | bool abortNOWcxx . . $ CalcDiffThread#abortNOW.; |
| 64 | |
| 65 | QStringcxx . . $ QString# returnStringcxx . . $ CalcDiffThread#returnString.; |
| 66 | }; |
| 67 | |
| 68 | #endif |
| 69 | |
| 70 | // end of calcDiffThread.h --------------------------------------------------------------------------- |