| 1 | /* ------------------ luckybackupwindow.h -------------------------------------------------------------------------------------- |
| 2 | header file for luckyBackup project |
| 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 : 07 Feb 2014 |
| 27 | =============================================================================================================================== |
| 28 | =============================================================================================================================== |
| 29 | */ |
| 30 | |
| 31 | |
| 32 | #ifndef LUCKYBACKUPWINDOW_H |
| 33 | #define LUCKYBACKUPWINDOW_Hcxx . . $ `src/luckybackupwindow.h:33:9`! |
| 34 | |
| 35 | //include header file that qmake produces from "*.ui" created with qt designer |
| 36 | #include "ui_luckybackupwindow.h"cxx . . $ `<file>/ui_luckybackupwindow.h`/ |
| 37 | #include <QSystemTrayIcon> |
| 38 | |
| 39 | //============================================================================================================== |
| 40 | //Declaration of luckyBackupWindow class (this is the main window of the app) |
| 41 | class luckyBackupWindowcxx . . $ luckyBackupWindow# : public QMainWindowcxx . . $ QMainWindow# |
| 42 | { |
| 43 | Q_OBJECTcxx . . $ luckyBackupWindow#QPrivateSignal# |
| 44 | |
| 45 | public: |
| 46 | luckyBackupWindowcxx . . $ luckyBackupWindow#luckyBackupWindow(f2c32f691ede4a4e). (QMainWindowcxx . . $ QMainWindow# *parent = 0); |
| 47 | |
| 48 | // general variables |
| 49 | bool taskClickedcxx . . $ luckyBackupWindow#taskClicked.; //these 2 bool vars help to determine when a checkbox state is changed for SLOT taskStateChanged |
| 50 | bool taskChangedcxx . . $ luckyBackupWindow#taskChanged.; |
| 51 | bool savedProfilecxx . . $ luckyBackupWindow#savedProfile.; // Becomes true if a profile is saved and false if it is modified |
| 52 | |
| 53 | bool GoBackcxx . . $ luckyBackupWindow#GoBack.; // Becomes true if the user tries to load a profile, but regrets it !! |
| 54 | QStringcxx . . $ QString# InfoDatacxx . . $ luckyBackupWindow#InfoData.; //String holding the information window text |
| 55 | QStringcxx . . $ QString# createDatacxx . . $ luckyBackupWindow#createData.; //String holding messages from createCurrentProfile |
| 56 | QStringcxx . . $ QString# loadDatacxx . . $ luckyBackupWindow#loadData.; //String holding messages from loadCurrentProfile |
| 57 | QStringcxx . . $ QString# saveDatacxx . . $ luckyBackupWindow#saveData.; //String holding messages from saveCurrentProfile |
| 58 | |
| 59 | int InfoIntcxx . . $ luckyBackupWindow#InfoInt.; // this helps to define which message will appear at the info window |
| 60 | int countcxx . . $ luckyBackupWindow#count.; //simple count variable !! |
| 61 | |
| 62 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 63 | void profileComboChangedcxx . . $ luckyBackupWindow#profileComboChanged(49f6e7a06ebc5aa8).(); // SLOT to set the currentProfile when profileCombo index changes |
| 64 | void savePressedcxx . . $ luckyBackupWindow#savePressed(49f6e7a06ebc5aa8).(); // SLOT to execute when "save" pressed |
| 65 | void deleteCurrentProfilecxx . . $ luckyBackupWindow#deleteCurrentProfile(49f6e7a06ebc5aa8).();//SLOT: Delete the current profile |
| 66 | void NewProfilecxx . . $ luckyBackupWindow#NewProfile(49f6e7a06ebc5aa8).(); //SLOT: Create a new empty profile |
| 67 | void setDefaultProfilecxx . . $ luckyBackupWindow#setDefaultProfile(49f6e7a06ebc5aa8).(); //SLOT: Set the current profile as default |
| 68 | void renameCurrentProfilecxx . . $ luckyBackupWindow#renameCurrentProfile(49f6e7a06ebc5aa8).();//SLOT: rename the current profile |
| 69 | void exportProfilecxx . . $ luckyBackupWindow#exportProfile(49f6e7a06ebc5aa8).(); //SLOT to export a profile |
| 70 | void importProfilecxx . . $ luckyBackupWindow#importProfile(49f6e7a06ebc5aa8).(); //SLOT to import a profile |
| 71 | void duplicateProfilecxx . . $ luckyBackupWindow#duplicateProfile(49f6e7a06ebc5aa8).(); //SLOT to duplicate a profile |
| 72 | void changeProfileDescriptioncxx . . $ luckyBackupWindow#changeProfileDescription(49f6e7a06ebc5aa8).();//SLOT to change the profile description |
| 73 | |
| 74 | void exitAppcxx . . $ luckyBackupWindow#exitApp(49f6e7a06ebc5aa8).(); //SLOT: check if a profile is saved and exit application |
| 75 | |
| 76 | void helpcxx . . $ luckyBackupWindow#help(49f6e7a06ebc5aa8).(); //SLOT: open "help" popup when action selected |
| 77 | void aboutcxx . . $ luckyBackupWindow#about(49f6e7a06ebc5aa8).(); //SLOT: open "about" popup when action selected |
| 78 | void setToolbarAttrscxx . . $ luckyBackupWindow#setToolbarAttrs(49f6e7a06ebc5aa8).(); //SLOT: sets the toolbar attributes |
| 79 | void setWinPathscxx . . $ luckyBackupWindow#setWinPaths(49f6e7a06ebc5aa8).(); //SLOT: sets the rsync and ssh paths for windows |
| 80 | |
| 81 | void setLanguagecxx . . $ luckyBackupWindow#setLanguage(92b1e80c0a7f1406).(QActioncxx . . $ QAction# *);//SLOT: Change the application language |
| 82 | |
| 83 | void checkCurrentItemcxx . . $ luckyBackupWindow#checkCurrentItem(13c1c8ad030616f4).(QListWidgetItemcxx . . $ QListWidgetItem# *); //SLOT: Check the currently selected operation and set an icon |
| 84 | void taskStateChangedcxx . . $ luckyBackupWindow#taskStateChanged(49f6e7a06ebc5aa8).(); //SLOT: Sets the profile state to unsaved if a task checkbox is changed |
| 85 | void refreshListcxx . . $ luckyBackupWindow#refreshList(49f6e7a06ebc5aa8).(); //SLOT: Refresh the operations list when refresh button pressed |
| 86 | void startcxx . . $ luckyBackupWindow#start(49f6e7a06ebc5aa8).(); //SLOT: Open start operations dialog when Button clicked() |
| 87 | void modifycxx . . $ luckyBackupWindow#modify(49f6e7a06ebc5aa8).(); //SLOT: Modify an existing task. Will also save it if bool is true |
| 88 | void addcxx . . $ luckyBackupWindow#add(49f6e7a06ebc5aa8).(); //SLOT: Add a new task |
| 89 | void removecxx . . $ luckyBackupWindow#remove(49f6e7a06ebc5aa8).(); //SLOT: remove highlighted task |
| 90 | void managecxx . . $ luckyBackupWindow#manage(49f6e7a06ebc5aa8).(); //SLOT: Manage existing backups of an existing task |
| 91 | void AlsoCreateRestorecxx . . $ luckyBackupWindow#AlsoCreateRestore(49f6e7a06ebc5aa8).(); //SLOT: Create another operation for RESTORE |
| 92 | void duplicateTaskcxx . . $ luckyBackupWindow#duplicateTask(49f6e7a06ebc5aa8).(); //SLOT to duplicate a task |
| 93 | void moveUpcxx . . $ luckyBackupWindow#moveUp(49f6e7a06ebc5aa8).(); //SLOT: move highlighted operation one position up |
| 94 | void moveDowncxx . . $ luckyBackupWindow#moveDown(49f6e7a06ebc5aa8).(); //SLOT: move highlighted operation one position down |
| 95 | void schedulecxx . . $ luckyBackupWindow#schedule(49f6e7a06ebc5aa8).(); //SLOT: Open schedule dialog when Button clicked() |
| 96 | void emailcxx . . $ luckyBackupWindow#email(49f6e7a06ebc5aa8).(); //SLOT: Open email dialog when Button clicked() |
| 97 | |
| 98 | void hideShowInfoWindowcxx . . $ luckyBackupWindow#hideShowInfoWindow(49f6e7a06ebc5aa8).(); // SLOT to hide or show the info window |
| 99 | |
| 100 | //execute.cpp SLOTS |
| 101 | void abortPressedcxx . . $ luckyBackupWindow#abortPressed(49f6e7a06ebc5aa8).(); //SLOT when button pressed( see also notYet) |
| 102 | void donePressedcxx . . $ luckyBackupWindow#donePressed(49f6e7a06ebc5aa8).(); //SLOT when done button pressed |
| 103 | void appendRsyncOutputcxx . . $ luckyBackupWindow#appendRsyncOutput(49f6e7a06ebc5aa8).(); //Display o/p to textbrowser & update logfile |
| 104 | /*disable vss until... |
| 105 | void appendRsyncVssOutput(); |
| 106 | void appendRsyncVssOutput(int size);*/ |
| 107 | void procFinishedcxx . . $ luckyBackupWindow#procFinished(49f6e7a06ebc5aa8).(); //SLOT executed when syncProcess is finshed (will start a new syncProcess if any left) |
| 108 | void procErrorcxx . . $ luckyBackupWindow#procError(49f6e7a06ebc5aa8).(); // SLOT for when a process reports an error (eg: failed to start) |
| 109 | |
| 110 | void LBtrayActivatedcxx . . $ luckyBackupWindow#LBtrayActivated(dc7279b31293a212).(QSystemTrayIconcxx . . $ QSystemTrayIcon#::ActivationReasoncxx . . $ QSystemTrayIcon#ActivationReason# reason); |
| 111 | void minimizeTraycxx . . $ luckyBackupWindow#minimizeTray(49f6e7a06ebc5aa8).(); |
| 112 | void restoreTraycxx . . $ luckyBackupWindow#restoreTray(49f6e7a06ebc5aa8).(); |
| 113 | |
| 114 | void previousErrorJumpcxx . . $ luckyBackupWindow#previousErrorJump(49f6e7a06ebc5aa8).(); |
| 115 | void nextErrorJumpcxx . . $ luckyBackupWindow#nextErrorJump(49f6e7a06ebc5aa8).(); |
| 116 | |
| 117 | private: |
| 118 | Uicxx . . $ Ui/::luckyBackupWindowcxx . . $ Ui/luckyBackupWindow# uicxx . . $ luckyBackupWindow#ui.; |
| 119 | |
| 120 | QSystemTrayIconcxx . . $ QSystemTrayIcon# *LBtraycxx . . $ luckyBackupWindow#LBtray.; //this is luckybackup's tray icon |
| 121 | QMenucxx . . $ QMenu# *languageMenucxx . . $ luckyBackupWindow#languageMenu.; |
| 122 | QMenucxx . . $ QMenu# *settingsMenucxx . . $ luckyBackupWindow#settingsMenu.; |
| 123 | QMenucxx . . $ QMenu# *toolbarsMenucxx . . $ luckyBackupWindow#toolbarsMenu.; |
| 124 | QActionGroupcxx . . $ QActionGroup# *languageGroupcxx . . $ luckyBackupWindow#languageGroup.; |
| 125 | QActionGroupcxx . . $ QActionGroup# *toolbarsGroupcxx . . $ luckyBackupWindow#toolbarsGroup.; |
| 126 | QMenucxx . . $ QMenu# *helpMenucxx . . $ luckyBackupWindow#helpMenu.; |
| 127 | QActioncxx . . $ QAction# *actioncxx . . $ luckyBackupWindow#action.; |
| 128 | QActioncxx . . $ QAction# *actionHelpcxx . . $ luckyBackupWindow#actionHelp.; |
| 129 | QActioncxx . . $ QAction# *actionAboutcxx . . $ luckyBackupWindow#actionAbout.; |
| 130 | QToolBarcxx . . $ QToolBar# *profileToolbarcxx . . $ luckyBackupWindow#profileToolbar.; |
| 131 | QToolBarcxx . . $ QToolBar# *profileComboToolbarcxx . . $ luckyBackupWindow#profileComboToolbar.; |
| 132 | QToolBarcxx . . $ QToolBar# *profileStartToolbarcxx . . $ luckyBackupWindow#profileStartToolbar.; |
| 133 | QToolBarcxx . . $ QToolBar# *shutdownToolbarcxx . . $ luckyBackupWindow#shutdownToolbar.; |
| 134 | QToolBarcxx . . $ QToolBar# *errorsToolbarcxx . . $ luckyBackupWindow#errorsToolbar.; |
| 135 | QActioncxx . . $ QAction# *visibleProfileToolbarcxx . . $ luckyBackupWindow#visibleProfileToolbar.; |
| 136 | QActioncxx . . $ QAction# *visibleProfileComboToolbarcxx . . $ luckyBackupWindow#visibleProfileComboToolbar.; |
| 137 | QActioncxx . . $ QAction# *visibleProfileStartToolbarcxx . . $ luckyBackupWindow#visibleProfileStartToolbar.; |
| 138 | QActioncxx . . $ QAction# *actionLockToolbarscxx . . $ luckyBackupWindow#actionLockToolbars.; |
| 139 | QActioncxx . . $ QAction# *actionVisibleToolbarTextcxx . . $ luckyBackupWindow#actionVisibleToolbarText.; |
| 140 | QActioncxx . . $ QAction# *actionSetWinPathscxx . . $ luckyBackupWindow#actionSetWinPaths.; |
| 141 | QStringListcxx . . $ QStringList# deletedTaskNamescxx . . $ luckyBackupWindow#deletedTaskNames.; |
| 142 | bool saveOrNotcxx . . $ luckyBackupWindow#saveOrNot.; |
| 143 | |
| 144 | //The following functions are inside functions.cpp~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 145 | void setCurrentProfilecxx . . $ luckyBackupWindow#setCurrentProfile(7df51288a9ebd664).(QStringcxx . . $ QString#);//function to check if a profile is valid and load it by calling loadProfile |
| 146 | bool loadCurrentProfilecxx . . $ luckyBackupWindow#loadCurrentProfile(c9857a73d68e59ba).(); //function to load an existing profile |
| 147 | bool saveCurrentProfilecxx . . $ luckyBackupWindow#saveCurrentProfile(c9857a73d68e59ba).(); //function to save a profile |
| 148 | int createCurrentProfilecxx . . $ luckyBackupWindow#createCurrentProfile(b126dc7c1de90089).(); //function to create a profile |
| 149 | int isProfileSavedcxx . . $ luckyBackupWindow#isProfileSaved(b126dc7c1de90089).(); //function to check if the current profile is saved and proceed or not |
| 150 | void checkDeclaredcxx . . $ luckyBackupWindow#checkDeclared(49f6e7a06ebc5aa8).(); //function to check all declared data of included operations |
| 151 | bool checkOperationListcxx . . $ luckyBackupWindow#checkOperationList(c9857a73d68e59ba).(); // function to first check the operations list for errors (eg nothing is included) |
| 152 | void retranslateUicxx . . $ luckyBackupWindow#retranslateUi(49f6e7a06ebc5aa8).(); //function to retranslate the ui when user changes the gui language |
| 153 | void createMenuscxx . . $ luckyBackupWindow#createMenus(49f6e7a06ebc5aa8).(); // create the menu "language" with all available languages & menu "help" |
| 154 | void createToolbarcxx . . $ luckyBackupWindow#createToolbar(49f6e7a06ebc5aa8).(); // create the toolbar |
| 155 | void createActionscxx . . $ luckyBackupWindow#createActions(49f6e7a06ebc5aa8).(); // create all actions |
| 156 | void createProfileCombocxx . . $ luckyBackupWindow#createProfileCombo(49f6e7a06ebc5aa8).(); // fill the profile combo box with existing profile names |
| 157 | bool saveSettingscxx . . $ luckyBackupWindow#saveSettings(c9857a73d68e59ba).(); //saves various luckybackup settings such as the default profile |
| 158 | bool loadSettingscxx . . $ luckyBackupWindow#loadSettings(c9857a73d68e59ba).(); //loads various luckybackup settings such as the default profile - text mode |
| 159 | bool loadSettingsQVcxx . . $ luckyBackupWindow#loadSettingsQV(c9857a73d68e59ba).(); //loads various luckybackup settings such as the default profile - data mode |
| 160 | void InitializeVariablescxx . . $ luckyBackupWindow#InitializeVariables(49f6e7a06ebc5aa8).(); //initializes all variables |
| 161 | bool arrangeLogSnapcxx . . $ luckyBackupWindow#arrangeLogSnap(5f0f93a7bce497de).(bool,QStringcxx . . $ QString#,QStringcxx . . $ QString#);//Rename-delete-copy logs & snaps when a profile/task is renamed, deleted,duplicated |
| 162 | |
| 163 | QStringcxx . . $ QString# defaultLanguagecxx . . $ luckyBackupWindow#defaultLanguage.; // holds the app's default language |
| 164 | QStringcxx . . $ QString# TransDircxx . . $ luckyBackupWindow#TransDir.; // holds the actual translation directory path |
| 165 | QUrlcxx . . $ QUrl# helpURLcxx . . $ luckyBackupWindow#helpURL.; // holds the actual manual path as a QUrl |
| 166 | QStringcxx . . $ QString# manualChaptercxx . . $ luckyBackupWindow#manualChapter.; // holds the specific chapter of the manual. changes depending on which window is open |
| 167 | QUrlcxx . . $ QUrl# licenseURLcxx . . $ luckyBackupWindow#licenseURL.; // holds the actual license path as a QUrl |
| 168 | int mainWindowWidthcxx . . $ luckyBackupWindow#mainWindowWidth.; // holds the main window width in pixels |
| 169 | int mainWindowHeightcxx . . $ luckyBackupWindow#mainWindowHeight.; // holds the main window height in pixels |
| 170 | bool AreToolbarsLockedcxx . . $ luckyBackupWindow#AreToolbarsLocked.; // holds the lock state of the toolbars |
| 171 | bool IsVisibleProfileComboToolbarcxx . . $ luckyBackupWindow#IsVisibleProfileComboToolbar.; // holds the visible state of the profile combo toolbar |
| 172 | bool IsVisibleProfileToolbarcxx . . $ luckyBackupWindow#IsVisibleProfileToolbar.; // holds the visible state of the profile actions toolbar |
| 173 | bool IsVisibleProfileStartToolbarcxx . . $ luckyBackupWindow#IsVisibleProfileStartToolbar.; // holds the visible state of the profile start toolbar |
| 174 | bool IsVisibleToolbarTextcxx . . $ luckyBackupWindow#IsVisibleToolbarText.; // holds the visible state of the toolbar text |
| 175 | bool IsVisibleInfoWindowcxx . . $ luckyBackupWindow#IsVisibleInfoWindow.; // holds the visible state of the info window |
| 176 | bool showOnlyErrorscxx . . $ luckyBackupWindow#showOnlyErrors.; //This becomes true if the user selects to only display errors at the commands output window |
| 177 | |
| 178 | //inside execute.cpp----------------------------------------------------- |
| 179 | void executeNOWcxx . . $ luckyBackupWindow#executeNOW(49f6e7a06ebc5aa8).(); //start the execution of commands (rsync & others) |
| 180 | void setNowDoingcxx . . $ luckyBackupWindow#setNowDoing(49f6e7a06ebc5aa8).(); //Display sth in the Now Doing textBrowser |
| 181 | void executeRsynccxx . . $ luckyBackupWindow#executeRsync(49f6e7a06ebc5aa8).(); //execute qprocess "rsync" with Arguments |
| 182 | void swapGUIcxx . . $ luckyBackupWindow#swapGUI(7df51288a9ebd664).(QStringcxx . . $ QString#); //swaps the gui mode from normal to execute |
| 183 | int errorCountcxx . . $ luckyBackupWindow#errorCount.; //used for next/previous error button |
| 184 | bool firstScrollcxx . . $ luckyBackupWindow#firstScroll.; //used for next/previous error button |
| 185 | bool NOWexecutingcxx . . $ luckyBackupWindow#NOWexecuting.; //becomes true if a profile execution is running |
| 186 | bool guiModeNormalcxx . . $ luckyBackupWindow#guiModeNormal.; //becomes true when the gui is in normnal mode |
| 187 | bool ABORTpressedcxx . . $ luckyBackupWindow#ABORTpressed.; //becomes true if the abort button is pressed |
| 188 | void finishUpcxx . . $ luckyBackupWindow#finishUp(49f6e7a06ebc5aa8).(); // finish up some stuff when all tasks finish either normally or aborted |
| 189 | void shutDownSystemcxx . . $ luckyBackupWindow#shutDownSystem(49f6e7a06ebc5aa8).(); // shutdown the system if the relevant button is pressed |
| 190 | QStringcxx . . $ QString# convertBytescxx . . $ luckyBackupWindow#convertBytes(afa4754008a97e3f).(QStringcxx . . $ QString#,bool); // Converts a string of the form of 10GB to bytes and vice versa |
| 191 | |
| 192 | //Progress bar variables |
| 193 | int progress_totalcxx . . $ luckyBackupWindow#progress_total.; //Maximum value of progress |
| 194 | int progress_donecxx . . $ luckyBackupWindow#progress_done.; //Current value of progress |
| 195 | |
| 196 | //variables used for rsync command |
| 197 | QStringcxx . . $ QString# commandcxx . . $ luckyBackupWindow#command.; //command to be executed. Normally this is "rsync" |
| 198 | QStringListcxx . . $ QStringList# rsyncArgumentscxx . . $ luckyBackupWindow#rsyncArguments.; // This stringList holds all arguments for the rsync command |
| 199 | QStringcxx . . $ QString# outputStringcxx . . $ luckyBackupWindow#outputString.; //all the output of rsync is going to fit in here |
| 200 | QStringcxx . . $ QString# outputErrorcxx . . $ luckyBackupWindow#outputError.; //all the error output of rsync is going to fit in here |
| 201 | QStringcxx . . $ QString# outputInsertcxx . . $ luckyBackupWindow#outputInsert.; //this is used to enter application output between outputString/Error |
| 202 | QStringcxx . . $ QString# nowDoingTextcxx . . $ luckyBackupWindow#nowDoingText.; //this is the text printed in the NowDoing textBrowser |
| 203 | |
| 204 | bool synccxx . . $ luckyBackupWindow#sync.; //becomes true if syncing is to be executed |
| 205 | bool syncABcxx . . $ luckyBackupWindow#syncAB.; //becomes true if syncing from dirA to dirB is to be executed |
| 206 | QStringcxx . . $ QString# dirAcxx . . $ luckyBackupWindow#dirA.; //holds the first dir to be synced |
| 207 | QStringcxx . . $ QString# dirBcxx . . $ luckyBackupWindow#dirB.; //holds the second dir to be synced |
| 208 | |
| 209 | bool calculatingcxx . . $ luckyBackupWindow#calculating.; //these 3 bools are used to diplay progress of rsync at the info window |
| 210 | bool transferringcxx . . $ luckyBackupWindow#transferring.; |
| 211 | bool deletingcxx . . $ luckyBackupWindow#deleting.; |
| 212 | |
| 213 | bool ExecuteBeforecxx . . $ luckyBackupWindow#ExecuteBefore.; //becomes true if a before command is to be executed, not rsync !! |
| 214 | bool ExecuteAftercxx . . $ luckyBackupWindow#ExecuteAfter.; //becomes true if a after command is to be executed, not rsync !! |
| 215 | bool ExecuteBeforeExitedErrorcxx . . $ luckyBackupWindow#ExecuteBeforeExitedError.; // becomes true if a before command exits with an error |
| 216 | bool StopTaskExecutioncxx . . $ luckyBackupWindow#StopTaskExecution.; // becomes true if we want to stop task execution |
| 217 | bool ProcReportedErrorcxx . . $ luckyBackupWindow#ProcReportedError.; //becomes true if any process reports an error (eg failed to start) |
| 218 | bool DestCreateFailcxx . . $ luckyBackupWindow#DestCreateFail.; // This will become true if destination does not exist and cannot be created |
| 219 | int repeatOnFailMaxcxx . . $ luckyBackupWindow#repeatOnFailMax.; // This is equal to the number of times a command will run when it fails |
| 220 | int repeatOnFailTrycxx . . $ luckyBackupWindow#repeatOnFailTry.; // This is the current run of a command |
| 221 | int currentBeforecxx . . $ luckyBackupWindow#currentBefore.; //count variable for commands to be executed before task |
| 222 | int currentAftercxx . . $ luckyBackupWindow#currentAfter.; //count variable for commands to be executed before task |
| 223 | void executeBeforeTaskcxx . . $ luckyBackupWindow#executeBeforeTask(49f6e7a06ebc5aa8).(); //function to start execution of pre-task commands |
| 224 | void executeAfterTaskcxx . . $ luckyBackupWindow#executeAfterTask(49f6e7a06ebc5aa8).(); //function to start execution of post-task commands |
| 225 | |
| 226 | //tray icon stuff |
| 227 | QStringcxx . . $ QString# trayMessagecxx . . $ luckyBackupWindow#trayMessage.; // tray baloon message text |
| 228 | QActioncxx . . $ QAction# *actionAbortcxx . . $ luckyBackupWindow#actionAbort.; |
| 229 | QActioncxx . . $ QAction# *minimizeToTraycxx . . $ luckyBackupWindow#minimizeToTray.; |
| 230 | QActioncxx . . $ QAction# *restoreFromTraycxx . . $ luckyBackupWindow#restoreFromTray.; |
| 231 | QMenucxx . . $ QMenu# *LBtrayMenucxx . . $ luckyBackupWindow#LBtrayMenu.; |
| 232 | void createTrayIconcxx . . $ luckyBackupWindow#createTrayIcon(49f6e7a06ebc5aa8).(); // create the tray icon + relevant actions |
| 233 | bool isMinimizedToTraycxx . . $ luckyBackupWindow#isMinimizedToTray.; // becomes true if the gui is minimized to tray |
| 234 | |
| 235 | protected: |
| 236 | void closeEventcxx . . $ luckyBackupWindow#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# *event); |
| 237 | }; |
| 238 | |
| 239 | #endif |
| 240 | |
| 241 | // end of luckybackupwindow.h-------------------------------------------------------------- |