| 1 | /* ---------------------------------- manage.h --------------------------------------------------------------------------- |
| 2 | header file used by manage.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 : Loukas Avgeriou |
| 26 | last modified : 01 Sep 2010 |
| 27 | =============================================================================================================================== |
| 28 | =============================================================================================================================== |
| 29 | */ |
| 30 | |
| 31 | #ifndef MANAGE_H |
| 32 | #define MANAGE_Hcxx . . $ `src/manage.h:32:9`! |
| 33 | |
| 34 | #include "ui_manage.h"cxx . . $ `<file>/ui_manage.h`/ |
| 35 | |
| 36 | class CalcDiffThreadcxx . . $ CalcDiffThread#; |
| 37 | |
| 38 | //============================================================================================================== |
| 39 | //Declaration of manageDialog class (this is the dialog that manages existing backups of a task) |
| 40 | |
| 41 | class manageDialogcxx . . $ manageDialog# : public QDialogcxx . . $ QDialog# |
| 42 | { |
| 43 | Q_OBJECTcxx . . $ manageDialog#QPrivateSignal# |
| 44 | |
| 45 | public: |
| 46 | manageDialogcxx . . $ manageDialog#manageDialog(d194de0c0f68c28b). (QDialogcxx . . $ QDialog# *parent=0); |
| 47 | |
| 48 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 49 | void cancelcxx . . $ manageDialog#cancel(49f6e7a06ebc5aa8).(); // close the manage dialog |
| 50 | void logViewcxx . . $ manageDialog#logView(49f6e7a06ebc5aa8).(); // view the log file |
| 51 | void restoreBackupcxx . . $ manageDialog#restoreBackup(49f6e7a06ebc5aa8).(); // launch the restore wizard |
| 52 | void deleteBackupcxx . . $ manageDialog#deleteBackup(49f6e7a06ebc5aa8).(); // launch the delete wizard |
| 53 | void fixGuicxx . . $ manageDialog#fixGui(49f6e7a06ebc5aa8).(); // makes some changes to the gui according to various stuff |
| 54 | void SnapshotsListSelectedcxx . . $ manageDialog#SnapshotsListSelected(49f6e7a06ebc5aa8).(); //Triggered when selection changes |
| 55 | void hideSourceStuffcxx . . $ manageDialog#hideSourceStuff(49f6e7a06ebc5aa8).(); // hide -show source stuff |
| 56 | |
| 57 | void calculateDifferencescxx . . $ manageDialog#calculateDifferences(49f6e7a06ebc5aa8).(); // calculate differences between source and snapshot |
| 58 | void calcDiffEndcxx . . $ manageDialog#calcDiffEnd(49f6e7a06ebc5aa8).(); // diffs have been calculated - update viewer with new text |
| 59 | void refreshDifWindowcxx . . $ manageDialog#refreshDifWindow(abbfd46f3b7726de).(const QStringcxx . . $ QString# &, const bool &); // update window with text concerning diff calculations |
| 60 | |
| 61 | private: |
| 62 | Uicxx . . $ Ui/::manageDialogcxx . . $ Ui/manageDialog# uiGcxx . . $ manageDialog#uiG.; |
| 63 | |
| 64 | QStringcxx . . $ QString# sourcecxx . . $ manageDialog#source.; |
| 65 | QStringcxx . . $ QString# sourceLastcxx . . $ manageDialog#sourceLast.; |
| 66 | QStringcxx . . $ QString# destcxx . . $ manageDialog#dest.; |
| 67 | QStringcxx . . $ QString# timecxx . . $ manageDialog#time.; |
| 68 | QStringcxx . . $ QString# CurrentSnapshotStringcxx . . $ manageDialog#CurrentSnapshotString.; // This is the current snapshot in YYYYmmddHHmmss format |
| 69 | QStringcxx . . $ QString# CurrentSnapshotDirectorycxx . . $ manageDialog#CurrentSnapshotDirectory. ; // This is the full path of the current snapshot directory |
| 70 | int CurrentSnapshotNocxx . . $ manageDialog#CurrentSnapshotNo.; // This is the current snapshot number (order in list). Becomes 0,1,2 .... currentSnaps |
| 71 | int currentSnapscxx . . $ manageDialog#currentSnaps.; // this is the current number of already created snapshots |
| 72 | int countcxx . . $ manageDialog#count.; //simple count variable |
| 73 | bool syncTYPEcxx . . $ manageDialog#syncTYPE.; // This will become true if it is a sync task |
| 74 | bool abortCalcThreadcxx . . $ manageDialog#abortCalcThread.; // This will become true if the calculations thread is aborted |
| 75 | bool sourceVisiblecxx . . $ manageDialog#sourceVisible.,viewLogVisiblecxx . . $ manageDialog#viewLogVisible.,deleteVisiblecxx . . $ manageDialog#deleteVisible.,restoreVisiblecxx . . $ manageDialog#restoreVisible.; // Helps to hide/show source stuff |
| 76 | QStringListcxx . . $ QStringList# calculatedDifferencescxx . . $ manageDialog#calculatedDifferences.;// Text of calculated deifferences is stored here for each snapshot |
| 77 | QListcxx . . $ QList#<bool> snapCalculatedcxx . . $ manageDialog#snapCalculated.; // becomes true if differences have been calculated for a snapshot |
| 78 | |
| 79 | void updateSnapshotscxx . . $ manageDialog#updateSnapshots(49f6e7a06ebc5aa8).(); |
| 80 | |
| 81 | CalcDiffThreadcxx . . $ CalcDiffThread# * calcdiffthreadcxx . . $ manageDialog#calcdiffthread.; //thread to calculate differences between snap & source |
| 82 | |
| 83 | protected: |
| 84 | void closeEventcxx . . $ manageDialog#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# *event); |
| 85 | }; |
| 86 | |
| 87 | #endif |
| 88 | |
| 89 | // end of manage.h --------------------------------------------------------------------------- |