| 1 | /* ---------------------------------- manageWizard.h --------------------------------------------------------------------------- |
| 2 | header file used by manageWizard.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 : 18 May 2011 |
| 27 | =============================================================================================================================== |
| 28 | =============================================================================================================================== |
| 29 | */ |
| 30 | |
| 31 | #ifndef MANAGEWIZARD_H |
| 32 | #define MANAGEWIZARD_Hcxx . . $ `src/manageWizard.h:32:9`! |
| 33 | |
| 34 | #include "ui_manageWizard.h"cxx . . $ `<file>/ui_manageWizard.h`/ |
| 35 | |
| 36 | //============================================================================================================== |
| 37 | //Declaration of manageWizard class (this is the dialog that launches a restore,delete backup wizard) |
| 38 | |
| 39 | class manageWizardcxx . . $ manageWizard# : public QDialogcxx . . $ QDialog# |
| 40 | { |
| 41 | Q_OBJECTcxx . . $ manageWizard#staticMetaObject. |
| 42 | |
| 43 | public: |
| 44 | manageWizardcxx . . $ manageWizard#manageWizard(53ba369086eed9c2). (QStringcxx . . $ QString#, QStringcxx . . $ QString#, QStringcxx . . $ QString#, int, QWidgetcxx . . $ QWidget# *parent=0); |
| 45 | |
| 46 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 47 | void cancelPressedcxx . . $ manageWizard#cancelPressed(49f6e7a06ebc5aa8).(); // close the wizard |
| 48 | void startActioncxx . . $ manageWizard#startAction(49f6e7a06ebc5aa8).(); // start the action (restore/delete) |
| 49 | void procFinishedcxx . . $ manageWizard#procFinished(49f6e7a06ebc5aa8).(); // actions when a process has finished |
| 50 | void appendCommandOutputcxx . . $ manageWizard#appendCommandOutput(49f6e7a06ebc5aa8).(); // update browser with command running data |
| 51 | void abortActioncxx . . $ manageWizard#abortAction(49f6e7a06ebc5aa8).(); //abort the execution of commands |
| 52 | void deleteAfterChangedcxx . . $ manageWizard#deleteAfterChanged(49f6e7a06ebc5aa8).(); // DeleteAfter checkbox state changed |
| 53 | void prevErrorcxx . . $ manageWizard#prevError(49f6e7a06ebc5aa8).(); //jumb to previous error |
| 54 | void nextErrorcxx . . $ manageWizard#nextError(49f6e7a06ebc5aa8).(); //jumb to next error |
| 55 | void changeRestorePathcxx . . $ manageWizard#changeRestorePath(49f6e7a06ebc5aa8).(); //Change the restore path |
| 56 | |
| 57 | private: |
| 58 | Uicxx . . $ Ui/::manageWizardcxx . . $ Ui/manageWizard# uiWcxx . . $ manageWizard#uiW.; |
| 59 | |
| 60 | QStringcxx . . $ QString# sourcecxx . . $ manageWizard#source.; // holds the full path of the original source |
| 61 | QStringcxx . . $ QString# sourceLastcxx . . $ manageWizard#sourceLast.; // holds the last child directory of the original source |
| 62 | QStringcxx . . $ QString# destcxx . . $ manageWizard#dest.; // holds the full path of the original destination |
| 63 | QStringcxx . . $ QString# timecxx . . $ manageWizard#time.; // holds the execution time of the selected snapshot in yyyyMMddhhmmss format |
| 64 | QStringcxx . . $ QString# timeReadablecxx . . $ manageWizard#timeReadable.; // holds the execution time of the selected snapshot in "yyyy/MM/dd - hh:mm:ss" format |
| 65 | int currentSnapcxx . . $ manageWizard#currentSnap.; // holds the current snapshot number in the snapshot's list |
| 66 | int snapshotsNocxx . . $ manageWizard#snapshotsNo.; // holds the snapshots number |
| 67 | QStringcxx . . $ QString# wizard_typecxx . . $ manageWizard#wizard_type.;// holds the type of the wizard (restore or delete) |
| 68 | QStringListcxx . . $ QStringList# commandArgumentscxx . . $ manageWizard#commandArguments.; // holds the command arguments |
| 69 | |
| 70 | QStringcxx . . $ QString# outputStringcxx . . $ manageWizard#outputString.; // holds the standard output of the commands to display at browser |
| 71 | QStringcxx . . $ QString# outputErrorcxx . . $ manageWizard#outputError.; // holds the standard error of the commands to display at browser |
| 72 | bool procRunningcxx . . $ manageWizard#procRunning.; // this becomes true if a process is running |
| 73 | bool procKilledcxx . . $ manageWizard#procKilled.; // this becomes true if a process is aborted |
| 74 | int errorCountcxx . . $ manageWizard#errorCount.; // count the errors of the command execution |
| 75 | bool DRYruncxx . . $ manageWizard#DRYrun.; // become true if dry-run is checked |
| 76 | bool MainRuncxx . . $ manageWizard#MainRun.; // becomes true when main rsync is run. False when the specific backed up snapshot files are transfered |
| 77 | bool DeleteAftercxx . . $ manageWizard#DeleteAfter.; // becomes true if "delete files on the source" is checked |
| 78 | bool firstScrollcxx . . $ manageWizard#firstScroll.; // becomes false if first time next button pressed |
| 79 | bool snapSpecificDirExistscxx . . $ manageWizard#snapSpecificDirExists.; // becomes true if the snapshots specific directory exists |
| 80 | int countcxx . . $ manageWizard#count.; // simple count variable |
| 81 | int snapToRestorecxx . . $ manageWizard#snapToRestore.; // holds the current snapshot that is restored |
| 82 | |
| 83 | void calcCommandArgscxx . . $ manageWizard#calcCommandArgs(49f6e7a06ebc5aa8).(); // function to calculate command arguments for RESTORE purposes |
| 84 | void runProcesscxx . . $ manageWizard#runProcess(49f6e7a06ebc5aa8).(); //function to run the desired processes |
| 85 | void guiInitializecxx . . $ manageWizard#guiInitialize(49f6e7a06ebc5aa8).(); //initialize the gui |
| 86 | |
| 87 | protected: |
| 88 | void closeEventcxx . . $ manageWizard#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# *event); |
| 89 | }; |
| 90 | |
| 91 | |
| 92 | #endif |
| 93 | |
| 94 | // end of manageWizard.h --------------------------------------------------------------------------- |