| 1 |
/* ---------------------------------- global.cpp --------------------------------------------------------------------------- |
| 2 |
file containing all variables & functions used globaly |
| 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 |
project version : Please see "main.cpp" for project version |
| 23 |
|
| 24 |
developer : luckyb |
| 25 |
last modified : 2 Nov 2018 |
| 26 |
=============================================================================================================================== |
| 27 |
=============================================================================================================================== |
| 28 |
*/ |
| 29 |
|
| 30 |
#include "global.h"cxx . . $ `<file>/src/global.h`/ |
| 31 |
|
| 32 |
#include <iostream> |
| 33 |
using namespace std; |
| 34 |
|
| 35 |
#include <QProcess> |
| 36 |
#include <QDataStream> |
| 37 |
#include <QTemporaryFile> |
| 38 |
#include <QTextStream> |
| 39 |
#include <QVariant> |
| 40 |
|
| 41 |
#include "operationClass.h"cxx . . $ `<file>/src/operationClass.h`/ |
| 42 |
|
| 43 |
// global Variables declarations ~~~~~~~~~~~~~~~~~ |
| 44 |
|
| 45 |
namespace Globalcxx . . $ Global/ { |
| 46 |
|
| 47 |
QStringcxx . . $ QString# myHomecxx . . $ Global/myHome. = QDircxx . . $ QDir#::homePathcxx . . $ QDir#homePath(4365c3963150523e).(); |
| 48 |
QStringcxx . . $ QString# currentUsercxx . . $ Global/currentUser.; |
| 49 |
QStringcxx . . $ QString# const appNamecxx . . $ Global/appName. = "luckyBackup"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 50 |
double const appVersioncxx . . $ Global/appVersion. = 0.50; |
| 51 |
QStringcxx . . $ QString# appVersionStringcxx . . $ Global/appVersionString. = "0.5.0"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 52 |
double const validProfileVersioncxx . . $ Global/validProfileVersion. = 0.21; |
| 53 |
double const validScheduleVersioncxx . . $ Global/validScheduleVersion. = 0.34; |
| 54 |
double const validSettingsVersioncxx . . $ Global/validSettingsVersion. = 0.3; |
| 55 |
QStringcxx . . $ QString# luckyBackupDircxx . . $ Global/luckyBackupDir. = myHomecxx . . $ Global/myHome. +cxx . . $ operator+(3d22f08efddf8107). "/."+cxx . . $ operator+(fab9b4f80031f353).appNamecxx . . $ Global/appName.+cxx . . $ operator+(3d22f08efddf8107)."/"; |
| 56 |
QStringcxx . . $ QString# luckyBackupDefaultDircxx . . $ Global/luckyBackupDefaultDir. = myHomecxx . . $ Global/myHome. +cxx . . $ operator+(3d22f08efddf8107). "/."+cxx . . $ operator+(fab9b4f80031f353).appNamecxx . . $ Global/appName.+cxx . . $ operator+(3d22f08efddf8107)."/"; |
| 57 |
QStringcxx . . $ QString# settingsFilecxx . . $ Global/settingsFile. = luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "settings.ini"; |
| 58 |
QStringcxx . . $ QString# profileDircxx . . $ Global/profileDir. = luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "profiles/"; |
| 59 |
QStringcxx . . $ QString# defaultProfilecxx . . $ Global/defaultProfile. = profileDircxx . . $ Global/profileDir. +cxx . . $ operator+(3d22f08efddf8107). "default.profile"; |
| 60 |
QStringcxx . . $ QString# standardDefaultProfilecxx . . $ Global/standardDefaultProfile. = profileDircxx . . $ Global/profileDir. +cxx . . $ operator+(3d22f08efddf8107). "default.profile"; |
| 61 |
QStringcxx . . $ QString# logDircxx . . $ Global/logDir. = luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "logs/"; |
| 62 |
QStringcxx . . $ QString# logfilenamecxx . . $ Global/logfilename. = logDircxx . . $ Global/logDir. +cxx . . $ operator+(3d22f08efddf8107). "logfile.log"; |
| 63 |
QStringcxx . . $ QString# cronlogStringcxx . . $ Global/cronlogString. = "LastCronLog.log"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 64 |
QStringcxx . . $ QString# emailLogStringcxx . . $ Global/emailLogString. = "-email.log"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 65 |
QStringcxx . . $ QString# emailLastLogStringcxx . . $ Global/emailLastLogString. = "-email-LastLog.log"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 66 |
QStringcxx . . $ QString# snapDefaultDircxx . . $ Global/snapDefaultDir. = ".luckybackup-snaphots/"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 67 |
QStringcxx . . $ QString# snapChangesDircxx . . $ Global/snapChangesDir. = luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "snaps/"; |
| 68 |
QStringcxx . . $ QString# snapEmptyDircxx . . $ Global/snapEmptyDir. = snapChangesDircxx . . $ Global/snapChangesDir. +cxx . . $ operator+(3d22f08efddf8107). "EMPTY/"; |
| 69 |
QStringcxx . . $ QString# snapchangesfilenamecxx . . $ Global/snapchangesfilename. = snapChangesDircxx . . $ Global/snapChangesDir. +cxx . . $ operator+(3d22f08efddf8107). "changes.log"; |
| 70 |
QStringcxx . . $ QString# snapChangesStringcxx . . $ Global/snapChangesString. = "[changed_data]%i[LB]%n"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 71 |
QStringcxx . . $ QString# scheduleDircxx . . $ Global/scheduleDir. = luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "schedule/"; |
| 72 |
QStringcxx . . $ QString# schedulefilenamecxx . . $ Global/schedulefilename. = scheduleDircxx . . $ Global/scheduleDir. +cxx . . $ operator+(3d22f08efddf8107). "schedule.dat"; |
| 73 |
QStringcxx . . $ QString# cronfilenamecxx . . $ Global/cronfilename. = scheduleDircxx . . $ Global/scheduleDir. +cxx . . $ operator+(3d22f08efddf8107). "luckyCron.txt"; |
| 74 |
QStringcxx . . $ QString# relativeTransDircxx . . $ Global/relativeTransDir. = "translations/"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 75 |
QStringcxx . . $ QString# systemTransDircxx . . $ Global/systemTransDir. = "/usr/share/luckybackup/translations/"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 76 |
QDircxx . . $ QDir# transDircxx . . $ Global/transDir.; |
| 77 |
QTranslatorcxx . . $ QTranslator# appTranslatorcxx . . $ Global/appTranslator.; |
| 78 |
QTranslatorcxx . . $ QTranslator# translator_qtcxx . . $ Global/translator_qt.; |
| 79 |
QStringcxx . . $ QString# localecxx . . $ Global/locale. = QLocalecxx . . $ QLocale#::systemcxx . . $ QLocale#system(7171962d3a2fd395).().namecxx . . $ QLocale#name(6ef7b6c27b00b43d).(); |
| 80 |
QStringcxx . . $ QString# relativeLicensecxx . . $ Global/relativeLicense. = "license/gpl.html"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 81 |
QStringcxx . . $ QString# systemLicensecxx . . $ Global/systemLicense. = "/usr/share/doc/luckybackup/license/gpl.html"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 82 |
QStringcxx . . $ QString# suseLicensecxx . . $ Global/suseLicense. = "/usr/share/doc/packages/luckybackup/license/gpl.html"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 83 |
QStringcxx . . $ QString# debianLicensecxx . . $ Global/debianLicense. = "/usr/share/common-licenses/GPL-3"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 84 |
QStringcxx . . $ QString# relativeManualcxx . . $ Global/relativeManual. = "manual/index.html"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 85 |
QStringcxx . . $ QString# systemManualcxx . . $ Global/systemManual. = "/usr/share/doc/luckybackup/manual/index.html"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 86 |
QStringcxx . . $ QString# suseManualcxx . . $ Global/suseManual. = "/usr/share/doc/packages/luckybackup/manual/index.html"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 87 |
|
| 88 |
QStringcxx . . $ QString# countStrcxx . . $ Global/countStr.; |
| 89 |
QStringcxx . . $ QString# messagecxx . . $ Global/message.=""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 90 |
QStringcxx . . $ QString# messageCLIcxx . . $ Global/messageCLI.=""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 91 |
int errorsFoundcxx . . $ Global/errorsFound.; |
| 92 |
int filesTransferedcxx . . $ Global/filesTransfered.; |
| 93 |
unsigned long long int bytesTransferedcxx . . $ Global/bytesTransfered.; |
| 94 |
|
| 95 |
// Useful variables for operations --------------------------------------------------------------------------------------------------- |
| 96 |
int const maxOperationscxx . . $ Global/maxOperations. = 100; |
| 97 |
int TotalOperationscxx . . $ Global/TotalOperations.=0; |
| 98 |
int currentOperationcxx . . $ Global/currentOperation.=-1; |
| 99 |
int removeCharLimitcxx . . $ Global/removeCharLimit.; |
| 100 |
bool modifyOKcxx . . $ Global/modifyOK.=false; |
| 101 |
bool modifyConnectedcxx . . $ Global/modifyConnected.=false; |
| 102 |
bool DryRuncxx . . $ Global/DryRun.=false; |
| 103 |
bool askcxx . . $ Global/ask.=false; |
| 104 |
bool newTaskThisIscxx . . $ Global/newTaskThisIs. = true; |
| 105 |
bool NothingToDocxx . . $ Global/NothingToDo.=false; |
| 106 |
bool NothingIncludedcxx . . $ Global/NothingIncluded.=false; |
| 107 |
bool crontabUpdatedcxx . . $ Global/crontabUpdated.=false; |
| 108 |
QStringcxx . . $ QString# currentProfilecxx . . $ Global/currentProfile.=""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 109 |
QStringcxx . . $ QString# profileNamecxx . . $ Global/profileName.=""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 110 |
QStringcxx . . $ QString# profileDescriptioncxx . . $ Global/profileDescription.=""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 111 |
QFilecxx . . $ QFile# profilecxx . . $ Global/profile.(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 112 |
QFilecxx . . $ QFile# logfilecxx . . $ Global/logfile.(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 113 |
QFilecxx . . $ QFile# snapfilecxx . . $ Global/snapfile.(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 114 |
QStringcxx . . $ QString# CheckedDatacxx . . $ Global/CheckedData.; |
| 115 |
QStringcxx . . $ QString# CheckedDataCLIcxx . . $ Global/CheckedDataCLI.; |
| 116 |
operationcxx . . $ operation# *Operationcxx . . $ Global/Operation.[maxOperationscxx . . $ Global/maxOperations.]; |
| 117 |
|
| 118 |
bool consolecxx . . $ Global/console.; |
| 119 |
bool NoQuestionscxx . . $ Global/NoQuestions.; |
| 120 |
bool SkipCriticalcxx . . $ Global/SkipCritical.; |
| 121 |
bool silentModecxx . . $ Global/silentMode.; |
| 122 |
bool runImmediatelycxx . . $ Global/runImmediately.; |
| 123 |
bool validationcxx . . $ Global/validation.; |
| 124 |
bool KDErunningcxx . . $ Global/KDErunning. = false; |
| 125 |
bool GNOMErunningcxx . . $ Global/GNOMErunning. = false; |
| 126 |
bool writeToLogcxx . . $ Global/writeToLog.; |
| 127 |
|
| 128 |
QStringcxx . . $ QString# emailCommandcxx . . $ Global/emailCommand.; |
| 129 |
QStringcxx . . $ QString# emailArgumentscxx . . $ Global/emailArguments.; |
| 130 |
bool emailNevercxx . . $ Global/emailNever.; |
| 131 |
bool emailErrorcxx . . $ Global/emailError.; |
| 132 |
bool emailSchedulecxx . . $ Global/emailSchedule.; |
| 133 |
bool emailTLScxx . . $ Global/emailTLS.; |
| 134 |
QStringcxx . . $ QString# emailFromcxx . . $ Global/emailFrom.; |
| 135 |
QStringcxx . . $ QString# emailTocxx . . $ Global/emailTo.; |
| 136 |
QStringcxx . . $ QString# emailSubjectcxx . . $ Global/emailSubject.; |
| 137 |
QStringcxx . . $ QString# emailSMTPcxx . . $ Global/emailSMTP.; |
| 138 |
QStringcxx . . $ QString# emailBodycxx . . $ Global/emailBody.; |
| 139 |
QStringcxx . . $ QString# emailDefaultSubjectcxx . . $ Global/emailDefaultSubject. = appNamecxx . . $ Global/appName. +cxx . . $ operator+(3d22f08efddf8107). " report"; |
| 140 |
QStringcxx . . $ QString# emailDefaultBodycxx . . $ Global/emailDefaultBody. = "Profile: %p"cxx . . $ QString#QString(85c52e162fed56f9). |
| 141 |
"\nDate: %d" |
| 142 |
"\nTime: %i" |
| 143 |
"\nErrors found: %e"; |
| 144 |
QStringcxx . . $ QString# emailDefaultCommandcxx . . $ Global/emailDefaultCommand. = "sendemail"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 145 |
QStringcxx . . $ QString# emailDefaultArgumentscxx . . $ Global/emailDefaultArguments. = "-f %f -t %t -u %s -m %b -a %l -s %v"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 146 |
QStringcxx . . $ QString# emailDefaultWinCommandcxx . . $ Global/emailDefaultWinCommand. ="C:\\Program Files (x86)\\luckyBackup\\blat\\blat.exe"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 147 |
QStringcxx . . $ QString# emailDefaultWinArgumentscxx . . $ Global/emailDefaultWinArguments. ="-f %f -to %t -s %s -server %v -attach %l -body %b"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 148 |
|
| 149 |
QStringcxx . . $ QString# rsyncDefaultCommandcxx . . $ Global/rsyncDefaultCommand. = "rsync"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 150 |
QStringcxx . . $ QString# sshDefaultCommandcxx . . $ Global/sshDefaultCommand. = "ssh"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 151 |
|
| 152 |
// WINDOWS related variables. Also search variables above for "WINDOWS use" |
| 153 |
//QString rsyncDefaultWinCommand = "C:\\Program Files (x86)\\luckyBackup\\cygwin\\rsync.exe"; |
| 154 |
//QString sshDefaultWinCommand = "C:\\Program Files (x86)\\luckyBackup\\cygwin\\ssh.exe"; |
| 155 |
QStringcxx . . $ QString# rsyncDefaultWinCommandcxx . . $ Global/rsyncDefaultWinCommand. = ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 156 |
QStringcxx . . $ QString# sshDefaultWinCommandcxx . . $ Global/sshDefaultWinCommand. = ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 157 |
QStringcxx . . $ QString# appPathcxx . . $ Global/appPath. = ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 158 |
//"QCoreApplication::applicationDirPath: Please instantiate the QApplication object first" WARNING message |
| 159 |
//QString rsyncDefaultWinCommand = appPath+"/rsync.exe"; |
| 160 |
//QString sshDefaultWinCommand = appPath+"/ssh.exe"; |
| 161 |
QStringcxx . . $ QString# mapdrivecxx . . $ Global/mapdrive.="w"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 162 |
QStringcxx . . $ QString# vshadowDircxx . . $ Global/vshadowDir.= ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 163 |
QStringcxx . . $ QString# vshadowDefaultDircxx . . $ Global/vshadowDefaultDir.= ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 164 |
QStringcxx . . $ QString# dosdevCommandcxx . . $ Global/dosdevCommand.= ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 165 |
QStringcxx . . $ QString# dosdevDefaultCommandcxx . . $ Global/dosdevDefaultCommand.= ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 166 |
QStringcxx . . $ QString# cygpathCommandcxx . . $ Global/cygpathCommand.= ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 167 |
QStringcxx . . $ QString# cygpathDefaultCommandcxx . . $ Global/cygpathDefaultCommand.= ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 168 |
bool isTempDirPathcxx . . $ Global/isTempDirPath.=false; |
| 169 |
QStringcxx . . $ QString# tempDirPathcxx . . $ Global/tempDirPath.=QDircxx . . $ QDir#::tempPathcxx . . $ QDir#tempPath(4365c3963150523e).(); |
| 170 |
QStringcxx . . $ QString# tempDefaultDirPathcxx . . $ Global/tempDefaultDirPath.=QDircxx . . $ QDir#::tempPathcxx . . $ QDir#tempPath(4365c3963150523e).(); |
| 171 |
//void setAppDir(QString s); |
| 172 |
/* disable vss until |
| 173 |
* int doVss=0; |
| 174 |
* int vssPos=0; |
| 175 |
* int vssErrPos=0; |
| 176 |
* QTimer *vssTimer; |
| 177 |
* int vssSleepTime=50; |
| 178 |
* int vssReadSize=400; |
| 179 |
* QFile *pipeVssFile; |
| 180 |
* QFile *pipeVssErrFile;*/ |
| 181 |
//QString createWinMkdirCommand(QString tempPath,bool vss,QStringList rsyncArgs,bool logGui); |
| 182 |
// END of Windows related variables |
| 183 |
|
| 184 |
QStringcxx . . $ QString# rsyncCommandPathcxx . . $ Global/rsyncCommandPath.; |
| 185 |
QStringcxx . . $ QString# sshCommandPathcxx . . $ Global/sshCommandPath.; |
| 186 |
|
| 187 |
QStringcxx . . $ QString# XnixSLASHcxx . . $ Global/XnixSLASH. = "/"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 188 |
|
| 189 |
#ifdef Q_OS_OS2 |
| 190 |
bool OS2running = true; |
| 191 |
QString SLASH = "\\"; |
| 192 |
#else |
| 193 |
bool OS2runningcxx . . $ Global/OS2running. = false; |
| 194 |
QStringcxx . . $ QString# SLASHcxx . . $ Global/SLASH. = "/"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 195 |
#endif |
| 196 |
|
| 197 |
#ifdef Q_OS_WIN32 |
| 198 |
bool WINrunning = true; |
| 199 |
#else |
| 200 |
bool WINrunningcxx . . $ Global/WINrunning. = false; |
| 201 |
#endif |
| 202 |
|
| 203 |
#if defined Q_OS_OS2 || defined Q_OS_WIN32 |
| 204 |
bool notXnixRunning=true; |
| 205 |
#else |
| 206 |
bool notXnixRunningcxx . . $ Global/notXnixRunning.=false; |
| 207 |
#endif |
| 208 |
|
| 209 |
// end of global Variables declarations ~~~~~~~~~~~~~~~~~ |
| 210 |
|
| 211 |
// argumentsTest=================================================================================================================== |
| 212 |
// tests the arguments given when LB executed at command-line |
| 213 |
bool argumentsTestcxx . . $ Global/argumentsTest(999dbd1e14140801).(int ArgsNo, char **arg) |
| 214 |
{ |
| 215 |
consolecxx . . $ Global/console. = false; |
| 216 |
NoQuestionscxx . . $ Global/NoQuestions. = false; |
| 217 |
SkipCriticalcxx . . $ Global/SkipCritical. = false; |
| 218 |
DryRuncxx . . $ Global/DryRun. = false; |
| 219 |
silentModecxx . . $ Global/silentMode. = false; |
| 220 |
runImmediatelycxx . . $ Global/runImmediately. = false; |
| 221 |
|
| 222 |
if (ArgsNo == 1) // if just luckybackup is given without argumets just run the gui |
| 223 |
return true; |
| 224 |
|
| 225 |
int NoOfArgs = ArgsNo-1; //the number of arguments given minus the command luckybackup |
| 226 |
stringcxx . . $ std/string# stdArgs[7] = { "-c", "--no-questions", "--skip-critical", "--dry-run", "--silent"}; |
| 227 |
bool argCheck = false; // if a specific argument is ok this becomes true |
| 228 |
|
| 229 |
int count = 1; |
| 230 |
while (count < NoOfArgs) |
| 231 |
{ |
| 232 |
if (arg[count] ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). stdArgs[0]) |
| 233 |
{ consolecxx . . $ Global/console. = true; argCheck = true; } |
| 234 |
if (arg[count] ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). stdArgs[1]) |
| 235 |
{ NoQuestionscxx . . $ Global/NoQuestions. = true; consolecxx . . $ Global/console. = true; argCheck = true; } |
| 236 |
if (arg[count] ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). stdArgs[2]) |
| 237 |
{ SkipCriticalcxx . . $ Global/SkipCritical. = true; argCheck = true; } |
| 238 |
if (arg[count] ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). stdArgs[3]) |
| 239 |
{ DryRuncxx . . $ Global/DryRun. = true; argCheck = true; } |
| 240 |
if (arg[count] ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). stdArgs[4]) |
| 241 |
{ silentModecxx . . $ Global/silentMode. = true; argCheck = true; } |
| 242 |
if ((arg[count] ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). stdArgs[5]) || (arg[count] ==cxx . . $ std/`operator==`(3a786e8ce7e53c2c). stdArgs[6])) |
| 243 |
{ |
| 244 |
// what was I thinking ??? |
| 245 |
} |
| 246 |
if (!argCheck) // if the argument is unknown |
| 247 |
{ helpcxx . . $ Global/help(49f6e7a06ebc5aa8).(); return false; } |
| 248 |
argCheck = false; |
| 249 |
count++; |
| 250 |
} |
| 251 |
|
| 252 |
const char *profileNameChar = arg[NoOfArgs]; //const char* used cause argument in terminal is in utf-8 and this helps to convert it to QString |
| 253 |
QStringcxx . . $ QString# profileNameArg = argcxx . . $ QString#QString(85c52e162fed56f9).[NoOfArgs]; |
| 254 |
if ( (profileNameArg ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "--help") || (profileNameArg ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "-h") ) |
| 255 |
{ helpcxx . . $ Global/help(49f6e7a06ebc5aa8).(); return false;} |
| 256 |
if ( (profileNameArg ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "--version") || (profileNameArg ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "-v") ) |
| 257 |
{ |
| 258 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"; |
| 259 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " You are using luckyBackup version: " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). appVersionStringcxx . . $ Global/appVersionString..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7)."\n"; |
| 260 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"; |
| 261 |
return false; |
| 262 |
} |
| 263 |
|
| 264 |
//currentProfile = profileNameArg; // currentProfile holds the full path+filename of the current profile |
| 265 |
currentProfilecxx . . $ Global/currentProfile. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#::fromUtf8cxx . . $ QString#fromUtf8(5ac70cc0fa2a874e).(profileNameChar); // currentProfile holds the full path+filename of the current profile |
| 266 |
|
| 267 |
if ( notXnixRunningcxx . . $ Global/notXnixRunning. ) |
| 268 |
{ |
| 269 |
profileDircxx . . $ Global/profileDir..replacecxx . . $ QString#replace(192e628656427d1c).("/"cxx . . $ QString#QString(85c52e162fed56f9).,SLASHcxx . . $ Global/SLASH.); |
| 270 |
profileNameArg.replacecxx . . $ QString#replace(192e628656427d1c).("/"cxx . . $ QString#QString(85c52e162fed56f9).,SLASHcxx . . $ Global/SLASH.); |
| 271 |
currentProfilecxx . . $ Global/currentProfile..replacecxx . . $ QString#replace(192e628656427d1c).("/"cxx . . $ QString#QString(85c52e162fed56f9).,SLASHcxx . . $ Global/SLASH.); |
| 272 |
} |
| 273 |
if (!profileNameArg.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(".profile"cxx . . $ QString#QString(85c52e162fed56f9).,Qtcxx . . $ Qt/::CaseSensitivecxx . . $ Qt/CaseSensitive.)) |
| 274 |
currentProfilecxx . . $ Global/currentProfile..appendcxx . . $ QString#append(d02845eef0c33901).(".profile"); |
| 275 |
if ( (!profileNameArg.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) && (!notXnixRunningcxx . . $ Global/notXnixRunning.) ) |
| 276 |
currentProfilecxx . . $ Global/currentProfile..prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).(profileDircxx . . $ Global/profileDir.); |
| 277 |
if ( (notXnixRunningcxx . . $ Global/notXnixRunning.) && (!profileNameArg.containscxx . . $ QString#contains(8cce4688c16f48f3).(":"+cxx . . $ operator+(c75c3ae4eb9af1a8).SLASHcxx . . $ Global/SLASH.)) ) |
| 278 |
currentProfilecxx . . $ Global/currentProfile..prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).(profileDircxx . . $ Global/profileDir.); |
| 279 |
|
| 280 |
//current profile QFile |
| 281 |
profilecxx . . $ Global/profile..setFileNamecxx . . $ QFile#setFileName(3520e46b33348bf6).(currentProfilecxx . . $ Global/currentProfile.); |
| 282 |
|
| 283 |
//current profile's name (QString) - this just holds the profile name. No path & no extension |
| 284 |
profileNamecxx . . $ Global/profileName. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). currentProfilecxx . . $ Global/currentProfile.; |
| 285 |
profileNamecxx . . $ Global/profileName. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). profileNamecxx . . $ Global/profileName..rightcxx . . $ QString#right(3f3c3d0e9c0eb37f).(profileNamecxx . . $ Global/profileName..sizecxx . . $ QString#size(455f465bc33b4cdf).() - profileNamecxx . . $ Global/profileName..lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(SLASHcxx . . $ Global/SLASH.) - 1); |
| 286 |
profileNamecxx . . $ Global/profileName..chopcxx . . $ QString#chop(d4f767463ce0a6b3).(8); |
| 287 |
|
| 288 |
runImmediatelycxx . . $ Global/runImmediately. = true; |
| 289 |
return true; // all arguments ok |
| 290 |
} |
| 291 |
|
| 292 |
// declareRsyncCommand=================================================================================================================== |
| 293 |
// declares the rsync and ssh commands (full path for windows) |
| 294 |
void declareRsyncCommandcxx . . $ Global/declareRsyncCommand(49f6e7a06ebc5aa8).() |
| 295 |
{ |
| 296 |
|
| 297 |
// WINDOWS related variables |
| 298 |
appPathcxx . . $ Global/appPath. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QCoreApplicationcxx . . $ QCoreApplication#::applicationDirPathcxx . . $ QCoreApplication#applicationDirPath(4365c3963150523e).(); |
| 299 |
rsyncDefaultWinCommandcxx . . $ Global/rsyncDefaultWinCommand. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). appPathcxx . . $ Global/appPath.+cxx . . $ operator+(3d22f08efddf8107)."/rsync.exe"; |
| 300 |
sshDefaultWinCommandcxx . . $ Global/sshDefaultWinCommand. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). appPathcxx . . $ Global/appPath.+cxx . . $ operator+(3d22f08efddf8107)."/ssh.exe"; |
| 301 |
vshadowDircxx . . $ Global/vshadowDir. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). appPathcxx . . $ Global/appPath.; |
| 302 |
vshadowDefaultDircxx . . $ Global/vshadowDefaultDir. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). appPathcxx . . $ Global/appPath.; |
| 303 |
dosdevCommandcxx . . $ Global/dosdevCommand. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). appPathcxx . . $ Global/appPath.+cxx . . $ operator+(3d22f08efddf8107)."/dosdev.exe"; |
| 304 |
dosdevDefaultCommandcxx . . $ Global/dosdevDefaultCommand. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). appPathcxx . . $ Global/appPath.+cxx . . $ operator+(3d22f08efddf8107)."/dosdev.exe"; |
| 305 |
cygpathCommandcxx . . $ Global/cygpathCommand. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). appPathcxx . . $ Global/appPath.+cxx . . $ operator+(3d22f08efddf8107)."/cygpath.exe"; |
| 306 |
cygpathDefaultCommandcxx . . $ Global/cygpathDefaultCommand. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). appPathcxx . . $ Global/appPath.+cxx . . $ operator+(3d22f08efddf8107)."/cygpath.exe"; |
| 307 |
// END of Windows related variables |
| 308 |
|
| 309 |
if (notXnixRunningcxx . . $ Global/notXnixRunning.) |
| 310 |
{ |
| 311 |
if (WINrunningcxx . . $ Global/WINrunning.) |
| 312 |
{ |
| 313 |
rsyncCommandPathcxx . . $ Global/rsyncCommandPath. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). rsyncDefaultWinCommandcxx . . $ Global/rsyncDefaultWinCommand.; // This is the default rsync path that windows use |
| 314 |
sshCommandPathcxx . . $ Global/sshCommandPath. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). sshDefaultWinCommandcxx . . $ Global/sshDefaultWinCommand.; // This is the default ssh path that windows use |
| 315 |
} |
| 316 |
|
| 317 |
if (OS2runningcxx . . $ Global/OS2running.) |
| 318 |
{ |
| 319 |
rsyncCommandPathcxx . . $ Global/rsyncCommandPath. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). rsyncDefaultCommandcxx . . $ Global/rsyncDefaultCommand.; // This is the default rsync path that OS2 use |
| 320 |
sshCommandPathcxx . . $ Global/sshCommandPath. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). sshDefaultCommandcxx . . $ Global/sshDefaultCommand.; // This is the default ssh path that OS2 use |
| 321 |
} |
| 322 |
} |
| 323 |
else // normal *nix |
| 324 |
{ |
| 325 |
rsyncCommandPathcxx . . $ Global/rsyncCommandPath. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). rsyncDefaultCommandcxx . . $ Global/rsyncDefaultCommand.; // This is the default rsync command that *nix use |
| 326 |
sshCommandPathcxx . . $ Global/sshCommandPath. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). sshDefaultCommandcxx . . $ Global/sshDefaultCommand.; // This is the default ssh command that *nix use |
| 327 |
|
| 328 |
} |
| 329 |
} |
| 330 |
|
| 331 |
// loadCurrentProfile=================================================================================================================== |
| 332 |
// loads an existing profile - non-gui call |
| 333 |
bool loadCurrentProfilecxx . . $ Global/loadCurrentProfile(c9857a73d68e59ba).() |
| 334 |
{ |
| 335 |
QStringcxx . . $ QString# currentProfileUTF8 = QStringcxx . . $ QString#QString(45672f3c6961a244).(currentProfilecxx . . $ Global/currentProfile..toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()); |
| 336 |
|
| 337 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n============================================================================================\n"; |
| 338 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Loading profile " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). currentProfileUTF8.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 339 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"; |
| 340 |
|
| 341 |
QStringcxx . . $ QString# sourcecxx . . $ QString#QString(ced63f7c635d850d)., destcxx . . $ QString#QString(ced63f7c635d850d).; |
| 342 |
|
| 343 |
//read the file and fill all arrays |
| 344 |
int loadOK = loadProfilecxx . . $ Global/loadProfile(87a9b7c6fe1ccdba).(currentProfileUTF8cxx . . $ QString#QString(132dd6869045752b).); // try to load the currentProfile |
| 345 |
if (loadOK == 1) // if it cannot open |
| 346 |
{ |
| 347 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " ** Unable to open profile : " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). currentProfileUTF8.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " **\n"; |
| 348 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). profilecxx . . $ Global/profile..errorStringcxx . . $ QIODevice#errorString(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 349 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n\n"; |
| 350 |
return false; //do nothing more |
| 351 |
} |
| 352 |
|
| 353 |
if (loadOK == 2) // if it is not a valid profile |
| 354 |
{ |
| 355 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " ** The profile you are trying to open is not a valid luckyBackup v." |
| 356 |
<<cxx . . $ std/`operator<<`(88df5bef833f7f83). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(3becbeaf5ad69e3c).(appVersioncxx . . $ Global/appVersion.).toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " profile **\n\n"; |
| 357 |
return false; //do nothing more |
| 358 |
} |
| 359 |
|
| 360 |
// if all went ok (profile loaded) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 361 |
|
| 362 |
//append the profile description (CLI) |
| 363 |
//if (profileDescription != "") |
| 364 |
// cout << "\n\n Profile description: \n" << (QString(profileDescription.toUtf8())).toStdString() <<"\n\n"; |
| 365 |
|
| 366 |
currentOperationcxx . . $ Global/currentOperation. = 0; |
| 367 |
while (currentOperationcxx . . $ Global/currentOperation. < TotalOperationscxx . . $ Global/TotalOperations.) |
| 368 |
{ |
| 369 |
source =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]->GetSourcecxx . . $ operation#GetSource(6ef7b6c27b00b43d).(); |
| 370 |
dest =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]->GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).(); |
| 371 |
|
| 372 |
if ( (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).()) && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSourcecxx . . $ operation#GetRemoteSource(50ce9a9e25b4a850).()) ) |
| 373 |
{ |
| 374 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).()) |
| 375 |
source.prependcxx . . $ QString#prepend(d02845eef0c33901).(":"); |
| 376 |
source.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107).":"); |
| 377 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).()!=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."") |
| 378 |
source.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107)."@"); |
| 379 |
} |
| 380 |
|
| 381 |
if ( (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).()) && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteDestinationcxx . . $ operation#GetRemoteDestination(50ce9a9e25b4a850).()) ) |
| 382 |
{ |
| 383 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).()) |
| 384 |
dest.prependcxx . . $ QString#prepend(d02845eef0c33901).(":"); |
| 385 |
dest.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107).":"); |
| 386 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).()!=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."") |
| 387 |
dest.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107)."@"); |
| 388 |
} |
| 389 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n* task name : " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). QStringcxx . . $ QString#QString(45672f3c6961a244).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]->GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).()).toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).()).toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 390 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n* source : " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). QStringcxx . . $ QString#QString(45672f3c6961a244).(source.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()).toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 391 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n* destination : " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). QStringcxx . . $ QString#QString(45672f3c6961a244).(dest.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()).toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 392 |
|
| 393 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]->GetIncludedcxx . . $ operation#GetIncluded(50ce9a9e25b4a850).()) |
| 394 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n* This task is included\n"; |
| 395 |
else |
| 396 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n* This task is NOT included\n"; |
| 397 |
|
| 398 |
currentOperationcxx . . $ Global/currentOperation.++; |
| 399 |
} |
| 400 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n\n ** Profile loaded successfully ... **\n\n"; |
| 401 |
return true; |
| 402 |
} |
| 403 |
|
| 404 |
// check_list=================================================================================================================== |
| 405 |
// checks the loaded operations list for errors (eg nothing is included) |
| 406 |
// calls global function checkTaskList() |
| 407 |
bool check_listcxx . . $ Global/check_list(c9857a73d68e59ba).() |
| 408 |
{ |
| 409 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n============================================================================================\n"; |
| 410 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Task list check \n"; |
| 411 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"; |
| 412 |
|
| 413 |
|
| 414 |
|
| 415 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n* Checking if the task list is empty... done"; |
| 416 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n* Checking if 2 connected tasks have been selected for execution... done"; |
| 417 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n* Checking if no task is included... done"; |
| 418 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n* Checking if 2 or more identical destination directories are declared\n & 'Backup dir contents' is checked... done\n"; |
| 419 |
|
| 420 |
checkTaskListcxx . . $ Global/checkTaskList(c9857a73d68e59ba).(); |
| 421 |
|
| 422 |
if (askcxx . . $ Global/ask.) |
| 423 |
{ |
| 424 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). messageCLIcxx . . $ Global/messageCLI..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).();; |
| 425 |
return false; |
| 426 |
} |
| 427 |
else |
| 428 |
{ |
| 429 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n\n ** Task list looks ok... **\n"; |
| 430 |
return true; |
| 431 |
} |
| 432 |
return true; |
| 433 |
} |
| 434 |
|
| 435 |
// check_dirs=================================================================================================================== |
| 436 |
// checks all declared directories for errors by calling checkBackupDirs or checkSyncDirs |
| 437 |
//This is called from the console |
| 438 |
bool check_dirscxx . . $ Global/check_dirs(c9857a73d68e59ba).() |
| 439 |
{ |
| 440 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n============================================================================================\n"; |
| 441 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Directories check\n"; |
| 442 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"; |
| 443 |
|
| 444 |
checkDeclaredDirscxx . . $ Global/checkDeclaredDirs(efaadfb7dc14930a).(false); |
| 445 |
|
| 446 |
if (askcxx . . $ Global/ask. == false) //if all the dirs are ok prepend this lines to the dialog message |
| 447 |
{ |
| 448 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..prependcxx . . $ QString#prepend(d02845eef0c33901).("\n (Have in mind that checks are not performed for remote data)\n\n" |
| 449 |
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"); |
| 450 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..prependcxx . . $ QString#prepend(d02845eef0c33901).("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" |
| 451 |
" All data declared appears to be ok - You are ready to go !!" |
| 452 |
"\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"); |
| 453 |
} |
| 454 |
else //else prepend the following |
| 455 |
{ |
| 456 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..prependcxx . . $ QString#prepend(d02845eef0c33901).(" Errors have been found\n" |
| 457 |
" Please have a good look at the following messages\n\n" |
| 458 |
" WARNING means that the task is NOT going to be performed\n" |
| 459 |
" CRITICAL means that the task is going to be performed normally\n\n" |
| 460 |
" If a directory is empty or does not exist,\n" |
| 461 |
" there is a possibility that you 've forgotten to mount a partition/drive\n or have just mistyped a path !!\n" |
| 462 |
"\n BEWARE if a destination is empty or non-existent\n" |
| 463 |
" and it is not the first time you perform the specific task(s)\n\n" |
| 464 |
" Also have in mind that checks are not performed for remote data\n" |
| 465 |
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"); |
| 466 |
|
| 467 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..prependcxx . . $ QString#prepend(d02845eef0c33901).("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" |
| 468 |
" Source & destination data check results" |
| 469 |
"\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"); |
| 470 |
} |
| 471 |
|
| 472 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). CheckedDataCLIcxx . . $ Global/CheckedDataCLI..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 473 |
//cout << CheckedDataCLI.toUtf8().constData(); |
| 474 |
|
| 475 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7)."\n\n"; |
| 476 |
if (NothingToDocxx . . $ Global/NothingToDo.) //if there is nothing to Do anyway then just display a message |
| 477 |
{ |
| 478 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n\n ** ..nothing to do !! **\n\n"; |
| 479 |
return false; |
| 480 |
} |
| 481 |
return true; |
| 482 |
} |
| 483 |
|
| 484 |
// help=================================================================================================================== |
| 485 |
// displays command line usage instructions |
| 486 |
void helpcxx . . $ Global/help(49f6e7a06ebc5aa8).() |
| 487 |
{ |
| 488 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n============================================================================================\n"; |
| 489 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n * usage : luckybackup [options] [filename]"; |
| 490 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n -------------------------------------------------------------------------------------------\n"; |
| 491 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " [options] can be :\n\n"; |
| 492 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --help : displays this help message\n"; |
| 493 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --version : displays the current version of the application\n\n"; |
| 494 |
|
| 495 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --skip-critical : does not execute tasks that appear with a 'CRITICAL' warning message.\n"; |
| 496 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --dry-run : executes luckybackup in dry-run (simulation) mode\n"; |
| 497 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --silent : executes luckybackup in silent mode (just tray notification icon shown)\n"; |
| 498 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| •499 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -c : console mode. Use this, if there is no graphical environment available\n"; |
| 500 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --no-questions: skips confirmation questions asked to user. Implies -c (console mode).\n\n"; |
| 501 |
|
| 502 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " [filename] is the already created profile that is going to be executed\n"; |
| 503 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -------------------------------------------------------------------------------------------\n"; |
| 504 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " * examples:\n"; |
| 505 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Execute luckybackup gui :\n"; |
| 506 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " $ luckybackup\n\n"; |
| 507 |
|
| 508 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Execute luckybackup in silent mode for profile '~/.luckyBackup/profiles/BackupHome.profile' :\n"; |
| 509 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " $ luckybackup --silent ~/.luckyBackup/profiles/BackupHome.profile\n\n"; |
| 510 |
|
| 511 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Execute luckybackup in console mode for profile '~/.luckyBackup/profiles/BackupHome.profile' :\n"; |
| 512 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " $ luckybackup -c BackupHome.profile\n\n"; |
| 513 |
|
| 514 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Execute luckybackup in console mode for profile '~/.luckyBackup/profiles/BackupHome.profile' :\n"; |
| 515 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Do not ask any questions and skip all tasks that apear CRITICAL after the checks\n"; |
| 516 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " $ luckybackup --skip-critical --no-questions ~/.luckyBackup/profiles/BackupHome.profile"; |
| 517 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n -------------------------------------------------------------------------------------------\n"; |
| 518 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " see also luckybackup man page:\n"; |
| 519 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " $ man luckybackup"; |
| 520 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n============================================================================================\n\n"; |
| 521 |
} |
| 522 |
// loadProfile ===================================================================================================================================== |
| 523 |
// loads an existing profile |
| 524 |
int loadProfilecxx . . $ Global/loadProfile(87a9b7c6fe1ccdba).(QStringcxx . . $ QString# profileToLoad) |
| 525 |
{ |
| 526 |
profilecxx . . $ Global/profile..setFileNamecxx . . $ QFile#setFileName(3520e46b33348bf6).(profileToLoad); |
| 527 |
|
| 528 |
if (!profilecxx . . $ Global/profile..opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QFlags#QFlags(93d577a3e9528307).::ReadOnlycxx . . $ QIODevice#ReadOnly.)) //if the profile cannot be opened |
| 529 |
{ |
| 530 |
profilecxx . . $ Global/profile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 531 |
return 1; |
| 532 |
} |
| 533 |
|
| 534 |
QTextStreamcxx . . $ QTextStream# incxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&profilecxx . . $ Global/profile.); |
| 535 |
|
| 536 |
QStringcxx . . $ QString# ProfileLine=""cxx . . $ QString#QString(85c52e162fed56f9).; //temp variable to import the profile line by line |
| 537 |
ProfileLine =cxx . . $ QString#`operator=`(4f35bf974e7f8568). in.readLinecxx . . $ QTextStream#readLine(20e0a2766677f583).(); |
| 538 |
|
| 539 |
// First check if the profile is a text or data stream |
| 540 |
// if data, call loadProfileQV |
| 541 |
if (ProfileLine !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."***************************** WARNING *****************************") |
| 542 |
{ |
| 543 |
profilecxx . . $ Global/profile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 544 |
return loadProfileQVcxx . . $ Global/loadProfileQV(87a9b7c6fe1ccdba).(profileToLoadcxx . . $ QString#QString(132dd6869045752b).); |
| 545 |
} |
| 546 |
|
| 547 |
QStringcxx . . $ QString# tempAppName = "asxeto"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 548 |
profileDescriptioncxx . . $ Global/profileDescription. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 549 |
double tempAppVersion=0; |
| 550 |
bool IntOk; |
| 551 |
|
| 552 |
// Init email variables in case profile does not contain them |
| 553 |
if(WINrunningcxx . . $ Global/WINrunning.) |
| 554 |
{ |
| 555 |
emailCommandcxx . . $ Global/emailCommand. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). emailDefaultWinCommandcxx . . $ Global/emailDefaultWinCommand.; |
| 556 |
emailArgumentscxx . . $ Global/emailArguments. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). emailDefaultWinArgumentscxx . . $ Global/emailDefaultWinArguments.; |
| 557 |
} |
| 558 |
else |
| 559 |
{ |
| 560 |
emailCommandcxx . . $ Global/emailCommand. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). emailDefaultCommandcxx . . $ Global/emailDefaultCommand.; |
| 561 |
emailArgumentscxx . . $ Global/emailArguments. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). emailDefaultArgumentscxx . . $ Global/emailDefaultArguments.; |
| 562 |
} |
| 563 |
emailBodycxx . . $ Global/emailBody. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). emailDefaultBodycxx . . $ Global/emailDefaultBody.; |
| 564 |
emailSubjectcxx . . $ Global/emailSubject. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). emailDefaultSubjectcxx . . $ Global/emailDefaultSubject.; |
| 565 |
emailNevercxx . . $ Global/emailNever. = true; |
| 566 |
emailErrorcxx . . $ Global/emailError. = false; |
| 567 |
emailSchedulecxx . . $ Global/emailSchedule. = false; |
| 568 |
emailTLScxx . . $ Global/emailTLS. = false; |
| 569 |
emailFromcxx . . $ Global/emailFrom. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 570 |
emailTocxx . . $ Global/emailTo. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 571 |
emailSMTPcxx . . $ Global/emailSMTP. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 572 |
|
| 573 |
// Read all lines until the first task line or end of file if invalid |
| 574 |
while ( !(ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("[Task]"cxx . . $ QString#QString(85c52e162fed56f9).)) && (!in.atEndcxx . . $ QTextStream#atEnd(50ce9a9e25b4a850).()) ) |
| 575 |
{ |
| 576 |
ProfileLine =cxx . . $ QString#`operator=`(4f35bf974e7f8568). in.readLinecxx . . $ QTextStream#readLine(20e0a2766677f583).(); |
| 577 |
|
| 578 |
//input the application name & version-------------------------- |
| 579 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("appName="cxx . . $ QString#QString(85c52e162fed56f9).)) tempAppName =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("appName="cxx . . $ QString#QString(85c52e162fed56f9).); |
| 580 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("appVersion="cxx . . $ QString#QString(85c52e162fed56f9).)) tempAppVersion = (ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("appVersion="cxx . . $ QString#QString(85c52e162fed56f9).)).toDoublecxx . . $ QString#toDouble(1bd8e57dd4a29c14).(&IntOk); |
| 581 |
|
| 582 |
//input the size of the tasks list |
| 583 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("TotalTasks="cxx . . $ QString#QString(85c52e162fed56f9).)) TotalOperationscxx . . $ Global/TotalOperations. = (ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("TotalTasks="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10); |
| 584 |
|
| 585 |
//input the profile description |
| 586 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ProfileDescription="cxx . . $ QString#QString(85c52e162fed56f9).)) profileDescriptioncxx . . $ Global/profileDescription..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("\n" +cxx . . $ operator+(c75c3ae4eb9af1a8). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ProfileDescription="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 587 |
|
| 588 |
//input email stuff |
| 589 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("[email]"cxx . . $ QString#QString(85c52e162fed56f9).)) emailBodycxx . . $ Global/emailBody. =cxx . . $ QString#`operator=`(d02845eef0c33901). "";// the profile contains email info, so init this var to start appending |
| 590 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailCommand="cxx . . $ QString#QString(85c52e162fed56f9).)) emailCommandcxx . . $ Global/emailCommand. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailCommand="cxx . . $ QString#QString(85c52e162fed56f9).); |
| 591 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailArguments="cxx . . $ QString#QString(85c52e162fed56f9).)) emailArgumentscxx . . $ Global/emailArguments. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailArguments="cxx . . $ QString#QString(85c52e162fed56f9).); |
| 592 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailSubject="cxx . . $ QString#QString(85c52e162fed56f9).)) emailSubjectcxx . . $ Global/emailSubject. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailSubject="cxx . . $ QString#QString(85c52e162fed56f9).); |
| 593 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailNever="cxx . . $ QString#QString(85c52e162fed56f9).)) emailNevercxx . . $ Global/emailNever. = (ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailNever="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10); |
| 594 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailError="cxx . . $ QString#QString(85c52e162fed56f9).)) emailErrorcxx . . $ Global/emailError. = (ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailError="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10); |
| 595 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailSchedule="cxx . . $ QString#QString(85c52e162fed56f9).)) emailSchedulecxx . . $ Global/emailSchedule. = (ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailSchedule="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10); |
| 596 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailTLS="cxx . . $ QString#QString(85c52e162fed56f9).)) emailTLScxx . . $ Global/emailTLS. = (ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailTLS="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10); |
| 597 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailFrom="cxx . . $ QString#QString(85c52e162fed56f9).)) emailFromcxx . . $ Global/emailFrom. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailFrom="cxx . . $ QString#QString(85c52e162fed56f9).); |
| 598 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailTo="cxx . . $ QString#QString(85c52e162fed56f9).)) emailTocxx . . $ Global/emailTo. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailTo="cxx . . $ QString#QString(85c52e162fed56f9).); |
| 599 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailSMTP="cxx . . $ QString#QString(85c52e162fed56f9).)) emailSMTPcxx . . $ Global/emailSMTP. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailSMTP="cxx . . $ QString#QString(85c52e162fed56f9).); |
| 600 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("emailBody="cxx . . $ QString#QString(85c52e162fed56f9).)) emailBodycxx . . $ Global/emailBody..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("\n" +cxx . . $ operator+(c75c3ae4eb9af1a8). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("emailBody="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 601 |
|
| 602 |
} |
| 603 |
profileDescriptioncxx . . $ Global/profileDescription..removecxx . . $ QString#remove(6483560ce2afa901).(0,1); //remove the first "\n" from the profileDescription as well as the email body |
| 604 |
if (emailBodycxx . . $ Global/emailBody..startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("\n"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 605 |
emailBodycxx . . $ Global/emailBody..removecxx . . $ QString#remove(6483560ce2afa901).(0,1); |
| 606 |
|
| 607 |
if ( (tempAppName !=cxx . . $ `operator!=`(5bc2975d2d751687). appNamecxx . . $ Global/appName.) || (tempAppVersion < validProfileVersioncxx . . $ Global/validProfileVersion.) )//check if the file is a valid luckybackup profile |
| 608 |
{ |
| 609 |
profilecxx . . $ Global/profile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 610 |
return 2; //profile is not valid |
| 611 |
} |
| 612 |
|
| 613 |
// import task details one bye one |
| 614 |
currentOperationcxx . . $ Global/currentOperation. = 0; |
| 615 |
while (currentOperationcxx . . $ Global/currentOperation. < TotalOperationscxx . . $ Global/TotalOperations.) |
| 616 |
{ |
| 617 |
operationcxx . . $ operation# *tempOp = new operationcxx . . $ operation#operation(49f6e7a06ebc5aa8).; |
| 618 |
bool doNotReadNextLine = false; |
| 619 |
|
| 620 |
ProfileLine =cxx . . $ QString#`operator=`(4f35bf974e7f8568). in.readLinecxx . . $ QTextStream#readLine(20e0a2766677f583).(); // inport the next line |
| 621 |
while ( (!ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("[Task_end]"cxx . . $ QString#QString(85c52e162fed56f9).)) && (!in.atEndcxx . . $ QTextStream#atEnd(50ce9a9e25b4a850).()) ) |
| 622 |
{ |
| 623 |
doNotReadNextLine = false; |
| 624 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("Name="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetNamecxx . . $ operation#SetName(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("Name="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 625 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("TaskDescription="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetDescriptioncxx . . $ operation#SetDescription(7df51288a9ebd664).(tempOp->GetDescriptioncxx . . $ operation#GetDescription(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "\n" +cxx . . $ operator+(fab9b4f80031f353). ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("TaskDescription="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 626 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("Args="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> AppendArgcxx . . $ operation#AppendArg(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("Args="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 627 |
|
| 628 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ConnectRestore="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetConnectRestorecxx . . $ operation#SetConnectRestore(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ConnectRestore="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 629 |
|
| 630 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("LastExecutionTime="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetLastExecutionTimecxx . . $ operation#SetLastExecutionTime(738e092a5192a79).(QDateTimecxx . . $ QDateTime#::fromStringcxx . . $ QDateTime#fromString(231687af0a676ea1).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("LastExecutionTime="cxx . . $ QString#QString(85c52e162fed56f9).), |
| 631 |
"yyyyMMddhhmmss"cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 632 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("LastExecutionErrors="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetLastExecutionErrorscxx . . $ operation#SetLastExecutionErrors(d4f767463ce0a6b3).((ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("LastExecutionErrors="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 633 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("KeepSnapshots="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetKeepSnapshotscxx . . $ operation#SetKeepSnapshots(d4f767463ce0a6b3).((ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("KeepSnapshots="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); //see also "update the max.." few lines below |
| 634 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("SnapshotsListItem="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> AddSnapshotsListItemcxx . . $ operation#AddSnapshotsListItem(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("SnapshotsListItem="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 635 |
|
| 636 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("TypeDirContents="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetTypeDirContentscxx . . $ operation#SetTypeDirContents(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("TypeDirContents="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 637 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("TypeDirName="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetTypeDirNamecxx . . $ operation#SetTypeDirName(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("TypeDirName="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 638 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("TypeSync="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetTypeSynccxx . . $ operation#SetTypeSync(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("TypeSync="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 639 |
|
| 640 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("Source="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetSourcecxx . . $ operation#SetSource(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("Source="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 641 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("Destination="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetDestinationcxx . . $ operation#SetDestination(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("Destination="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 642 |
|
| 643 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeTemp="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeTempcxx . . $ operation#SetExcludeTemp(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeTemp="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 644 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeFromFile="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeFromFilecxx . . $ operation#SetExcludeFromFile(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeFromFile="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 645 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeFile="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeFilecxx . . $ operation#SetExcludeFile(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeFile="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 646 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeCache="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeCachecxx . . $ operation#SetExcludeCache(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeCache="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 647 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeBackup="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeBackupcxx . . $ operation#SetExcludeBackup(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeBackup="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 648 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeMount="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeMountcxx . . $ operation#SetExcludeMount(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeMount="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 649 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeLostFound="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeLostFoundcxx . . $ operation#SetExcludeLostFound(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeLostFound="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 650 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeSystem="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeSystemcxx . . $ operation#SetExcludeSystem(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeSystem="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 651 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeTrash="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeTrashcxx . . $ operation#SetExcludeTrash(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeTrash="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 652 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeGVFS="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetExcludeGVFScxx . . $ operation#SetExcludeGVFS(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeGVFS="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 653 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExcludeListItem="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> AddExcludeListItemcxx . . $ operation#AddExcludeListItem(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExcludeListItem="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 654 |
tempOp -> SetExcludecxx . . $ operation#SetExclude(49f6e7a06ebc5aa8).(); |
| 655 |
|
| 656 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("IncludeListItem="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> AddIncludeListItemcxx . . $ operation#AddIncludeListItem(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("IncludeListItem="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 657 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("IncludeModeNormal="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetIncludeModeNormalcxx . . $ operation#SetIncludeModeNormal(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("IncludeModeNormal="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 658 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("IncludeFromFile="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetIncludeFromFilecxx . . $ operation#SetIncludeFromFile(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("IncludeFromFile="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 659 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("IncludeFile="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetIncludeFilecxx . . $ operation#SetIncludeFile(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("IncludeFile="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 660 |
tempOp -> SetIncludecxx . . $ operation#SetInclude(49f6e7a06ebc5aa8).(); |
| 661 |
|
| 662 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("Remote="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemotecxx . . $ operation#SetRemote(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("Remote="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 663 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteModule="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteModulecxx . . $ operation#SetRemoteModule(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteModule="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 664 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteDestination="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteDestinationcxx . . $ operation#SetRemoteDestination(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteDestination="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 665 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteSource="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteSourcecxx . . $ operation#SetRemoteSource(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteSource="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 666 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteSSH="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteSSHcxx . . $ operation#SetRemoteSSH(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteSSH="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 667 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteHost="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteHostcxx . . $ operation#SetRemoteHost(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteHost="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 668 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteUser="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteUsercxx . . $ operation#SetRemoteUser(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteUser="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 669 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemotePassword="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemotePasswordcxx . . $ operation#SetRemotePassword(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemotePassword="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 670 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteSSHPassword="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteSSHPasswordcxx . . $ operation#SetRemoteSSHPassword(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteSSHPassword="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 671 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteSSHPasswordStr="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteSSHPasswordStrcxx . . $ operation#SetRemoteSSHPasswordStr(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteSSHPasswordStr="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 672 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteSSHOptions="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteSSHOptionscxx . . $ operation#SetRemoteSSHOptions(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteSSHOptions="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 673 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RemoteSSHPort="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRemoteSSHPortcxx . . $ operation#SetRemoteSSHPort(d4f767463ce0a6b3).((ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RemoteSSHPort="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 674 |
|
| 675 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsUpdate="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsUpdatecxx . . $ operation#SetOptionsUpdate(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsUpdate="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 676 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsDelete="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsDeletecxx . . $ operation#SetOptionsDelete(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsDelete="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 677 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsRecurse="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsRecursecxx . . $ operation#SetOptionsRecurse(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsRecurse="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 678 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsOwnership="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsOwnershipcxx . . $ operation#SetOptionsOwnership(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsOwnership="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 679 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsSymlinks="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsSymlinkscxx . . $ operation#SetOptionsSymlinks(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsSymlinks="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 680 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsPermissions="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsPermissionscxx . . $ operation#SetOptionsPermissions(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsPermissions="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 681 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsDevices="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsDevicescxx . . $ operation#SetOptionsDevices(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsDevices="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 682 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsCVS="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsCVScxx . . $ operation#SetOptionsCVS(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsCVS="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 683 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsHardLinks="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsHardLinkscxx . . $ operation#SetOptionsHardLinks(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsHardLinks="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 684 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsFATntfs="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsFATntfscxx . . $ operation#SetOptionsFATntfs(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsFATntfs="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 685 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsSuper="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsSupercxx . . $ operation#SetOptionsSuper(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsSuper="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 686 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsNumericIDs="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsNumericIDscxx . . $ operation#SetOptionsNumericIDs(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsNumericIDs="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 687 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsListItem="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> AddOptionsListItemcxx . . $ operation#AddOptionsListItem(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsListItem="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 688 |
|
| 689 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsRestorent="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsRestorentcxx . . $ operation#SetOptionsRestorent(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsRestorent="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 690 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("OptionsVss="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetOptionsVsscxx . . $ operation#SetOptionsVss(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("OptionsVss="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 691 |
|
| 692 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("TempPath="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetTempPathcxx . . $ operation#SetTempPath(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("TempPath="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 693 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("LuckyBackupDir="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetLuckyBackupDircxx . . $ operation#SetLuckyBackupDir(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("LuckyBackupDir="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 694 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("VshadowDir="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetVshadowDircxx . . $ operation#SetVshadowDir(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("VshadowDir="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 695 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RsyncCommand="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRsyncCommandcxx . . $ operation#SetRsyncCommand(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RsyncCommand="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 696 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("SshCommand="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetSshCommandcxx . . $ operation#SetSshCommand(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("SshCommand="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 697 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("DosdevCommand="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetDosdevCommandcxx . . $ operation#SetDosdevCommand(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("DosdevCommand="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 698 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("CygpathCommand="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetCygpathCommandcxx . . $ operation#SetCygpathCommand(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("CygpathCommand="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 699 |
|
| 700 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExecuteBeforeListItem="cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 701 |
{ |
| 702 |
tempOp -> AddExecuteBeforeListItemcxx . . $ operation#AddExecuteBeforeListItem(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExecuteBeforeListItem="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 703 |
ProfileLine =cxx . . $ QString#`operator=`(4f35bf974e7f8568). in.readLinecxx . . $ QTextStream#readLine(20e0a2766677f583).(); // inport the next line to check if it states the checked state !! |
| 704 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExecuteBeforeListItemState="cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 705 |
tempOp -> AddExecuteBeforeListItemStatecxx . . $ operation#AddExecuteBeforeListItemState(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExecuteBeforeListItemState="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 706 |
else // if there wasn't such a line -> older version of profile |
| 707 |
{ |
| 708 |
tempOp -> AddExecuteBeforeListItemStatecxx . . $ operation#AddExecuteBeforeListItemState(b45ddcbc8423892c).(true); |
| 709 |
doNotReadNextLine = true; |
| 710 |
} |
| 711 |
} |
| 712 |
|
| 713 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExecuteAfterListItem="cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 714 |
{ |
| 715 |
tempOp -> AddExecuteAfterListItemcxx . . $ operation#AddExecuteAfterListItem(7df51288a9ebd664).(ProfileLinecxx . . $ QString#QString(132dd6869045752b)..removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExecuteAfterListItem="cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 716 |
ProfileLine =cxx . . $ QString#`operator=`(4f35bf974e7f8568). in.readLinecxx . . $ QTextStream#readLine(20e0a2766677f583).(); // inport the next line to check if it states the checked state !! |
| 717 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ExecuteAfterListItemState="cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 718 |
tempOp -> AddExecuteAfterListItemStatecxx . . $ operation#AddExecuteAfterListItemState(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ExecuteAfterListItemState="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 719 |
else // if there wasn't such a line -> older version of profile |
| 720 |
{ |
| 721 |
tempOp -> AddExecuteAfterListItemStatecxx . . $ operation#AddExecuteAfterListItemState(b45ddcbc8423892c).(true); |
| 722 |
doNotReadNextLine = true; |
| 723 |
} |
| 724 |
} |
| 725 |
|
| 726 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("ByPassWarning="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetByPassWARNINGcxx . . $ operation#SetByPassWARNING(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("ByPassWarning="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 727 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("CloneWarning="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetCloneWARNINGcxx . . $ operation#SetCloneWARNING(b45ddcbc8423892c).(ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("CloneWarning="cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 728 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("RepeatOnFail="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetRepeatOnFailcxx . . $ operation#SetRepeatOnFail(d4f767463ce0a6b3).((ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("RepeatOnFail="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 729 |
//import include checkbox state |
| 730 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("IncludeState="cxx . . $ QString#QString(85c52e162fed56f9).)) tempOp -> SetIncludedcxx . . $ operation#SetIncluded(b45ddcbc8423892c).((ProfileLine.removecxx . . $ QString#remove(d7c3fdecc68f03c6).("IncludeState="cxx . . $ QString#QString(85c52e162fed56f9).)).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(&IntOk,10)); |
| 731 |
|
| 732 |
if (!doNotReadNextLine) |
| 733 |
ProfileLine =cxx . . $ QString#`operator=`(4f35bf974e7f8568). in.readLinecxx . . $ QTextStream#readLine(20e0a2766677f583).(); // import the next line if it's not already imported |
| 734 |
if (ProfileLine.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("[Task_end]"cxx . . $ QString#QString(85c52e162fed56f9).)) // all properties have been loaded |
| 735 |
{ |
| 736 |
// first fix some icompatibilities with older versions that did not save the following properties: |
| 737 |
// 1. update the max "keep snapshots" number if it is < 1 (or not defined !!) or if the task is a sync task |
| 738 |
if ((tempOp -> GetTypeSynccxx . . $ operation#GetTypeSync(50ce9a9e25b4a850).()) || (tempOp -> GetKeepSnapshotscxx . . $ operation#GetKeepSnapshots(455f465bc33b4cdf).() < 1) ) |
| 739 |
tempOp -> SetKeepSnapshotscxx . . $ operation#SetKeepSnapshots(d4f767463ce0a6b3).(1); |
| 740 |
// 2. Add a snapshot if last executiontime exists but snapshot list is empty |
| 741 |
QStringcxx . . $ QString# LastTime = ( tempOp -> GetLastExecutionTimecxx . . $ operation#GetLastExecutionTime(4e062b5c490497ac).() ).toStringcxx . . $ QDateTime#toString(5555d9024dcf93fb).("yyyyMMddhhmmss"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 742 |
if ( !(LastTime ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") && (tempOp -> SnapshotsListIsEmptycxx . . $ operation#SnapshotsListIsEmpty(c9857a73d68e59ba).()) ) |
| 743 |
tempOp -> AddSnapshotsListItemcxx . . $ operation#AddSnapshotsListItem(7df51288a9ebd664). (LastTimecxx . . $ QString#QString(132dd6869045752b).); |
| 744 |
//3. Remove the first "\n" from the task description |
| 745 |
tempOp -> SetDescriptioncxx . . $ operation#SetDescription(7df51288a9ebd664).(tempOpcxx . . $ QString#QString(132dd6869045752b).->GetDescriptioncxx . . $ operation#GetDescription(6ef7b6c27b00b43d).().removecxx . . $ QString#remove(6483560ce2afa901).(0,1)); |
| 746 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] = tempOp; // update the currentOperation |
| 747 |
} |
| 748 |
} |
| 749 |
currentOperationcxx . . $ Global/currentOperation.++; |
| 750 |
} |
| 751 |
|
| 752 |
profilecxx . . $ Global/profile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 753 |
|
| 754 |
// If the email fields are set from a version < 0.48 |
| 755 |
if (tempAppVersion < 0.48) |
| 756 |
{ |
| 757 |
emailArgumentscxx . . $ Global/emailArguments. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). emailCommandcxx . . $ Global/emailCommand.; |
| 758 |
emailCommandcxx . . $ Global/emailCommand. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). emailCommandcxx . . $ Global/emailCommand..leftcxx . . $ QString#left(3f3c3d0e9c0eb37f).(emailCommandcxx . . $ Global/emailCommand..indexOfcxx . . $ QString#indexOf(a1e52806cd31c200).(" "cxx . . $ QString#QString(85c52e162fed56f9).)); |
| 759 |
emailArgumentscxx . . $ Global/emailArguments..removecxx . . $ QString#remove(d7c3fdecc68f03c6).(emailCommandcxx . . $ Global/emailCommand. +cxx . . $ operator+(3d22f08efddf8107). " "); |
| 760 |
|
| 761 |
saveProfilecxx . . $ Global/saveProfile(7dc6c9a0b6a7270f).(profileToLoadcxx . . $ QString#QString(132dd6869045752b).); //save the profile with all new info |
| 762 |
} |
| 763 |
|
| 764 |
return 0; |
| 765 |
} |
| 766 |
|
| 767 |
|
| 768 |
// loadProfileQV - qvariant ============================================================================================================================= |
| 769 |
// loads an existing profile using qvariant then saves this profile as simple text |
| 770 |
// This is kept for compatibility purposes for older versions that use the qvariant and not simple text |
| 771 |
int loadProfileQVcxx . . $ Global/loadProfileQV(87a9b7c6fe1ccdba).(QStringcxx . . $ QString# profileToLoad) |
| 772 |
{ |
| 773 |
int count; |
| 774 |
profilecxx . . $ Global/profile..setFileNamecxx . . $ QFile#setFileName(3520e46b33348bf6).(profileToLoad); |
| 775 |
|
| 776 |
if (!profilecxx . . $ Global/profile..opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QFlags#QFlags(93d577a3e9528307).::ReadOnlycxx . . $ QIODevice#ReadOnly.)) //if the profile cannot be opened |
| 777 |
{ |
| 778 |
profilecxx . . $ Global/profile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 779 |
return 1; |
| 780 |
} |
| 781 |
|
| 782 |
QDataStreamcxx . . $ QDataStream# incxx . . $ QDataStream#QDataStream(bebe8f2dee7f9e86).(&profilecxx . . $ Global/profile.); |
| 783 |
in.setVersioncxx . . $ QDataStream#setVersion(d4f767463ce0a6b3).(QDataStreamcxx . . $ QDataStream#::Qt_4_3cxx . . $ QDataStream#Qt_4_3.); |
| 784 |
|
| 785 |
QVariantcxx . . $ QVariant# vcxx . . $ QVariant#QVariant(ced63f7c635d850d).; //we will import everything as QVariant using this temp variable |
| 786 |
QStringcxx . . $ QString# vStringcxx . . $ QString#QString(ced63f7c635d850d).; //temp variable to import "labels" of real data |
| 787 |
QStringcxx . . $ QString# tempAppName = "asxeto"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 788 |
profileDescriptioncxx . . $ Global/profileDescription. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 789 |
double tempAppVersion=0; |
| 790 |
in>>cxx . . $ `operator>>`(ff92eee7bfdd49b7).v; |
| 791 |
if (v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."appName") |
| 792 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; |
| 793 |
tempAppName =cxx . . $ QString#`operator=`(4f35bf974e7f8568). v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); //input the application name & version-------------------------- |
| 794 |
in>>cxx . . $ `operator>>`(ff92eee7bfdd49b7).v; |
| 795 |
if (v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."appVersion") |
| 796 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; |
| 797 |
tempAppVersion = v.toDoublecxx . . $ QVariant#toDouble(1bd8e57dd4a29c14).(); |
| 798 |
|
| 799 |
if ( (tempAppName !=cxx . . $ `operator!=`(5bc2975d2d751687). appNamecxx . . $ Global/appName.) || (tempAppVersion < validProfileVersioncxx . . $ Global/validProfileVersion.) )//check if the file is a valid luckybackup profile |
| 800 |
{ |
| 801 |
profilecxx . . $ Global/profile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 802 |
return 2; //profile is not valid |
| 803 |
} |
| 804 |
|
| 805 |
in>>cxx . . $ `operator>>`(ff92eee7bfdd49b7).v; |
| 806 |
if (v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."TotalOperations") |
| 807 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; |
| 808 |
TotalOperationscxx . . $ Global/TotalOperations. = v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); //input the size of the operations list |
| 809 |
|
| 810 |
currentOperationcxx . . $ Global/currentOperation. = 0; vString=cxx . . $ QString#`operator=`(d02845eef0c33901).""; |
| 811 |
while (currentOperationcxx . . $ Global/currentOperation. < TotalOperationscxx . . $ Global/TotalOperations.) |
| 812 |
{ |
| 813 |
operationcxx . . $ operation# *tempOp = new operationcxx . . $ operation#operation(49f6e7a06ebc5aa8).; |
| 814 |
|
| 815 |
in>>cxx . . $ `operator>>`(ff92eee7bfdd49b7).v; vString =cxx . . $ QString#`operator=`(4f35bf974e7f8568). v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; //input a label in vString and real data in v |
| 816 |
while (vString !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "operation end") |
| 817 |
{ |
| 818 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ProfileDescription") profileDescriptioncxx . . $ Global/profileDescription. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).();//input the profile description |
| 819 |
|
| 820 |
//cout << "\ntask: " <<currentOperation << "\nvString: " << vString.toStdString() << "\n"; |
| 821 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "Name") tempOp -> SetNamecxx . . $ operation#SetName(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 822 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "TaskDescription") tempOp -> SetDescriptioncxx . . $ operation#SetDescription(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 823 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "Args") tempOp -> SetArgscxx . . $ operation#SetArgs(fc47db3ea09604d9).(v.toStringListcxx . . $ QVariant#toStringList(e1dbd5c4feadc8f5).()); |
| 824 |
|
| 825 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ConnectRestore") tempOp -> SetConnectRestorecxx . . $ operation#SetConnectRestore(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 826 |
|
| 827 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "LastExecutionTime") tempOp -> SetLastExecutionTimecxx . . $ operation#SetLastExecutionTime(738e092a5192a79).(v.toDateTimecxx . . $ QVariant#toDateTime(4e062b5c490497ac).()); |
| 828 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "LastExecutionErrors") tempOp -> SetLastExecutionErrorscxx . . $ operation#SetLastExecutionErrors(d4f767463ce0a6b3).(v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).()); |
| 829 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "KeepSnapshots") tempOp -> SetKeepSnapshotscxx . . $ operation#SetKeepSnapshots(d4f767463ce0a6b3).(v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).()); //see also "update the max.." few lines below |
| 830 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "SnapshotsListSize") |
| 831 |
{ |
| 832 |
int snapshotsListSize = v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 833 |
count = 0; |
| 834 |
while ( count < snapshotsListSize) |
| 835 |
{ |
| 836 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; // load the string SnapshotsListItem1,2....XX |
| 837 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; tempOp -> AddSnapshotsListItemcxx . . $ operation#AddSnapshotsListItem(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 838 |
count++; |
| 839 |
} |
| 840 |
} |
| 841 |
|
| 842 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "TypeDirContents") tempOp -> SetTypeDirContentscxx . . $ operation#SetTypeDirContents(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 843 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "TypeDirName") tempOp -> SetTypeDirNamecxx . . $ operation#SetTypeDirName(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 844 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "TypeSync") tempOp -> SetTypeSynccxx . . $ operation#SetTypeSync(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 845 |
|
| 846 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "Source") tempOp -> SetSourcecxx . . $ operation#SetSource(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 847 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "Destination") tempOp -> SetDestinationcxx . . $ operation#SetDestination(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 848 |
|
| 849 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeTemp") tempOp -> SetExcludeTempcxx . . $ operation#SetExcludeTemp(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 850 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeFromFile") tempOp -> SetExcludeFromFilecxx . . $ operation#SetExcludeFromFile(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 851 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeFile") tempOp -> SetExcludeFilecxx . . $ operation#SetExcludeFile(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 852 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeCache") tempOp -> SetExcludeCachecxx . . $ operation#SetExcludeCache(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 853 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeBackup") tempOp -> SetExcludeBackupcxx . . $ operation#SetExcludeBackup(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 854 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeMount") tempOp -> SetExcludeMountcxx . . $ operation#SetExcludeMount(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 855 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeLostFound") tempOp -> SetExcludeLostFoundcxx . . $ operation#SetExcludeLostFound(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 856 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeSystem") tempOp -> SetExcludeSystemcxx . . $ operation#SetExcludeSystem(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 857 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeTrash") tempOp -> SetExcludeTrashcxx . . $ operation#SetExcludeTrash(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 858 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExcludeListSize") |
| 859 |
{ |
| 860 |
int excludeListSize = v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 861 |
count = 0; |
| 862 |
while ( count < excludeListSize) |
| 863 |
{ |
| 864 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; tempOp -> AddExcludeListItemcxx . . $ operation#AddExcludeListItem(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 865 |
count++; |
| 866 |
} |
| 867 |
} |
| 868 |
tempOp -> SetExcludecxx . . $ operation#SetExclude(49f6e7a06ebc5aa8).(); |
| 869 |
|
| 870 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "IncludeListSize") |
| 871 |
{ |
| 872 |
int IncludeListSize = v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 873 |
count = 0; |
| 874 |
while ( count < IncludeListSize) |
| 875 |
{ |
| 876 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; tempOp -> AddIncludeListItemcxx . . $ operation#AddIncludeListItem(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 877 |
count++; |
| 878 |
} |
| 879 |
} |
| 880 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "IncludeModeNormal") tempOp -> SetIncludeModeNormalcxx . . $ operation#SetIncludeModeNormal(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 881 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "IncludeFromFile") tempOp -> SetIncludeFromFilecxx . . $ operation#SetIncludeFromFile(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 882 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "IncludeFile") tempOp -> SetIncludeFilecxx . . $ operation#SetIncludeFile(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 883 |
tempOp -> SetIncludecxx . . $ operation#SetInclude(49f6e7a06ebc5aa8).(); |
| 884 |
|
| 885 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "Remote") tempOp -> SetRemotecxx . . $ operation#SetRemote(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 886 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteModule") tempOp -> SetRemoteModulecxx . . $ operation#SetRemoteModule(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 887 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteDestination") tempOp -> SetRemoteDestinationcxx . . $ operation#SetRemoteDestination(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 888 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteSource") tempOp -> SetRemoteSourcecxx . . $ operation#SetRemoteSource(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 889 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteSSH") tempOp -> SetRemoteSSHcxx . . $ operation#SetRemoteSSH(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 890 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteHost") tempOp -> SetRemoteHostcxx . . $ operation#SetRemoteHost(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 891 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteUser") tempOp -> SetRemoteUsercxx . . $ operation#SetRemoteUser(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 892 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemotePassword") tempOp -> SetRemotePasswordcxx . . $ operation#SetRemotePassword(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 893 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteSSHPassword") tempOp -> SetRemoteSSHPasswordcxx . . $ operation#SetRemoteSSHPassword(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 894 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteSSHPasswordStr") tempOp -> SetRemoteSSHPasswordStrcxx . . $ operation#SetRemoteSSHPasswordStr(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 895 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteSSHOptions") tempOp -> SetRemoteSSHOptionscxx . . $ operation#SetRemoteSSHOptions(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 896 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "RemoteSSHPort") tempOp -> SetRemoteSSHPortcxx . . $ operation#SetRemoteSSHPort(d4f767463ce0a6b3).(v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).()); |
| 897 |
|
| 898 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsUpdate") tempOp -> SetOptionsUpdatecxx . . $ operation#SetOptionsUpdate(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 899 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsDelete") tempOp -> SetOptionsDeletecxx . . $ operation#SetOptionsDelete(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 900 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsRecurse") tempOp -> SetOptionsRecursecxx . . $ operation#SetOptionsRecurse(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 901 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsOwnership") tempOp -> SetOptionsOwnershipcxx . . $ operation#SetOptionsOwnership(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 902 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsSymlinks") tempOp -> SetOptionsSymlinkscxx . . $ operation#SetOptionsSymlinks(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 903 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsPermissions") tempOp -> SetOptionsPermissionscxx . . $ operation#SetOptionsPermissions(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 904 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsDevices") tempOp -> SetOptionsDevicescxx . . $ operation#SetOptionsDevices(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 905 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsCVS") tempOp -> SetOptionsCVScxx . . $ operation#SetOptionsCVS(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 906 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsHardLinks") tempOp -> SetOptionsHardLinkscxx . . $ operation#SetOptionsHardLinks(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 907 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsFATntfs") tempOp -> SetOptionsFATntfscxx . . $ operation#SetOptionsFATntfs(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 908 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsRestorent") tempOp -> SetOptionsRestorentcxx . . $ operation#SetOptionsRestorent(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 909 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsVss") tempOp -> SetOptionsVsscxx . . $ operation#SetOptionsVss(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 910 |
|
| 911 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "OptionsListSize") |
| 912 |
{ |
| 913 |
int OptionsListSize = v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 914 |
count = 0; |
| 915 |
while ( count < OptionsListSize) |
| 916 |
{ |
| 917 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; tempOp -> AddOptionsListItemcxx . . $ operation#AddOptionsListItem(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 918 |
count++; |
| 919 |
} |
| 920 |
} |
| 921 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExecuteBeforeListSize") |
| 922 |
{ |
| 923 |
int ExecuteBeforeListSize = v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 924 |
count = 0; |
| 925 |
while ( count < ExecuteBeforeListSize) |
| 926 |
{ |
| 927 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; tempOp -> AddExecuteBeforeListItemcxx . . $ operation#AddExecuteBeforeListItem(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 928 |
count++; |
| 929 |
} |
| 930 |
} |
| 931 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExecuteAfterListSize") |
| 932 |
{ |
| 933 |
int ExecuteAfterListSize = v.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(); |
| 934 |
count = 0; |
| 935 |
while ( count < ExecuteAfterListSize) |
| 936 |
{ |
| 937 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; tempOp -> AddExecuteAfterListItemcxx . . $ operation#AddExecuteAfterListItem(7df51288a9ebd664).(v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).()); |
| 938 |
count++; |
| 939 |
} |
| 940 |
} |
| 941 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ByPassWarning") tempOp -> SetByPassWARNINGcxx . . $ operation#SetByPassWARNING(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 942 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "CloneWarning") tempOp -> SetCloneWARNINGcxx . . $ operation#SetCloneWARNING(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 943 |
//import include checkbox state |
| 944 |
if (vString ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "IncludeState") tempOp -> SetIncludedcxx . . $ operation#SetIncluded(b45ddcbc8423892c).(v.toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 945 |
in>>cxx . . $ `operator>>`(ff92eee7bfdd49b7).v; vString =cxx . . $ QString#`operator=`(4f35bf974e7f8568). v.toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).(); |
| 946 |
if (vString!=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."operation end") |
| 947 |
in >>cxx . . $ `operator>>`(ff92eee7bfdd49b7). v; |
| 948 |
else // all properties have been loaded |
| 949 |
{ |
| 950 |
// first fix some icompatibilities with older versions that did not save the following properties: |
| 951 |
// 1. update the max "keep snapshots" number if it is < 1 (or not defined !!) or if the task is a sync task |
| 952 |
if ((tempOp -> GetTypeSynccxx . . $ operation#GetTypeSync(50ce9a9e25b4a850).()) || (tempOp -> GetKeepSnapshotscxx . . $ operation#GetKeepSnapshots(455f465bc33b4cdf).() < 1) ) |
| 953 |
tempOp -> SetKeepSnapshotscxx . . $ operation#SetKeepSnapshots(d4f767463ce0a6b3).(1); |
| 954 |
// 2. Add a snapshot if last executiontime exists but snapshot list is empty |
| 955 |
QStringcxx . . $ QString# LastTime = ( tempOp -> GetLastExecutionTimecxx . . $ operation#GetLastExecutionTime(4e062b5c490497ac).() ).toStringcxx . . $ QDateTime#toString(5555d9024dcf93fb).("yyyyMMddhhmmss"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 956 |
if ( !(LastTime ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") && (tempOp -> SnapshotsListIsEmptycxx . . $ operation#SnapshotsListIsEmpty(c9857a73d68e59ba).()) ) |
| 957 |
tempOp -> AddSnapshotsListItemcxx . . $ operation#AddSnapshotsListItem(7df51288a9ebd664). (LastTimecxx . . $ QString#QString(132dd6869045752b).); |
| 958 |
|
| 959 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] = tempOp; // update the currentOperation |
| 960 |
} |
| 961 |
} |
| 962 |
currentOperationcxx . . $ Global/currentOperation.++; |
| 963 |
} |
| 964 |
profilecxx . . $ Global/profile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 965 |
|
| 966 |
//backup the original qvariant profile before replacing it with a plain text one |
| 967 |
//create directory ~/.luckyBackup including folders "logs", "profiles", "schedule", snaps if they do not exist for the current user |
| 968 |
QDircxx . . $ QDir# profilebackupdircxx . . $ QDir#QDir(3520e46b33348bf6).(profileDircxx . . $ Global/profileDir. +cxx . . $ operator+(3d22f08efddf8107). "backups/"); |
| 969 |
if (!profilebackupdir.existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) |
| 970 |
profilebackupdir.mkpathcxx . . $ QDir#mkpath(f3b39adf77d9c36c).(profileDircxx . . $ Global/profileDir. +cxx . . $ operator+(3d22f08efddf8107). "backups/"); |
| 971 |
profilecxx . . $ Global/profile..copycxx . . $ QFile#copy(e1defb592416720d).(profileDircxx . . $ Global/profileDir. +cxx . . $ operator+(3d22f08efddf8107). "backups/" +cxx . . $ operator+(fab9b4f80031f353). profileNamecxx . . $ Global/profileName. +cxx . . $ operator+(3d22f08efddf8107). ".profile" ); |
| 972 |
|
| 973 |
saveProfilecxx . . $ Global/saveProfile(7dc6c9a0b6a7270f).(profileToLoadcxx . . $ QString#QString(132dd6869045752b).); //save the profile to text format |
| 974 |
return 0; |
| 975 |
} |
| 976 |
|
| 977 |
// saveProfile ===================================================================================================================================== |
| 978 |
// saves an existing profile |
| 979 |
bool saveProfilecxx . . $ Global/saveProfile(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# profileToSave) |
| 980 |
{ |
| 981 |
int count; |
| 982 |
|
| 983 |
profilecxx . . $ Global/profile..setFileNamecxx . . $ QFile#setFileName(3520e46b33348bf6).(profileToSave); |
| 984 |
|
| 985 |
if (!profilecxx . . $ Global/profile..opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QFlags#QFlags(93d577a3e9528307).::WriteOnlycxx . . $ QIODevice#WriteOnly.)) // if the profile cannot be saved (or fails to create) |
| 986 |
{ |
| 987 |
profilecxx . . $ Global/profile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 988 |
return false; |
| 989 |
} |
| 990 |
|
| 991 |
//write arrays to profile file |
| 992 |
QTextStreamcxx . . $ QTextStream# outcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&profilecxx . . $ Global/profile.); |
| 993 |
|
| 994 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "***************************** WARNING *****************************\n"; |
| 995 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "Do NOT edit this file directly, unless you REALLY know what you are doing !!\n\n\n"; |
| 996 |
|
| 997 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "[profile_global]\n"; |
| 998 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "appName=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). appNamecxx . . $ Global/appName. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the application name |
| 999 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "appVersion=" <<cxx . . $ QTextStream#`operator<<`(51d1d7ce4274ad92). appVersioncxx . . $ Global/appVersion. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the application version |
| 1000 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "TotalTasks=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). TotalOperationscxx . . $ Global/TotalOperations. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the size of the opeartions list |
| 1001 |
|
| 1002 |
if (profileDescriptioncxx . . $ Global/profileDescription.!=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."") |
| 1003 |
{ |
| 1004 |
QStringListcxx . . $ QStringList# DescriptionLines = profileDescriptioncxx . . $ Global/profileDescription..splitcxx . . $ QString#split(c8b44a97dcb6200d).("\n"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1005 |
for (count=0; count<DescriptionLines.sizecxx . . $ QList#size(ea6fe5115c70a13f).();++count) |
| 1006 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ProfileDescription=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). DescriptionLines.atcxx . . $ QList#at(e2681f9bb6b2f357).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the profile description |
| 1007 |
} |
| 1008 |
|
| 1009 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n[email]\n"; |
| 1010 |
|
| 1011 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailCommand=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). emailCommandcxx . . $ Global/emailCommand. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the full email command with arguments |
| 1012 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailArguments="<<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). emailArgumentscxx . . $ Global/emailArguments. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the full email arguments |
| 1013 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailSubject=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). emailSubjectcxx . . $ Global/emailSubject. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the email subject |
| 1014 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailNever=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). emailNevercxx . . $ Global/emailNever. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the email never condition |
| 1015 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailError=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). emailErrorcxx . . $ Global/emailError. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the email error condition |
| 1016 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailSchedule=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). emailSchedulecxx . . $ Global/emailSchedule. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the email schedule condition |
| 1017 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailTLS=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). emailTLScxx . . $ Global/emailTLS. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the TLS option condition |
| 1018 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailFrom=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). emailFromcxx . . $ Global/emailFrom. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the email from |
| 1019 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailTo=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). emailTocxx . . $ Global/emailTo. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the email To |
| 1020 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailSMTP=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). emailSMTPcxx . . $ Global/emailSMTP. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the email smtp server |
| 1021 |
if (emailBodycxx . . $ Global/emailBody.!=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."") |
| 1022 |
{ |
| 1023 |
QStringListcxx . . $ QStringList# emailBodyLines = emailBodycxx . . $ Global/emailBody..splitcxx . . $ QString#split(c8b44a97dcb6200d).("\n"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1024 |
for (count=0; count<emailBodyLines.sizecxx . . $ QList#size(ea6fe5115c70a13f).();++count) |
| 1025 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "emailBody=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). emailBodyLines.atcxx . . $ QList#at(e2681f9bb6b2f357).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the email body line by line |
| 1026 |
} |
| 1027 |
|
| 1028 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1029 |
currentOperationcxx . . $ Global/currentOperation. = 0; |
| 1030 |
|
| 1031 |
while ( currentOperationcxx . . $ Global/currentOperation. < TotalOperationscxx . . $ Global/TotalOperations. ) |
| 1032 |
{ |
| 1033 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "[Task] - " <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). currentOperationcxx . . $ Global/currentOperation. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1034 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "Name=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1035 |
|
| 1036 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "TypeDirContents=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetTypeDirContentscxx . . $ operation#GetTypeDirContents(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1037 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "TypeDirName=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetTypeDirNamecxx . . $ operation#GetTypeDirName(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1038 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "TypeSync=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetTypeSynccxx . . $ operation#GetTypeSync(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1039 |
|
| 1040 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "Source=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSourcecxx . . $ operation#GetSource(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1041 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "Destination=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1042 |
|
| 1043 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "LastExecutionTime=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetLastExecutionTimecxx . . $ operation#GetLastExecutionTime(4e062b5c490497ac).().toStringcxx . . $ QDateTime#toString(5555d9024dcf93fb).("yyyyMMddhhmmss"cxx . . $ QString#QString(85c52e162fed56f9).) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1044 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "LastExecutionErrors=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetLastExecutionErrorscxx . . $ operation#GetLastExecutionErrors(455f465bc33b4cdf).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1045 |
|
| 1046 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDescriptioncxx . . $ operation#GetDescription(6ef7b6c27b00b43d).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") |
| 1047 |
{ |
| 1048 |
QStringListcxx . . $ QStringList# DescriptionLines = Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDescriptioncxx . . $ operation#GetDescription(6ef7b6c27b00b43d).().splitcxx . . $ QString#split(c8b44a97dcb6200d).("\n"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1049 |
for (count=0; count<DescriptionLines.sizecxx . . $ QList#size(ea6fe5115c70a13f).();++count) |
| 1050 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "TaskDescription=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). DescriptionLines.atcxx . . $ QList#at(e2681f9bb6b2f357).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; //output the task description |
| 1051 |
} |
| 1052 |
|
| 1053 |
QStringListcxx . . $ QStringList# TaskArgs = Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetArgscxx . . $ operation#GetArgs(e1dbd5c4feadc8f5).(); |
| 1054 |
for (count = 0; count < TaskArgs.sizecxx . . $ QList#size(ea6fe5115c70a13f).(); ++count) |
| 1055 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "Args=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). TaskArgs.atcxx . . $ QList#at(e2681f9bb6b2f357).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1056 |
|
| 1057 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ConnectRestore=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetConnectRestorecxx . . $ operation#GetConnectRestore(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1058 |
|
| 1059 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "KeepSnapshots=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetKeepSnapshotscxx . . $ operation#GetKeepSnapshots(455f465bc33b4cdf).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1060 |
count = 0; |
| 1061 |
while ( count < (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSnapshotsListSizecxx . . $ operation#GetSnapshotsListSize(455f465bc33b4cdf).()) ) |
| 1062 |
{ |
| 1063 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "SnapshotsListItem=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSnapshotsListItemcxx . . $ operation#GetSnapshotsListItem(3f3c3d0e9c0eb37f).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1064 |
count++; |
| 1065 |
} |
| 1066 |
|
| 1067 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "Exclude=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludecxx . . $ operation#GetExclude(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1068 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeFromFile=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeFromFilecxx . . $ operation#GetExcludeFromFile(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1069 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeFile=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeFilecxx . . $ operation#GetExcludeFile(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1070 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeTemp=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeTempcxx . . $ operation#GetExcludeTemp(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1071 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeCache=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeCachecxx . . $ operation#GetExcludeCache(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1072 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeBackup=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeBackupcxx . . $ operation#GetExcludeBackup(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1073 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeMount=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeMountcxx . . $ operation#GetExcludeMount(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1074 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeLostFound=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeLostFoundcxx . . $ operation#GetExcludeLostFound(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1075 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeSystem=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeSystemcxx . . $ operation#GetExcludeSystem(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1076 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeTrash=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeTrashcxx . . $ operation#GetExcludeTrash(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1077 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeGVFS=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeGVFScxx . . $ operation#GetExcludeGVFS(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1078 |
count = 0; |
| 1079 |
while ( count < (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeListSizecxx . . $ operation#GetExcludeListSize(455f465bc33b4cdf).()) ) |
| 1080 |
{ |
| 1081 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExcludeListItem=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExcludeListItemcxx . . $ operation#GetExcludeListItem(3f3c3d0e9c0eb37f).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1082 |
count++; |
| 1083 |
} |
| 1084 |
|
| 1085 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "Include=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludecxx . . $ operation#GetInclude(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1086 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "IncludeFromFile=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludeFromFilecxx . . $ operation#GetIncludeFromFile(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1087 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "IncludeModeNormal=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludeModeNormalcxx . . $ operation#GetIncludeModeNormal(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1088 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "IncludeFile=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludeFilecxx . . $ operation#GetIncludeFile(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1089 |
count = 0; |
| 1090 |
while ( count < (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludeListSizecxx . . $ operation#GetIncludeListSize(455f465bc33b4cdf).()) ) |
| 1091 |
{ |
| 1092 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "IncludeListItem=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludeListItemcxx . . $ operation#GetIncludeListItem(3f3c3d0e9c0eb37f).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1093 |
count++; |
| 1094 |
} |
| 1095 |
|
| 1096 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "Remote=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1097 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteModule=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1098 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteDestination=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteDestinationcxx . . $ operation#GetRemoteDestination(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1099 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteSource=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSourcecxx . . $ operation#GetRemoteSource(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1100 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteSSH=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHcxx . . $ operation#GetRemoteSSH(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1101 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteHost=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1102 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteUser=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1103 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemotePassword=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotePasswordcxx . . $ operation#GetRemotePassword(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1104 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteSSHPassword=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1105 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteSSHPasswordStr=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPasswordStrcxx . . $ operation#GetRemoteSSHPasswordStr(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1106 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteSSHOptions=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHOptionscxx . . $ operation#GetRemoteSSHOptions(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1107 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RemoteSSHPort=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1108 |
|
| 1109 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsUpdate=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsUpdatecxx . . $ operation#GetOptionsUpdate(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1110 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsDelete=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsDeletecxx . . $ operation#GetOptionsDelete(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1111 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsRecurse=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsRecursecxx . . $ operation#GetOptionsRecurse(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1112 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsOwnership=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsOwnershipcxx . . $ operation#GetOptionsOwnership(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1113 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsSymlinks=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsSymlinkscxx . . $ operation#GetOptionsSymlinks(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1114 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsPermissions=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsPermissionscxx . . $ operation#GetOptionsPermissions(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1115 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsDevices=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsDevicescxx . . $ operation#GetOptionsDevices(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1116 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsCVS=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsCVScxx . . $ operation#GetOptionsCVS(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1117 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsHardLinks=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsHardLinkscxx . . $ operation#GetOptionsHardLinks(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1118 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsFATntfs=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsFATntfscxx . . $ operation#GetOptionsFATntfs(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1119 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsSuper=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsSupercxx . . $ operation#GetOptionsSuper(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1120 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsNumericIDs=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsNumericIDscxx . . $ operation#GetOptionsNumericIDs(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1121 |
|
| 1122 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsRestorent=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsRestorentcxx . . $ operation#GetOptionsRestorent(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1123 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsVss=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsVsscxx . . $ operation#GetOptionsVss(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1124 |
|
| 1125 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "LuckyBackupDir=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetLuckyBackupDircxx . . $ operation#GetLuckyBackupDir(4365c3963150523e).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1126 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "VshadowDir=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetVshadowDircxx . . $ operation#GetVshadowDir(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1127 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RsyncCommand=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRsyncCommandcxx . . $ operation#GetRsyncCommand(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1128 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "SshCommand=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSshCommandcxx . . $ operation#GetSshCommand(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1129 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "DosdevCommand=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDosdevCommandcxx . . $ operation#GetDosdevCommand(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1130 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "CygpathCommand=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetCygpathCommandcxx . . $ operation#GetCygpathCommand(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1131 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "TempPath=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetTempPathcxx . . $ operation#GetTempPath(6ef7b6c27b00b43d).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1132 |
|
| 1133 |
count = 0; |
| 1134 |
while ( count < (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsListSizecxx . . $ operation#GetOptionsListSize(455f465bc33b4cdf).()) ) |
| 1135 |
{ |
| 1136 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "OptionsListItem=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetOptionsListItemcxx . . $ operation#GetOptionsListItem(3f3c3d0e9c0eb37f).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1137 |
count++; |
| 1138 |
} |
| 1139 |
count = 0; |
| 1140 |
while ( count < (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteBeforeListSizecxx . . $ operation#GetExecuteBeforeListSize(455f465bc33b4cdf).()) ) |
| 1141 |
{ |
| 1142 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExecuteBeforeListItem=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteBeforeListItemcxx . . $ operation#GetExecuteBeforeListItem(3f3c3d0e9c0eb37f).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1143 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExecuteBeforeListItemState=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteBeforeListItemStatecxx . . $ operation#GetExecuteBeforeListItemState(4a668f6de69bf818).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1144 |
count++; |
| 1145 |
} |
| 1146 |
count = 0; |
| 1147 |
while ( count < (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteAfterListSizecxx . . $ operation#GetExecuteAfterListSize(455f465bc33b4cdf).()) ) |
| 1148 |
{ |
| 1149 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExecuteAfterListItem=" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteAfterListItemcxx . . $ operation#GetExecuteAfterListItem(3f3c3d0e9c0eb37f).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1150 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ExecuteAfterListItemState=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteAfterListItemStatecxx . . $ operation#GetExecuteAfterListItemState(4a668f6de69bf818).(count) <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1151 |
count++; |
| 1152 |
} |
| 1153 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "ByPassWarning=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1154 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "CloneWarning=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetCloneWARNINGcxx . . $ operation#GetCloneWARNING(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1155 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "RepeatOnFail=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRepeatOnFailcxx . . $ operation#GetRepeatOnFail(455f465bc33b4cdf).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1156 |
//export include state |
| 1157 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "IncludeState=" <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludedcxx . . $ operation#GetIncluded(50ce9a9e25b4a850).() <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1158 |
|
| 1159 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "[Task_end] - " <<cxx . . $ QTextStream#`operator<<`(b419665206d30821). currentOperationcxx . . $ Global/currentOperation. <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n\n"; |
| 1160 |
currentOperationcxx . . $ Global/currentOperation.++; |
| 1161 |
} |
| 1162 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n[profile end]" <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 1163 |
|
| 1164 |
profilecxx . . $ Global/profile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 1165 |
return true; |
| 1166 |
} |
| 1167 |
|
| 1168 |
|
| 1169 |
// exportFullProfile ==================================================================================================================================== |
| 1170 |
//function to export the .profile file + logs + snaps to a location |
| 1171 |
bool exportFullProfilecxx . . $ Global/exportFullProfile(80825a4bb658cac2).(QStringcxx . . $ QString# ExportPath, QStringcxx . . $ QString# exportType) |
| 1172 |
{ |
| 1173 |
//we will export everything by using an rsync command |
| 1174 |
QProcesscxx . . $ QProcess# *exportProcess; exportProcess = new QProcesscxx . . $ QProcess#; QStringListcxx . . $ QStringList# exportArgscxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 1175 |
exportArgs <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "-t"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "-r"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--delete-after"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--delete-excluded"cxx . . $ QString#QString(85c52e162fed56f9).; // standard rsync args |
| 1176 |
|
| 1177 |
if (exportType ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExportOnlyTask") // Only include the .profile file and logs and snaps for a specific task |
| 1178 |
exportArgs <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--include=" +cxx . . $ operator+(c75c3ae4eb9af1a8). profileNamecxx . . $ Global/profileName. +cxx . . $ operator+(3d22f08efddf8107). ".profile" <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--include=/*/" +cxx . . $ operator+(c75c3ae4eb9af1a8). profileNamecxx . . $ Global/profileName. +cxx . . $ operator+(3d22f08efddf8107). "-" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107)."-*"; |
| 1179 |
else // Include the .profile file and all logs & snaps related to that |
| 1180 |
exportArgs <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--include=/*/" +cxx . . $ operator+(c75c3ae4eb9af1a8). profileNamecxx . . $ Global/profileName. +cxx . . $ operator+(3d22f08efddf8107)."*"; |
| 1181 |
|
| 1182 |
exportArgs <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--include=*/"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--exclude=*"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--prune-empty-dirs"cxx . . $ QString#QString(85c52e162fed56f9).; // "only include" rsync args |
| 1183 |
|
| 1184 |
//also add all remote arguments exactly as used at normal backup |
| 1185 |
if (exportType ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ExportOnlyTask") |
| 1186 |
{ |
| 1187 |
if ((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteDestinationcxx . . $ operation#GetRemoteDestination(50ce9a9e25b4a850).()) && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).())) |
| 1188 |
{ |
| 1189 |
exportArgs <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--protect-args"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 1190 |
//if ( Operation[currentOperation] -> GetRemotePassword() != "") |
| 1191 |
if ( (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]-> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).()) && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotePasswordcxx . . $ operation#GetRemotePassword(6ef7b6c27b00b43d).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") ) |
| 1192 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).("--password-file=" +cxx . . $ operator+(c75c3ae4eb9af1a8). ( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotePasswordcxx . . $ operation#GetRemotePassword(6ef7b6c27b00b43d).()) ); |
| 1193 |
if ( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHcxx . . $ operation#GetRemoteSSH(50ce9a9e25b4a850).()) |
| 1194 |
{ |
| 1195 |
QStringcxx . . $ QString# sshOptions=(Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHOptionscxx . . $ operation#GetRemoteSSHOptions(6ef7b6c27b00b43d).()).replacecxx . . $ QString#replace(192e628656427d1c).("\""cxx . . $ QString#QString(85c52e162fed56f9).,"\\\""cxx . . $ QString#QString(85c52e162fed56f9).)+cxx . . $ operator+(3d22f08efddf8107)." -o \"StrictHostKeyChecking no\" -o \"PasswordAuthentication no\" "; |
| 1196 |
if (WINrunningcxx . . $ Global/WINrunning.) |
| 1197 |
{ |
| 1198 |
if ( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") |
| 1199 |
if ( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() != 0) |
| 1200 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).("-e \""+cxx . . $ operator+(c75c3ae4eb9af1a8).Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSshCommandcxx . . $ operation#GetSshCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" "+cxx . . $ operator+(fab9b4f80031f353).sshOptions+cxx . . $ operator+(3d22f08efddf8107)." -i \"" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107)."\" -p " +cxx . . $ operator+(fab9b4f80031f353). |
| 1201 |
countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).()) ); |
| 1202 |
else |
| 1203 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).("-e \""+cxx . . $ operator+(c75c3ae4eb9af1a8).Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSshCommandcxx . . $ operation#GetSshCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" "+cxx . . $ operator+(fab9b4f80031f353).sshOptions+cxx . . $ operator+(3d22f08efddf8107)." -i \"" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\""); |
| 1204 |
else |
| 1205 |
if ( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() != 0) |
| 1206 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).("-e \""+cxx . . $ operator+(c75c3ae4eb9af1a8).Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSshCommandcxx . . $ operation#GetSshCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" "+cxx . . $ operator+(fab9b4f80031f353).sshOptions+cxx . . $ operator+(3d22f08efddf8107)." -p " +cxx . . $ operator+(fab9b4f80031f353). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).()) ); |
| 1207 |
else |
| 1208 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).("-e \""+cxx . . $ operator+(c75c3ae4eb9af1a8).Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSshCommandcxx . . $ operation#GetSshCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" "+cxx . . $ operator+(fab9b4f80031f353).sshOptions+cxx . . $ operator+(3d22f08efddf8107).""); |
| 1209 |
} |
| 1210 |
else |
| 1211 |
{ |
| 1212 |
if ( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") |
| 1213 |
if ( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() != 0) |
| 1214 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).("-e "+cxx . . $ operator+(c75c3ae4eb9af1a8).sshCommandPathcxx . . $ Global/sshCommandPath.+cxx . . $ operator+(3d22f08efddf8107)." -i " +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107)." -p " +cxx . . $ operator+(fab9b4f80031f353). |
| 1215 |
countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).()) ); |
| 1216 |
else |
| 1217 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).("-e "+cxx . . $ operator+(c75c3ae4eb9af1a8).sshCommandPathcxx . . $ Global/sshCommandPath.+cxx . . $ operator+(3d22f08efddf8107)." -i " +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).()); |
| 1218 |
else |
| 1219 |
if ( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() != 0) |
| 1220 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).("-e "+cxx . . $ operator+(c75c3ae4eb9af1a8).sshCommandPathcxx . . $ Global/sshCommandPath.+cxx . . $ operator+(3d22f08efddf8107)." -p " +cxx . . $ operator+(fab9b4f80031f353). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).( Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).()) ); |
| 1221 |
else |
| 1222 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).("-e "+cxx . . $ operator+(c75c3ae4eb9af1a8).sshCommandPathcxx . . $ Global/sshCommandPath.); |
| 1223 |
} |
| 1224 |
} |
| 1225 |
} |
| 1226 |
} |
| 1227 |
|
| 1228 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).(luckyBackupDircxx . . $ Global/luckyBackupDir.); // The source is ~/.luckyBackup/ |
| 1229 |
|
| 1230 |
//cycnet debemos comprobar que es windows y el destino es remoto |
| 1231 |
if (WINrunningcxx . . $ Global/WINrunning. && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteDestinationcxx . . $ operation#GetRemoteDestination(50ce9a9e25b4a850).()) && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).())) |
| 1232 |
ExportPath.replacecxx . . $ QString#replace(192e628656427d1c).(SLASHcxx . . $ Global/SLASH.,XnixSLASHcxx . . $ Global/XnixSLASH.); |
| 1233 |
|
| 1234 |
exportArgs.appendcxx . . $ QList#append(77d9f17553126ecb).(ExportPath); // The destination is given by the user |
| 1235 |
|
| 1236 |
//cycnet code. Windows use |
| 1237 |
if (WINrunningcxx . . $ Global/WINrunning.) |
| 1238 |
{ |
| 1239 |
//bool createWinRsyncCommand(tempDirPath,QFile command1,QFile command2,bool vss,QString rsyncArgs,QString source,QString dest); |
| 1240 |
QStringcxx . . $ QString# command2=createWinRsyncCommandcxx . . $ Global/createWinRsyncCommand(f72b83e3d8c9da9d).(Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetTempPathcxx . . $ operation#GetTempPath(6ef7b6c27b00b43d).(),false,exportArgs,false); |
| 1241 |
if (command2==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."") |
| 1242 |
coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\nfailed to create bat file in rmProccess"; |
| 1243 |
else |
| 1244 |
exportProcess -> startcxx . . $ QProcess#start(8f4bc4a0c00c3d3f). (command2); |
| 1245 |
} |
| 1246 |
else |
| 1247 |
exportProcess -> startcxx . . $ QProcess#start(5e315ba9c811784d). (rsyncCommandPathcxx . . $ Global/rsyncCommandPath.,exportArgs); |
| 1248 |
|
| 1249 |
exportProcess -> waitForFinishedcxx . . $ QProcess#waitForFinished(83c267b20bac841a).(); |
| 1250 |
|
| 1251 |
if (!(exportProcess -> exitCodecxx . . $ QProcess#exitCode(455f465bc33b4cdf).() == 0)) |
| 1252 |
return false; |
| 1253 |
|
| 1254 |
return true; |
| 1255 |
} |
| 1256 |
|
| 1257 |
// importFullProfile ==================================================================================================================================== |
| 1258 |
//function to import the .profile file + logs + snaps from a location to ~/.luckyBackup with the profilename given |
| 1259 |
int importFullProfilecxx . . $ Global/importFullProfile(cf8c7f074bbf9512).(QStringcxx . . $ QString# ImportPath,QStringcxx . . $ QString# newProfileName) |
| 1260 |
{ |
| 1261 |
int returnThis = 0; |
| 1262 |
QStringcxx . . $ QString# PathProfileName = ImportPathcxx . . $ QString#QString(132dd6869045752b).; |
| 1263 |
PathProfileName =cxx . . $ QString#`operator=`(4f35bf974e7f8568). PathProfileName.rightcxx . . $ QString#right(3f3c3d0e9c0eb37f).(PathProfileName.sizecxx . . $ QString#size(455f465bc33b4cdf).() - PathProfileName.lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(SLASHcxx . . $ Global/SLASH.) - 1); |
| 1264 |
if (PathProfileName.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(".profile"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 1265 |
PathProfileName.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(8); |
| 1266 |
|
| 1267 |
// copy everything from the importFullProfile to ~/.luckyBackupDir |
| 1268 |
QDircxx . . $ QDir# dirToCopycxx . . $ QDir#QDir(3520e46b33348bf6).; QStringListcxx . . $ QStringList# dirToCopyContentscxx . . $ QStringList#QStringList(ced63f7c635d850d).; QFilecxx . . $ QFile# fileToCopycxx . . $ QFile#QFile(49f6e7a06ebc5aa8).; QListcxx . . $ QList#<QString>::iteratorcxx . . $ QList#iterator# countcxx . . $ QList#iterator#iterator(ced63f7c635d850d).; |
| 1269 |
|
| 1270 |
// import all .profile files from ImportPath/profiles |
| 1271 |
dirToCopy.setPathcxx . . $ QDir#setPath(3520e46b33348bf6).(ImportPath +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(3d22f08efddf8107). "profiles"); |
| 1272 |
dirToCopyContents =cxx . . $ QStringList#`operator=`(335bb966c1744308). dirToCopy.entryListcxx . . $ QDir#entryList(4575c08c50802968).(QStringListcxx . . $ QStringList#QStringList(3520e46b33348bf6).("*.profile"cxx . . $ QString#QString(85c52e162fed56f9).),QDircxx . . $ QFlags#QFlags(93d577a3e9528307).::Filescxx . . $ QDir#Files., QDircxx . . $ QFlags#QFlags(93d577a3e9528307).::NoSortcxx . . $ QDir#NoSort.); |
| 1273 |
|
| 1274 |
if (dirToCopyContents.sizecxx . . $ QList#size(ea6fe5115c70a13f).() == 0) |
| 1275 |
return 1; |
| 1276 |
for (count =cxx . . $ QList#iterator#`operator=`(bf4a19a5c7778deb). dirToCopyContents.begincxx . . $ QList#begin(ca2520f641887418).(); count !=cxx . . $ QList#iterator#`operator!=`(afde28160b321935). dirToCopyContents.endcxx . . $ QList#end(ca2520f641887418).(); ++cxx . . $ QList#iterator#operator++(c343742bd746e713).count) |
| 1277 |
{ |
| 1278 |
QStringcxx . . $ QString# oldFileNamePart = *cxx . . $ QString#QString(132dd6869045752b).count; |
| 1279 |
oldFileNamePart =cxx . . $ QString#`operator=`(4f35bf974e7f8568). oldFileNamePart.rightcxx . . $ QString#right(3f3c3d0e9c0eb37f).(oldFileNamePart.sizecxx . . $ QString#size(455f465bc33b4cdf).() - oldFileNamePart.lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(SLASHcxx . . $ Global/SLASH.) - 1); |
| 1280 |
oldFileNamePart.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(8); |
| 1281 |
oldFileNamePart.removecxx . . $ QString#remove(6483560ce2afa901).(0,PathProfileName.sizecxx . . $ QString#size(455f465bc33b4cdf).()); |
| 1282 |
|
| 1283 |
fileToCopy.setFileNamecxx . . $ QFile#setFileName(3520e46b33348bf6).(ImportPath +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(3d22f08efddf8107). "profiles" +cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(fab9b4f80031f353).*cxx . . $ QList#iterator#`operator*`(c93303b41ac66b6d).count); |
| 1284 |
if ((!fileToCopy.copycxx . . $ QFile#copy(e1defb592416720d).(profileDircxx . . $ Global/profileDir. +cxx . . $ operator+(fab9b4f80031f353). newProfileName +cxx . . $ operator+(fab9b4f80031f353). oldFileNamePart +cxx . . $ operator+(3d22f08efddf8107). ".profile")) && (returnThis < 1)) |
| 1285 |
return 1; |
| 1286 |
} |
| 1287 |
|
| 1288 |
// import all .log files from ImportPath/logs |
| 1289 |
dirToCopy.setPathcxx . . $ QDir#setPath(3520e46b33348bf6).(ImportPath +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(3d22f08efddf8107). "logs"); |
| 1290 |
dirToCopyContents =cxx . . $ QStringList#`operator=`(335bb966c1744308). dirToCopy.entryListcxx . . $ QDir#entryList(4575c08c50802968).(QStringListcxx . . $ QStringList#QStringList(3520e46b33348bf6).("*.log"cxx . . $ QString#QString(85c52e162fed56f9).),QDircxx . . $ QFlags#QFlags(93d577a3e9528307).::Filescxx . . $ QDir#Files., QDircxx . . $ QFlags#QFlags(93d577a3e9528307).::NoSortcxx . . $ QDir#NoSort.); |
| 1291 |
|
| 1292 |
for (count =cxx . . $ QList#iterator#`operator=`(bf4a19a5c7778deb). dirToCopyContents.begincxx . . $ QList#begin(ca2520f641887418).(); count !=cxx . . $ QList#iterator#`operator!=`(afde28160b321935). dirToCopyContents.endcxx . . $ QList#end(ca2520f641887418).(); ++cxx . . $ QList#iterator#operator++(c343742bd746e713).count) |
| 1293 |
{ |
| 1294 |
QStringcxx . . $ QString# oldFileNamePart = *cxx . . $ QString#QString(132dd6869045752b).count; |
| 1295 |
oldFileNamePart =cxx . . $ QString#`operator=`(4f35bf974e7f8568). oldFileNamePart.rightcxx . . $ QString#right(3f3c3d0e9c0eb37f).(oldFileNamePart.sizecxx . . $ QString#size(455f465bc33b4cdf).() - oldFileNamePart.lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(SLASHcxx . . $ Global/SLASH.) - 1); |
| 1296 |
oldFileNamePart.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(4); |
| 1297 |
oldFileNamePart.removecxx . . $ QString#remove(6483560ce2afa901).(0,PathProfileName.sizecxx . . $ QString#size(455f465bc33b4cdf).()); |
| 1298 |
|
| 1299 |
// TESTING |
| 1300 |
//QMessageBox::information(0, "LB","source= " +ImportPath + SLASH + "logs" +SLASH + *count + "<br><br>dest: " + logDir + newProfileName + oldFileNamePart + ".log<br><br>oldFileNamePar= "+oldFileNamePart); |
| 1301 |
|
| 1302 |
fileToCopy.setFileNamecxx . . $ QFile#setFileName(3520e46b33348bf6).(ImportPath +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(3d22f08efddf8107). "logs" +cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(fab9b4f80031f353).*cxx . . $ QList#iterator#`operator*`(c93303b41ac66b6d).count); |
| 1303 |
if ((!fileToCopy.copycxx . . $ QFile#copy(e1defb592416720d).(logDircxx . . $ Global/logDir. +cxx . . $ operator+(fab9b4f80031f353). newProfileName +cxx . . $ operator+(fab9b4f80031f353). oldFileNamePart +cxx . . $ operator+(3d22f08efddf8107). ".log")) && (returnThis < 10)) |
| 1304 |
returnThis=returnThis+10; |
| 1305 |
} |
| 1306 |
|
| 1307 |
// import all changes.log files from ImportPath/snaps |
| 1308 |
dirToCopy.setPathcxx . . $ QDir#setPath(3520e46b33348bf6).(ImportPath +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(3d22f08efddf8107). "snaps"); |
| 1309 |
dirToCopyContents =cxx . . $ QStringList#`operator=`(335bb966c1744308). dirToCopy.entryListcxx . . $ QDir#entryList(4575c08c50802968).(QStringListcxx . . $ QStringList#QStringList(3520e46b33348bf6).("*.changes.log"cxx . . $ QString#QString(85c52e162fed56f9).),QDircxx . . $ QFlags#QFlags(93d577a3e9528307).::Filescxx . . $ QDir#Files., QDircxx . . $ QFlags#QFlags(93d577a3e9528307).::NoSortcxx . . $ QDir#NoSort.); |
| 1310 |
|
| 1311 |
for (count =cxx . . $ QList#iterator#`operator=`(bf4a19a5c7778deb). dirToCopyContents.begincxx . . $ QList#begin(ca2520f641887418).(); count !=cxx . . $ QList#iterator#`operator!=`(afde28160b321935). dirToCopyContents.endcxx . . $ QList#end(ca2520f641887418).(); ++cxx . . $ QList#iterator#operator++(c343742bd746e713).count) |
| 1312 |
{ |
| 1313 |
QStringcxx . . $ QString# oldFileNamePart = *cxx . . $ QString#QString(132dd6869045752b).count; |
| 1314 |
oldFileNamePart =cxx . . $ QString#`operator=`(4f35bf974e7f8568). oldFileNamePart.rightcxx . . $ QString#right(3f3c3d0e9c0eb37f).(oldFileNamePart.sizecxx . . $ QString#size(455f465bc33b4cdf).() - oldFileNamePart.lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(SLASHcxx . . $ Global/SLASH.) - 1); |
| 1315 |
oldFileNamePart.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(12); |
| 1316 |
oldFileNamePart.removecxx . . $ QString#remove(6483560ce2afa901).(0,PathProfileName.sizecxx . . $ QString#size(455f465bc33b4cdf).()); |
| 1317 |
|
| 1318 |
fileToCopy.setFileNamecxx . . $ QFile#setFileName(3520e46b33348bf6).(ImportPath +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(3d22f08efddf8107). "snaps" +cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH. +cxx . . $ operator+(fab9b4f80031f353).*cxx . . $ QList#iterator#`operator*`(c93303b41ac66b6d).count); |
| 1319 |
if ((!fileToCopy.copycxx . . $ QFile#copy(e1defb592416720d).(snapChangesDircxx . . $ Global/snapChangesDir. +cxx . . $ operator+(fab9b4f80031f353). newProfileName +cxx . . $ operator+(fab9b4f80031f353). oldFileNamePart +cxx . . $ operator+(3d22f08efddf8107). ".changes.log")) && (returnThis < 20)) |
| 1320 |
returnThis=returnThis+20; |
| 1321 |
} |
| 1322 |
|
| 1323 |
return returnThis; |
| 1324 |
} |
| 1325 |
|
| 1326 |
// checkTaskList ===================================================================================================================================== |
| 1327 |
// Checks if the Task list is ok to proceed |
| 1328 |
bool checkTaskListcxx . . $ Global/checkTaskList(c9857a73d68e59ba).() |
| 1329 |
{ |
| 1330 |
int count; |
| 1331 |
QStringcxx . . $ QString# tempConnect=""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 1332 |
messagecxx . . $ Global/message.=cxx . . $ QString#`operator=`(d02845eef0c33901).""; |
| 1333 |
messageCLIcxx . . $ Global/messageCLI.=cxx . . $ QString#`operator=`(d02845eef0c33901).""; |
| 1334 |
askcxx . . $ Global/ask. = false; |
| 1335 |
NothingIncludedcxx . . $ Global/NothingIncluded.=true; |
| 1336 |
|
| 1337 |
if (TotalOperationscxx . . $ Global/TotalOperations.==0) //check if the operations list is empty ------------------------------ |
| 1338 |
{ |
| 1339 |
messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><b>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 1340 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("The task list is empty")+cxx . . $ operator+(3d22f08efddf8107)." !!</b><br>..."+cxx . . $ operator+(fab9b4f80031f353). |
| 1341 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("nothing to start")); |
| 1342 |
messageCLIcxx . . $ Global/messageCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nThe task list is empty !!\n" |
| 1343 |
"nothing to start !!\n\n"); |
| 1344 |
askcxx . . $ Global/ask. = true; |
| 1345 |
return false; |
| 1346 |
} |
| 1347 |
|
| 1348 |
//first check if 2 connected operations have been selected for execution-------------------------------------------------------------- |
| 1349 |
//set NothingInluded to false if 1 or more operation is included |
| 1350 |
bool askTemp = false; QStringcxx . . $ QString# dirNames=""cxx . . $ QString#QString(85c52e162fed56f9).; QStringcxx . . $ QString# dirNamesCLI=""cxx . . $ QString#QString(85c52e162fed56f9).; currentOperationcxx . . $ Global/currentOperation.=0; |
| 1351 |
while (currentOperationcxx . . $ Global/currentOperation. < TotalOperationscxx . . $ Global/TotalOperations.) |
| 1352 |
{ |
| 1353 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludedcxx . . $ operation#GetIncluded(50ce9a9e25b4a850).()) //if the operations is "included" |
| 1354 |
{ |
| 1355 |
NothingIncludedcxx . . $ Global/NothingIncluded. = false; |
| 1356 |
|
| 1357 |
tempConnect =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetConnectRestorecxx . . $ operation#GetConnectRestore(6ef7b6c27b00b43d).(); |
| 1358 |
if (tempConnect !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //if it is connected to another operation |
| 1359 |
{ |
| 1360 |
count = currentOperationcxx . . $ Global/currentOperation.+1; |
| 1361 |
while (count < TotalOperationscxx . . $ Global/TotalOperations.) |
| 1362 |
{ |
| 1363 |
if ( (Operationcxx . . $ Global/Operation.[count]->GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() ==cxx . . $ `operator==`(5bc2975d2d751687). tempConnect) //if 2 connected operations are both included |
| 1364 |
&& (Operationcxx . . $ Global/Operation.[count] -> GetIncludedcxx . . $ operation#GetIncluded(50ce9a9e25b4a850).()) ) |
| 1365 |
{ |
| 1366 |
dirNames.appendcxx . . $ QString#append(6a89d0b7f4d2681c).("* " +cxx . . $ operator+(c75c3ae4eb9af1a8). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]->GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "<br>* " +cxx . . $ operator+(fab9b4f80031f353). tempConnect +cxx . . $ operator+(3d22f08efddf8107). "<br>"); |
| 1367 |
dirNamesCLI.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]->GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "\n" +cxx . . $ operator+(fab9b4f80031f353). tempConnect +cxx . . $ operator+(3d22f08efddf8107). "\n\n"); |
| 1368 |
askTemp = true; askcxx . . $ Global/ask.=true; |
| 1369 |
break; |
| 1370 |
} |
| 1371 |
count++; |
| 1372 |
} |
| 1373 |
} |
| 1374 |
} |
| 1375 |
currentOperationcxx . . $ Global/currentOperation.++; |
| 1376 |
} |
| 1377 |
if (askTemp) |
| 1378 |
{ |
| 1379 |
messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 1380 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("You have included both of the following connected tasks:")+cxx . . $ operator+(3d22f08efddf8107)."<b><br>" +cxx . . $ operator+(fab9b4f80031f353). dirNames +cxx . . $ operator+(3d22f08efddf8107). |
| 1381 |
"</b>" +cxx . . $ operator+(fab9b4f80031f353). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("this is not allowed for obvious reasons")+cxx . . $ operator+(3d22f08efddf8107)." !!<br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 1382 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Please <b>uncheck appropriate include boxes</b> before proceeding")+cxx . . $ operator+(3d22f08efddf8107)."... <br>"); |
| 1383 |
messageCLIcxx . . $ Global/messageCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("\nYou have included both of the following connected tasks:\n" +cxx . . $ operator+(c75c3ae4eb9af1a8). QStringcxx . . $ QString#QString(45672f3c6961a244).(dirNamesCLI.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()) +cxx . . $ operator+(3d22f08efddf8107). |
| 1384 |
"this is not allowed for obvious reasons !!\n" |
| 1385 |
"Please uncheck appropriate include boxes before proceeding...\n\n"); |
| 1386 |
} |
| 1387 |
|
| 1388 |
if ( (NothingIncludedcxx . . $ Global/NothingIncluded.) && (TotalOperationscxx . . $ Global/TotalOperations.!=0) ) //if no checkboxes are selected show this message --------------------- |
| 1389 |
{ |
| 1390 |
messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><b>"+cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 1391 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("You have not included any tasks")+cxx . . $ operator+(3d22f08efddf8107)." !!</b><br>" |
| 1392 |
"..." +cxx . . $ operator+(fab9b4f80031f353). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("nothing to start")); |
| 1393 |
messageCLIcxx . . $ Global/messageCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nYou have not included any tasks !!\n\n" |
| 1394 |
"nothing to start !!\n\n"); |
| 1395 |
askcxx . . $ Global/ask. = true; |
| 1396 |
return false; |
| 1397 |
} |
| 1398 |
|
| 1399 |
//check if 2 or more identical destination directories are decleared & "Backup dir contents" is checked ------------------------------- |
| 1400 |
currentOperationcxx . . $ Global/currentOperation.=0; askTemp = false; dirNames=cxx . . $ QString#`operator=`(d02845eef0c33901).""; dirNamesCLI=cxx . . $ QString#`operator=`(d02845eef0c33901).""; |
| 1401 |
QStringcxx . . $ QString# dest1=""cxx . . $ QString#QString(85c52e162fed56f9)., dest2=""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 1402 |
//the following loop compares an included operation (currentoperation) with all the other included |
| 1403 |
//to check if they share the same destination |
| 1404 |
while (currentOperationcxx . . $ Global/currentOperation. < TotalOperationscxx . . $ Global/TotalOperations.) |
| 1405 |
{ |
| 1406 |
dest1 =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).(); |
| 1407 |
if (dest1.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) dest1.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 1408 |
if (WINrunningcxx . . $ Global/WINrunning. && dest1.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(XnixSLASHcxx . . $ Global/XnixSLASH.)) dest1.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 1409 |
|
| 1410 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludedcxx . . $ operation#GetIncluded(50ce9a9e25b4a850).()) |
| 1411 |
{ |
| 1412 |
count = 0; |
| 1413 |
while (count < TotalOperationscxx . . $ Global/TotalOperations.) |
| 1414 |
{ |
| 1415 |
if (count == currentOperationcxx . . $ Global/currentOperation.) count++; |
| 1416 |
else |
| 1417 |
{ |
| 1418 |
dest2 =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Operationcxx . . $ Global/Operation.[count] -> GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).(); |
| 1419 |
if (dest2.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) dest2.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 1420 |
if (WINrunningcxx . . $ Global/WINrunning. && dest2.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(XnixSLASHcxx . . $ Global/XnixSLASH.)) dest2.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 1421 |
|
| 1422 |
//if this operation's destination is identical to another one's which is included and is of type 'Backup dir contents' |
| 1423 |
if ( (Operationcxx . . $ Global/Operation.[count] -> GetIncludedcxx . . $ operation#GetIncluded(50ce9a9e25b4a850).()) |
| 1424 |
&& ( dest1 ==cxx . . $ `operator==`(5bc2975d2d751687). dest2 ) |
| 1425 |
&& ( ((Operationcxx . . $ Global/Operation.[count] -> GetTypeDirContentscxx . . $ operation#GetTypeDirContents(50ce9a9e25b4a850).()) && (!Operationcxx . . $ Global/Operation.[count] -> GetIncludecxx . . $ operation#GetInclude(50ce9a9e25b4a850).())) || |
| 1426 |
((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetTypeDirContentscxx . . $ operation#GetTypeDirContents(50ce9a9e25b4a850).()) && (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludecxx . . $ operation#GetInclude(50ce9a9e25b4a850).()))) ) |
| 1427 |
{ |
| 1428 |
dirNames.appendcxx . . $ QString#append(6a89d0b7f4d2681c).("* " +cxx . . $ operator+(c75c3ae4eb9af1a8). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]->GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "<br>"); |
| 1429 |
dirNamesCLI.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]->GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "\n"); |
| 1430 |
askTemp = true; askcxx . . $ Global/ask.=true; |
| 1431 |
break; |
| 1432 |
} |
| 1433 |
count++; |
| 1434 |
} |
| 1435 |
} |
| 1436 |
} |
| 1437 |
currentOperationcxx . . $ Global/currentOperation.++; |
| 1438 |
} |
| 1439 |
if (askTemp) |
| 1440 |
{ |
| 1441 |
messagecxx . . $ Global/message..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 1442 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("The following included tasks <b>share the same destination directory</b> (all together or at groups) and at least one of them will backup the contents of a directory")+cxx . . $ operator+(3d22f08efddf8107)." :<br><b>" |
| 1443 |
+cxx . . $ operator+(fab9b4f80031f353). dirNames +cxx . . $ operator+(3d22f08efddf8107). |
| 1444 |
"</b>" +cxx . . $ operator+(fab9b4f80031f353). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("this will lead to one task canceling the other")+cxx . . $ operator+(3d22f08efddf8107)." !!<br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 1445 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Please uncheck appropriate include boxes or change all task types to other than '<b>Backup dir contents</b>' " |
| 1446 |
" or use 'Backup dir contents' together with the '<b>Only include</b>' option, before proceeding")+cxx . . $ operator+(3d22f08efddf8107)."..."); |
| 1447 |
|
| 1448 |
messageCLIcxx . . $ Global/messageCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("\nThe following included tasks share the same destination directory (all together or at groups) and at least one of them will backup the contents of a directory :\n" |
| 1449 |
+cxx . . $ operator+(c75c3ae4eb9af1a8). QStringcxx . . $ QString#QString(45672f3c6961a244).(dirNamesCLI.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()) +cxx . . $ operator+(3d22f08efddf8107). |
| 1450 |
"\nthis will lead to one task canceling the other !!\n" |
| 1451 |
"Please uncheck appropriate include boxes or change all task types to other than 'Backup dir contents'\n " |
| 1452 |
"or use 'Backup dir contents' together with the 'Only include' option, before proceeding...\n\n"); |
| 1453 |
} |
| 1454 |
|
| 1455 |
return true; |
| 1456 |
} |
| 1457 |
|
| 1458 |
// checkDeclaredDirs ================================================================================================================================= |
| 1459 |
//Check if the declared data are ok by calling checkBackupDirs or checkSyncDirs |
| 1460 |
//If guiExec is true this is called from the gui, otherwise from console |
| 1461 |
bool checkDeclaredDirscxx . . $ Global/checkDeclaredDirs(efaadfb7dc14930a).(bool guiExec) |
| 1462 |
{ |
| 1463 |
askcxx . . $ Global/ask.=false; |
| 1464 |
NothingToDocxx . . $ Global/NothingToDo. = true; |
| 1465 |
|
| 1466 |
QStringcxx . . $ QString# sourcecxx . . $ QString#QString(ced63f7c635d850d)., destcxx . . $ QString#QString(ced63f7c635d850d).; |
| 1467 |
|
| 1468 |
currentOperationcxx . . $ Global/currentOperation. = 0; |
| 1469 |
CheckedDatacxx . . $ Global/CheckedData. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 1470 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 1471 |
while (currentOperationcxx . . $ Global/currentOperation. < TotalOperationscxx . . $ Global/TotalOperations.) |
| 1472 |
{ |
| 1473 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetOKcxx . . $ operation#SetOK(b45ddcbc8423892c).(false); |
| 1474 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetWARNINGcxx . . $ operation#SetWARNING(b45ddcbc8423892c).(false); |
| 1475 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetCRITICALcxx . . $ operation#SetCRITICAL(b45ddcbc8423892c).(false); |
| 1476 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourcePermscxx . . $ operation#SetSourcePerms(b45ddcbc8423892c).(false); |
| 1477 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestPermscxx . . $ operation#SetDestPerms(b45ddcbc8423892c).(false); |
| 1478 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestMountedcxx . . $ operation#SetDestMounted(b45ddcbc8423892c).(false); |
| 1479 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourceMountedcxx . . $ operation#SetSourceMounted(b45ddcbc8423892c).(false); |
| 1480 |
|
| 1481 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetIncludedcxx . . $ operation#GetIncluded(50ce9a9e25b4a850).()) //if the operations is "included" |
| 1482 |
{ |
| 1483 |
//first set variables source & dest as well as itsPerform which will finaly decide if the task will be preformed |
| 1484 |
source =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSourcecxx . . $ operation#GetSource(6ef7b6c27b00b43d).(); |
| 1485 |
dest =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).(); |
| 1486 |
|
| 1487 |
if (!guiExec) //this is used for compatibility issues with console |
| 1488 |
{ |
| 1489 |
source=cxx . . $ QString#`operator=`(4f35bf974e7f8568).QStringcxx . . $ QString#QString(45672f3c6961a244).(source.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()); |
| 1490 |
dest=cxx . . $ QString#`operator=`(4f35bf974e7f8568).QStringcxx . . $ QString#QString(45672f3c6961a244).(dest.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()); |
| 1491 |
} |
| 1492 |
|
| 1493 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetIncludedcxx . . $ operation#SetIncluded(b45ddcbc8423892c).(true); |
| 1494 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(true); //this will change at the next commands |
| 1495 |
|
| 1496 |
if ( (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetTypeDirContentscxx . . $ operation#GetTypeDirContents(50ce9a9e25b4a850).()) || (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetTypeDirNamecxx . . $ operation#GetTypeDirName(50ce9a9e25b4a850).()) ) |
| 1497 |
checkBackupDirscxx . . $ Global/checkBackupDirs(3458fe3960d5051).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).); //if the operation is of type "backup dir ...' |
| 1498 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetTypeSynccxx . . $ operation#GetTypeSync(50ce9a9e25b4a850).()) //if the operation is of type "sync dirs' |
| 1499 |
checkSyncDirscxx . . $ Global/checkSyncDirs(3458fe3960d5051).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).); |
| 1500 |
} |
| 1501 |
else |
| 1502 |
{ |
| 1503 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetIncludedcxx . . $ operation#SetIncluded(b45ddcbc8423892c).(false); |
| 1504 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); |
| 1505 |
} |
| 1506 |
currentOperationcxx . . $ Global/currentOperation.++; |
| 1507 |
} |
| 1508 |
return true; |
| 1509 |
} |
| 1510 |
|
| 1511 |
//=================================================================================================================================================== |
| 1512 |
//Check if the directories to be synced are empty or don't exist |
| 1513 |
void checkSyncDirscxx . . $ Global/checkSyncDirs(3458fe3960d5051).(QStringcxx . . $ QString# source, QStringcxx . . $ QString# dest) |
| 1514 |
{ |
| 1515 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetOKcxx . . $ operation#SetOK(b45ddcbc8423892c).(false); |
| 1516 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetWARNINGcxx . . $ operation#SetWARNING(b45ddcbc8423892c).(false); |
| 1517 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetCRITICALcxx . . $ operation#SetCRITICAL(b45ddcbc8423892c).(false); |
| 1518 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourcePermscxx . . $ operation#SetSourcePerms(b45ddcbc8423892c).(false); |
| 1519 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestPermscxx . . $ operation#SetDestPerms(b45ddcbc8423892c).(false); |
| 1520 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestMountedcxx . . $ operation#SetDestMounted(b45ddcbc8423892c).(false); |
| 1521 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourceMountedcxx . . $ operation#SetSourceMounted(b45ddcbc8423892c).(false); |
| 1522 |
|
| 1523 |
bool remoteSource = false; |
| 1524 |
bool remoteDest = false; |
| 1525 |
|
| 1526 |
if ( (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).()) && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSourcecxx . . $ operation#GetRemoteSource(50ce9a9e25b4a850).()) ) |
| 1527 |
{ |
| 1528 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).()) |
| 1529 |
source.prependcxx . . $ QString#prepend(d02845eef0c33901).(":"); |
| 1530 |
source.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107).":"); |
| 1531 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).()!=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."") |
| 1532 |
source.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107)."@"); |
| 1533 |
remoteSource = true; |
| 1534 |
} |
| 1535 |
|
| 1536 |
if ( (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).()) && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteDestinationcxx . . $ operation#GetRemoteDestination(50ce9a9e25b4a850).()) ) |
| 1537 |
{ |
| 1538 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).()) |
| 1539 |
dest.prependcxx . . $ QString#prepend(d02845eef0c33901).(":"); |
| 1540 |
dest.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107).":"); |
| 1541 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).()!=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."") |
| 1542 |
dest.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107)."@"); |
| 1543 |
remoteDest = true; |
| 1544 |
} |
| 1545 |
|
| 1546 |
QFileInfocxx . . $ QFileInfo# dirAFilecxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(source); |
| 1547 |
QFileInfocxx . . $ QFileInfo# dirBFilecxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(dest); |
| 1548 |
QStringcxx . . $ QString# currentOpNameCLI = QStringcxx . . $ QString#QString(45672f3c6961a244).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).())).toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).(); |
| 1549 |
|
| 1550 |
//QString taskDescriptionCLI = QString((Operation[currentOperation] -> GetDescription())).toUtf8(); |
| 1551 |
QStringcxx . . $ QString# taskDescription = Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDescriptioncxx . . $ operation#GetDescription(6ef7b6c27b00b43d).(); |
| 1552 |
taskDescription.replacecxx . . $ QString#replace(192e628656427d1c).("\n"cxx . . $ QString#QString(85c52e162fed56f9).,"<br>"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1553 |
|
| 1554 |
//If user does not have sufficient permissions for the dirA or dirB, skip it |
| 1555 |
if ( (dirAFile.existscxx . . $ QFileInfo#exists(50ce9a9e25b4a850).()) && ((!dirAFile.isReadablecxx . . $ QFileInfo#isReadable(50ce9a9e25b4a850).()) || (!dirAFile.isExecutablecxx . . $ QFileInfo#isExecutable(50ce9a9e25b4a850).())) && (!remoteSource) ) |
| 1556 |
{ |
| 1557 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest, "warning"cxx . . $ QString#QString(85c52e162fed56f9).,"sync"cxx . . $ QString#QString(85c52e162fed56f9).,"source-perms"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1558 |
|
| 1559 |
if (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) |
| 1560 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation if the "bypass WARNING" OPTION is disabled |
| 1561 |
else |
| 1562 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1563 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourcePermscxx . . $ operation#SetSourcePerms(b45ddcbc8423892c).(true); |
| 1564 |
askcxx . . $ Global/ask.=true; //ask the user if he/she wants to continue |
| 1565 |
return; |
| 1566 |
} |
| 1567 |
|
| 1568 |
if ( (dirBFile.existscxx . . $ QFileInfo#exists(50ce9a9e25b4a850).()) && ((!dirBFile.isReadablecxx . . $ QFileInfo#isReadable(50ce9a9e25b4a850).()) || (!dirBFile.isExecutablecxx . . $ QFileInfo#isExecutable(50ce9a9e25b4a850).())) && (!remoteDest) ) |
| 1569 |
{ |
| 1570 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"warning"cxx . . $ QString#QString(85c52e162fed56f9).,"sync"cxx . . $ QString#QString(85c52e162fed56f9).,"dest-perms"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1571 |
|
| 1572 |
askcxx . . $ Global/ask.=true; //ask the user if he/she wants to continue |
| 1573 |
if (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) |
| 1574 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation if the "bypass WARNING" OPTION is disabled |
| 1575 |
else |
| 1576 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1577 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestPermscxx . . $ operation#SetDestPerms(b45ddcbc8423892c).(true); |
| 1578 |
return; |
| 1579 |
} |
| 1580 |
|
| 1581 |
QDircxx . . $ QDir# dirAcxx . . $ QDir#QDir(3520e46b33348bf6). (source); |
| 1582 |
QDircxx . . $ QDir# dirBcxx . . $ QDir#QDir(3520e46b33348bf6). (dest); |
| 1583 |
|
| 1584 |
// WARNING The following 2 commands cause a "std::bad_alloc" crash when cloudfuse is used |
| 1585 |
QStringListcxx . . $ QStringList# dirAList = dirA.entryListcxx . . $ QDir#entryList(648720ae7e049ebe).(QDircxx . . $ QDir#::AllEntriescxx . . $ QDir#AllEntries. |cxx . . $ `operator|`(153b300229e4e3d0). QDircxx . . $ QDir#::Hiddencxx . . $ QDir#Hidden. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). QDircxx . . $ QDir#::NoDotAndDotDotcxx . . $ QDir#NoDotAndDotDot.); |
| 1586 |
QStringListcxx . . $ QStringList# dirBList = dirB.entryListcxx . . $ QDir#entryList(648720ae7e049ebe).(QDircxx . . $ QDir#::AllEntriescxx . . $ QDir#AllEntries. |cxx . . $ `operator|`(153b300229e4e3d0). QDircxx . . $ QDir#::Hiddencxx . . $ QDir#Hidden. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). QDircxx . . $ QDir#::NoDotAndDotDotcxx . . $ QDir#NoDotAndDotDot.); |
| 1587 |
bool dirAIsEmpty, dirBIsEmpty; |
| 1588 |
if (dirAList.sizecxx . . $ QList#size(ea6fe5115c70a13f).() == 0) |
| 1589 |
dirAIsEmpty = true; |
| 1590 |
else |
| 1591 |
dirAIsEmpty = false; |
| 1592 |
if (dirBList.sizecxx . . $ QList#size(ea6fe5115c70a13f).() == 0) |
| 1593 |
dirBIsEmpty = true; |
| 1594 |
else |
| 1595 |
dirBIsEmpty = false; |
| 1596 |
|
| 1597 |
// Check if sync dirs A & B are under /media or /mnt and belong to a mountpoint ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1598 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestMountedcxx . . $ operation#SetDestMounted(b45ddcbc8423892c).(checkMountPointcxx . . $ Global/checkMountPoint(7dc6c9a0b6a7270f).(destcxx . . $ QString#QString(132dd6869045752b).)); |
| 1599 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourceMountedcxx . . $ operation#SetSourceMounted(b45ddcbc8423892c).(checkMountPointcxx . . $ Global/checkMountPoint(7dc6c9a0b6a7270f).(sourcecxx . . $ QString#QString(132dd6869045752b).)); |
| 1600 |
|
| 1601 |
//Do directories exist and are not emty ??(skip remote) -> [ Ok ] |
| 1602 |
if ( ( ((dirA.existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) && !(dirAIsEmpty)) || (remoteSource) ) |
| 1603 |
&& (((dirB.existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) && !(dirBIsEmpty)) ||(remoteDest) ) ) |
| 1604 |
{ |
| 1605 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"okay"cxx . . $ QString#QString(85c52e162fed56f9).,"sync"cxx . . $ QString#QString(85c52e162fed56f9).,"okay"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1606 |
|
| 1607 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1608 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetOKcxx . . $ operation#SetOK(b45ddcbc8423892c).(true); |
| 1609 |
} |
| 1610 |
|
| 1611 |
//is one or both sync dirs non-existent ?? -> [ WARNING ] |
| 1612 |
else if ( !(dirA.existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) || !(dirB.existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) ) |
| 1613 |
{ |
| 1614 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"warning"cxx . . $ QString#QString(85c52e162fed56f9).,"sync"cxx . . $ QString#QString(85c52e162fed56f9).,"sync-not-exist"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1615 |
|
| 1616 |
if (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) |
| 1617 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation if the "bypass WARNING" OPTION is disabled |
| 1618 |
else |
| 1619 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1620 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetWARNINGcxx . . $ operation#SetWARNING(b45ddcbc8423892c).(true); |
| 1621 |
askcxx . . $ Global/ask.=true; |
| 1622 |
} |
| 1623 |
|
| 1624 |
//Is one or both of the directories empty ?? |
| 1625 |
else |
| 1626 |
{ |
| 1627 |
// if it is NOT mounted under /media or /mnt -> [ WARNING ] |
| 1628 |
if ( (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDestMountedcxx . . $ operation#GetDestMounted(50ce9a9e25b4a850).()) || (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSourceMountedcxx . . $ operation#GetSourceMounted(50ce9a9e25b4a850).()) ) |
| 1629 |
{ |
| 1630 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"warning"cxx . . $ QString#QString(85c52e162fed56f9).,"sync"cxx . . $ QString#QString(85c52e162fed56f9).,"sync-not-mounted"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1631 |
|
| 1632 |
if (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) |
| 1633 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation if the "bypass WARNING" OPTION is disabled |
| 1634 |
else |
| 1635 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1636 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetWARNINGcxx . . $ operation#SetWARNING(b45ddcbc8423892c).(true); |
| 1637 |
|
| 1638 |
} |
| 1639 |
else // -> [ CRITICAL ] |
| 1640 |
{ |
| 1641 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"critical"cxx . . $ QString#QString(85c52e162fed56f9).,"sync"cxx . . $ QString#QString(85c52e162fed56f9).,"sync-empty"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1642 |
|
| 1643 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetCRITICALcxx . . $ operation#SetCRITICAL(b45ddcbc8423892c).(true); |
| 1644 |
if (SkipCriticalcxx . . $ Global/SkipCritical.) // if a --skip-critical is given as argument |
| 1645 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation |
| 1646 |
else |
| 1647 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1648 |
} |
| 1649 |
askcxx . . $ Global/ask.=true; //ask the user if he/she wants to continue |
| 1650 |
} |
| 1651 |
|
| 1652 |
} |
| 1653 |
|
| 1654 |
//=================================================================================================================================================== |
| 1655 |
//Check if the source and destination backup directories are empty or don't exist |
| 1656 |
void checkBackupDirscxx . . $ Global/checkBackupDirs(3458fe3960d5051).(QStringcxx . . $ QString# source, QStringcxx . . $ QString# dest) |
| 1657 |
{ |
| 1658 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetOKcxx . . $ operation#SetOK(b45ddcbc8423892c).(false); |
| 1659 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetWARNINGcxx . . $ operation#SetWARNING(b45ddcbc8423892c).(false); |
| 1660 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetCRITICALcxx . . $ operation#SetCRITICAL(b45ddcbc8423892c).(false); |
| 1661 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourcePermscxx . . $ operation#SetSourcePerms(b45ddcbc8423892c).(false); |
| 1662 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestPermscxx . . $ operation#SetDestPerms(b45ddcbc8423892c).(false); |
| 1663 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestMountedcxx . . $ operation#SetDestMounted(b45ddcbc8423892c).(false); |
| 1664 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourceMountedcxx . . $ operation#SetSourceMounted(b45ddcbc8423892c).(false); |
| 1665 |
|
| 1666 |
bool remoteSource = false; |
| 1667 |
bool remoteDest = false; |
| 1668 |
|
| 1669 |
//first check if a remote source or dest is used so that to skip checks |
| 1670 |
if ( (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).()) && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSourcecxx . . $ operation#GetRemoteSource(50ce9a9e25b4a850).()) ) |
| 1671 |
{ |
| 1672 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).()) |
| 1673 |
source.prependcxx . . $ QString#prepend(d02845eef0c33901).(":"); |
| 1674 |
source.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107).":"); |
| 1675 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).()!=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."") |
| 1676 |
source.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107)."@"); |
| 1677 |
remoteSource = true; |
| 1678 |
} |
| 1679 |
if ( (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).()) && (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteDestinationcxx . . $ operation#GetRemoteDestination(50ce9a9e25b4a850).()) ) |
| 1680 |
{ |
| 1681 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).()) |
| 1682 |
dest.prependcxx . . $ QString#prepend(d02845eef0c33901).(":"); |
| 1683 |
dest.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107).":"); |
| 1684 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).()!=cxx . . $ QString#`operator!=`(7d4bdb1abc417636)."") |
| 1685 |
dest.prependcxx . . $ QString#prepend(6a89d0b7f4d2681c).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).())+cxx . . $ operator+(3d22f08efddf8107)."@"); |
| 1686 |
remoteDest = true; |
| 1687 |
} |
| 1688 |
|
| 1689 |
//If user does not have sufficient permissions for the source or dest, skip it |
| 1690 |
QFileInfocxx . . $ QFileInfo# destFilecxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(dest); |
| 1691 |
QFileInfocxx . . $ QFileInfo# sourceFilecxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(source); |
| 1692 |
|
| 1693 |
if ( (sourceFile.existscxx . . $ QFileInfo#exists(50ce9a9e25b4a850).()) && ((!sourceFile.isReadablecxx . . $ QFileInfo#isReadable(50ce9a9e25b4a850).()) || (!sourceFile.isExecutablecxx . . $ QFileInfo#isExecutable(50ce9a9e25b4a850).())) && (!remoteSource) ) |
| 1694 |
{ |
| 1695 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"warning"cxx . . $ QString#QString(85c52e162fed56f9).,"backup"cxx . . $ QString#QString(85c52e162fed56f9).,"source-perms"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1696 |
|
| 1697 |
if (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) |
| 1698 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation if the "bypass WARNING" OPTION is disabled |
| 1699 |
else |
| 1700 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1701 |
|
| 1702 |
askcxx . . $ Global/ask.=true; //ask the user if he/she wants to continue |
| 1703 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourcePermscxx . . $ operation#SetSourcePerms(b45ddcbc8423892c).(true); |
| 1704 |
return; |
| 1705 |
} |
| 1706 |
|
| 1707 |
if ( (destFile.existscxx . . $ QFileInfo#exists(50ce9a9e25b4a850).()) && ((!destFile.isReadablecxx . . $ QFileInfo#isReadable(50ce9a9e25b4a850).()) || (!destFile.isExecutablecxx . . $ QFileInfo#isExecutable(50ce9a9e25b4a850).())) && (!remoteDest) ) |
| 1708 |
{ |
| 1709 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"warning"cxx . . $ QString#QString(85c52e162fed56f9).,"backup"cxx . . $ QString#QString(85c52e162fed56f9).,"dest-perms"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1710 |
|
| 1711 |
if (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) |
| 1712 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation if the "bypass WARNING" OPTION is disabled |
| 1713 |
else |
| 1714 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1715 |
askcxx . . $ Global/ask.=true; //ask the user if he/she wants to continue |
| 1716 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestPermscxx . . $ operation#SetDestPerms(b45ddcbc8423892c).(true); |
| 1717 |
return; |
| 1718 |
} |
| 1719 |
|
| 1720 |
QDircxx . . $ QDir# sourceDircxx . . $ QDir#QDir(3520e46b33348bf6). (source); |
| 1721 |
QDircxx . . $ QDir# destDircxx . . $ QDir#QDir(3520e46b33348bf6). (dest); |
| 1722 |
|
| 1723 |
// WARNING The following 2 commands cause a "std::bad_alloc" crash when cloudfuse is used |
| 1724 |
QStringListcxx . . $ QStringList# sourceList = sourceDir.entryListcxx . . $ QDir#entryList(648720ae7e049ebe).(QDircxx . . $ QDir#::AllEntriescxx . . $ QDir#AllEntries. |cxx . . $ `operator|`(153b300229e4e3d0). QDircxx . . $ QDir#::Hiddencxx . . $ QDir#Hidden. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). QDircxx . . $ QDir#::NoDotAndDotDotcxx . . $ QDir#NoDotAndDotDot.); |
| 1725 |
QStringListcxx . . $ QStringList# destList = destDir.entryListcxx . . $ QDir#entryList(648720ae7e049ebe).(QDircxx . . $ QDir#::AllEntriescxx . . $ QDir#AllEntries. |cxx . . $ `operator|`(153b300229e4e3d0). QDircxx . . $ QDir#::Hiddencxx . . $ QDir#Hidden. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). QDircxx . . $ QDir#::NoDotAndDotDotcxx . . $ QDir#NoDotAndDotDot.); |
| 1726 |
|
| 1727 |
bool SourceIsEmpty, DestIsEmpty; |
| 1728 |
if (sourceList.sizecxx . . $ QList#size(ea6fe5115c70a13f).() == 0) |
| 1729 |
SourceIsEmpty = true; |
| 1730 |
else |
| 1731 |
SourceIsEmpty = false; |
| 1732 |
if (destList.sizecxx . . $ QList#size(ea6fe5115c70a13f).() == 0) |
| 1733 |
DestIsEmpty = true; |
| 1734 |
else |
| 1735 |
DestIsEmpty = false; |
| 1736 |
|
| 1737 |
// Check if source & dest are under /media or /mnt and belong to a mountpoint ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1738 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetDestMountedcxx . . $ operation#SetDestMounted(b45ddcbc8423892c).(checkMountPointcxx . . $ Global/checkMountPoint(7dc6c9a0b6a7270f).(destcxx . . $ QString#QString(132dd6869045752b).)); |
| 1739 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetSourceMountedcxx . . $ operation#SetSourceMounted(b45ddcbc8423892c).(checkMountPointcxx . . $ Global/checkMountPoint(7dc6c9a0b6a7270f).(sourcecxx . . $ QString#QString(132dd6869045752b).)); |
| 1740 |
|
| 1741 |
//Does the source directory exist and it is not empty OR we're using remote source?? |
| 1742 |
if ( ((sourceDir.existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) && !(SourceIsEmpty)) || (remoteSource) ) |
| 1743 |
{ |
| 1744 |
//Does the destination directory exist and it is not empty ?? -> [ Ok ] |
| 1745 |
if ( ((destDir.existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) && !(DestIsEmpty)) || (remoteDest) ) |
| 1746 |
{ |
| 1747 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"okay"cxx . . $ QString#QString(85c52e162fed56f9).,"backup"cxx . . $ QString#QString(85c52e162fed56f9).,"okay"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1748 |
|
| 1749 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetOKcxx . . $ operation#SetOK(b45ddcbc8423892c).(true); |
| 1750 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1751 |
} |
| 1752 |
else //The destination directory does not exist or it is empty |
| 1753 |
{ |
| 1754 |
// A partition is NOT mounted under /media or /mnt -> [WARNING ] |
| 1755 |
if (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDestMountedcxx . . $ operation#GetDestMounted(50ce9a9e25b4a850).()) |
| 1756 |
{ |
| 1757 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"warning"cxx . . $ QString#QString(85c52e162fed56f9).,"backup"cxx . . $ QString#QString(85c52e162fed56f9).,"dest-not-mounted"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1758 |
if (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) |
| 1759 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation if the "bypass WARNING" OPTION is disabled |
| 1760 |
else |
| 1761 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1762 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetWARNINGcxx . . $ operation#SetWARNING(b45ddcbc8423892c).(true); |
| 1763 |
askcxx . . $ Global/ask.=true; //ask the user if he/she wants to continue |
| 1764 |
} |
| 1765 |
else // partition is mounted -> [ CRITICAL ] |
| 1766 |
{ |
| 1767 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"critical"cxx . . $ QString#QString(85c52e162fed56f9).,"backup"cxx . . $ QString#QString(85c52e162fed56f9).,"dest-not-exist"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1768 |
|
| 1769 |
askcxx . . $ Global/ask.=true; //ask the user if he/she wants to continue |
| 1770 |
|
| 1771 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetCRITICALcxx . . $ operation#SetCRITICAL(b45ddcbc8423892c).(true); |
| 1772 |
|
| 1773 |
if (SkipCriticalcxx . . $ Global/SkipCritical.) // if a --skip-critical is given as argument |
| 1774 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation |
| 1775 |
else |
| 1776 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1777 |
} |
| 1778 |
} |
| 1779 |
} |
| 1780 |
else //The source directory does not exist or it is empty -> [WARNING ] |
| 1781 |
{ |
| 1782 |
setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476).(sourcecxx . . $ QString#QString(132dd6869045752b).,destcxx . . $ QString#QString(132dd6869045752b).,remoteSource,remoteDest,"warning"cxx . . $ QString#QString(85c52e162fed56f9).,"backup"cxx . . $ QString#QString(85c52e162fed56f9).,"source-not-exist"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1783 |
|
| 1784 |
if (!Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) |
| 1785 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetPerformcxx . . $ operation#SetPerform(b45ddcbc8423892c).(false); //don't perform this operation if the "bypass WARNING" OPTION is disabled |
| 1786 |
else |
| 1787 |
NothingToDocxx . . $ Global/NothingToDo. = false; |
| 1788 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> SetWARNINGcxx . . $ operation#SetWARNING(b45ddcbc8423892c).(true); |
| 1789 |
askcxx . . $ Global/ask.=true; //ask the user if he/she wants to continue |
| 1790 |
} |
| 1791 |
|
| 1792 |
} |
| 1793 |
|
| 1794 |
// /AppendArguments ======================================================================================================= |
| 1795 |
//function to append "arguments" object at a given operation according to the fields of the modify window |
| 1796 |
QStringListcxx . . $ QStringList# AppendArgumentscxx . . $ Global/AppendArguments(20f639a182fdbea2).(operationcxx . . $ operation# *operationToAppend) |
| 1797 |
{ |
| 1798 |
QStringListcxx . . $ QStringList# argumentscxx . . $ QStringList#QStringList(ced63f7c635d850d).; int count; |
| 1799 |
int operationToAppendCurrentSnaps = operationToAppend -> GetSnapshotsListSizecxx . . $ operation#GetSnapshotsListSize(455f465bc33b4cdf).(); // this is the current number of snapshots |
| 1800 |
int operationToAppendMaxSnaps = operationToAppend -> GetKeepSnapshotscxx . . $ operation#GetKeepSnapshots(455f465bc33b4cdf).(); // this is the max number of snapshots to keep |
| 1801 |
|
| 1802 |
arguments <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "-h"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--progress"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "--stats"cxx . . $ QString#QString(85c52e162fed56f9).; //These are the standard arguments used by rsync |
| 1803 |
|
| 1804 |
//add rsync arguments -------------------------------------------------------------------------------------------------- |
| 1805 |
if (operationToAppend -> GetOptionsRecursecxx . . $ operation#GetOptionsRecurse(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-r"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1806 |
if (operationToAppend -> GetOptionsFATntfscxx . . $ operation#GetOptionsFATntfs(50ce9a9e25b4a850).()) |
| 1807 |
{ |
| 1808 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-t"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1809 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--modify-window=1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1810 |
} |
| 1811 |
else |
| 1812 |
{ |
| 1813 |
if (operationToAppend -> GetOptionsOwnershipcxx . . $ operation#GetOptionsOwnership(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-tgo"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1814 |
if ((!WINrunningcxx . . $ Global/WINrunning.) && (operationToAppend -> GetOptionsPermissionscxx . . $ operation#GetOptionsPermissions(50ce9a9e25b4a850).())) |
| 1815 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-p"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1816 |
if ((WINrunningcxx . . $ Global/WINrunning.) && (operationToAppend -> GetOptionsPermissionscxx . . $ operation#GetOptionsPermissions(50ce9a9e25b4a850).())) // Windows ONLY: Do not use -p but --backup-nt-streams and --source-filter-tmp= |
| 1817 |
{ |
| 1818 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--source-filter-tmp="+cxx . . $ operator+(c75c3ae4eb9af1a8).operationToAppend->GetTempPathcxx . . $ operation#GetTempPath(6ef7b6c27b00b43d).()); |
| 1819 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--backup-nt-streams"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1820 |
} |
| 1821 |
} |
| 1822 |
if (WINrunningcxx . . $ Global/WINrunning.) |
| 1823 |
{ |
| 1824 |
/* disable vss until... |
| 1825 |
if (operationToAppend -> GetOptionsVss()) arguments.append("--vss"); // this option is only visbile at windows */ |
| 1826 |
if (operationToAppend -> GetOptionsRestorentcxx . . $ operation#GetOptionsRestorent(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--restore-nt-streams"cxx . . $ QString#QString(85c52e162fed56f9).); // this option is only visbile at windows |
| 1827 |
} |
| 1828 |
if (operationToAppend -> GetOptionsSymlinkscxx . . $ operation#GetOptionsSymlinks(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-l"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1829 |
if (operationToAppend -> GetOptionsDevicescxx . . $ operation#GetOptionsDevices(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-D"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1830 |
if (operationToAppend -> GetOptionsCVScxx . . $ operation#GetOptionsCVS(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-C"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1831 |
if (operationToAppend -> GetOptionsHardLinkscxx . . $ operation#GetOptionsHardLinks(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-H"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1832 |
if (operationToAppend -> GetOptionsSupercxx . . $ operation#GetOptionsSuper(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--super"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1833 |
if (operationToAppend -> GetOptionsNumericIDscxx . . $ operation#GetOptionsNumericIDs(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--numeric-ids"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1834 |
if (operationToAppend -> GetOptionsUpdatecxx . . $ operation#GetOptionsUpdate(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--update"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1835 |
if (operationToAppend -> GetOptionsDeletecxx . . $ operation#GetOptionsDelete(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--delete-after"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1836 |
count =0; |
| 1837 |
while ( count < (operationToAppend -> GetOptionsListSizecxx . . $ operation#GetOptionsListSize(455f465bc33b4cdf).()) ) |
| 1838 |
{ |
| 1839 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).(operationToAppend -> GetOptionsListItemcxx . . $ operation#GetOptionsListItem(3f3c3d0e9c0eb37f).(count)); |
| 1840 |
count++; |
| 1841 |
} |
| 1842 |
|
| 1843 |
bool disableExclude=false; |
| 1844 |
//add included items------------------------------------------------------------------------------ |
| 1845 |
if (operationToAppend -> GetIncludecxx . . $ operation#GetInclude(50ce9a9e25b4a850).()) |
| 1846 |
{ |
| 1847 |
// from file |
| 1848 |
if ( (operationToAppend -> GetIncludeFromFilecxx . . $ operation#GetIncludeFromFile(50ce9a9e25b4a850).()) && !(operationToAppend -> GetIncludeFilecxx . . $ operation#GetIncludeFile(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."") ) |
| 1849 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--include-from=" +cxx . . $ operator+(c75c3ae4eb9af1a8). (operationToAppend -> GetIncludeFilecxx . . $ operation#GetIncludeFile(6ef7b6c27b00b43d).()) ); |
| 1850 |
// from "only include" tab |
| 1851 |
count =0; |
| 1852 |
while ( count < (operationToAppend -> GetIncludeListSizecxx . . $ operation#GetIncludeListSize(455f465bc33b4cdf).()) ) |
| 1853 |
{ |
| 1854 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--include=" +cxx . . $ operator+(c75c3ae4eb9af1a8). (operationToAppend -> GetIncludeListItemcxx . . $ operation#GetIncludeListItem(3f3c3d0e9c0eb37f).(count)) ); |
| 1855 |
count++; |
| 1856 |
} |
| 1857 |
// if "Only Include" mode is used add the following |
| 1858 |
if (!operationToAppend -> GetIncludeModeNormalcxx . . $ operation#GetIncludeModeNormal(50ce9a9e25b4a850).()) |
| 1859 |
{ |
| 1860 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--include=*/"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1861 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=*"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1862 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--prune-empty-dirs"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1863 |
disableExclude=true; |
| 1864 |
} |
| 1865 |
} |
| 1866 |
|
| 1867 |
//add excluded items (unless "only include" is used and the include list is not empty)-------------------------------------------------------------- |
| 1868 |
if ( (operationToAppend -> GetExcludecxx . . $ operation#GetExclude(50ce9a9e25b4a850).()) && (!disableExclude) ) |
| 1869 |
{ |
| 1870 |
if (operationToAppend -> GetOptionsDeletecxx . . $ operation#GetOptionsDelete(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--delete-excluded"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1871 |
if ( (operationToAppend -> GetExcludeFromFilecxx . . $ operation#GetExcludeFromFile(50ce9a9e25b4a850).()) && !(operationToAppend -> GetExcludeFilecxx . . $ operation#GetExcludeFile(6ef7b6c27b00b43d).()==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."") ) |
| 1872 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude-from=" +cxx . . $ operator+(c75c3ae4eb9af1a8). (operationToAppend -> GetExcludeFilecxx . . $ operation#GetExcludeFile(6ef7b6c27b00b43d).()) ); |
| 1873 |
if (operationToAppend -> GetExcludeTempcxx . . $ operation#GetExcludeTemp(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=**/*tmp*/"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1874 |
if (operationToAppend -> GetExcludeCachecxx . . $ operation#GetExcludeCache(50ce9a9e25b4a850).()){ arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=**/*cache*/"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1875 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=**/*Cache*/"cxx . . $ QString#QString(85c52e162fed56f9).);} |
| 1876 |
if (operationToAppend -> GetExcludeBackupcxx . . $ operation#GetExcludeBackup(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=**~"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1877 |
if (operationToAppend -> GetExcludeMountcxx . . $ operation#GetExcludeMount(50ce9a9e25b4a850).()){ arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=/mnt/*/**"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1878 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=/media/*/**"cxx . . $ QString#QString(85c52e162fed56f9).);} |
| 1879 |
if (operationToAppend -> GetExcludeLostFoundcxx . . $ operation#GetExcludeLostFound(50ce9a9e25b4a850).()) arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=**/lost+found*/"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1880 |
if (operationToAppend -> GetExcludeSystemcxx . . $ operation#GetExcludeSystem(50ce9a9e25b4a850).()){ arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=/var/run/**"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1881 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=/run/**"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1882 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=/proc/**"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1883 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=/dev/**"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1884 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=/sys/**"cxx . . $ QString#QString(85c52e162fed56f9).);} |
| 1885 |
if (operationToAppend -> GetExcludeTrashcxx . . $ operation#GetExcludeTrash(50ce9a9e25b4a850).()){ arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=**/*Trash*/"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1886 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=**/*trash*/"cxx . . $ QString#QString(85c52e162fed56f9).);} |
| 1887 |
if (operationToAppend -> GetExcludeGVFScxx . . $ operation#GetExcludeGVFS(50ce9a9e25b4a850).()) { arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=**/.gvfs/"cxx . . $ QString#QString(85c52e162fed56f9).);} |
| 1888 |
|
| 1889 |
//also read the custom exclude list |
| 1890 |
count =0; |
| 1891 |
while ( count < (operationToAppend -> GetExcludeListSizecxx . . $ operation#GetExcludeListSize(455f465bc33b4cdf).()) ) |
| 1892 |
{ |
| 1893 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--exclude=" +cxx . . $ operator+(c75c3ae4eb9af1a8). (operationToAppend -> GetExcludeListItemcxx . . $ operation#GetExcludeListItem(3f3c3d0e9c0eb37f).(count)) ); |
| 1894 |
count++; |
| 1895 |
} |
| 1896 |
} |
| 1897 |
|
| 1898 |
//set temp strings sourceString & destString accordingly if groupbox "remote" is checked-------------------------------------------- |
| 1899 |
//also add -e ssh if "ssh" is checked & --password-file=FILE |
| 1900 |
// WARNING: if you change something here, also change it in executenow.cpp when removing older snapshopt data |
| 1901 |
QStringcxx . . $ QString# sourceStringcxx . . $ QString#QString(ced63f7c635d850d)., destStringcxx . . $ QString#QString(ced63f7c635d850d)., remoteHost = ""cxx . . $ QString#QString(85c52e162fed56f9).; //temp strings |
| 1902 |
if (operationToAppend -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).()) |
| 1903 |
{ |
| 1904 |
//append --protect-args because trouble is caused with spaces |
| 1905 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--protect-args"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 1906 |
|
| 1907 |
if (operationToAppend -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") //append remote user@ if applicable to temp string |
| 1908 |
remoteHost.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(operationToAppend -> GetRemoteUsercxx . . $ operation#GetRemoteUser(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "@"); |
| 1909 |
|
| 1910 |
if (operationToAppend -> GetRemoteModulecxx . . $ operation#GetRemoteModule(50ce9a9e25b4a850).()) //append remote host: (or :: if it's a module) to temp string |
| 1911 |
{ |
| 1912 |
remoteHost.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(operationToAppend -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "::"); |
| 1913 |
//add --password-file=FILE if password file lineEdit is not empty |
| 1914 |
if (operationToAppend -> GetRemotePasswordcxx . . $ operation#GetRemotePassword(6ef7b6c27b00b43d).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") |
| 1915 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--password-file=" +cxx . . $ operator+(c75c3ae4eb9af1a8). (operationToAppend -> GetRemotePasswordcxx . . $ operation#GetRemotePassword(6ef7b6c27b00b43d).()) ); |
| 1916 |
} |
| 1917 |
else |
| 1918 |
remoteHost.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(operationToAppend -> GetRemoteHostcxx . . $ operation#GetRemoteHost(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). ":"); |
| 1919 |
|
| 1920 |
if (operationToAppend -> GetRemoteDestinationcxx . . $ operation#GetRemoteDestination(50ce9a9e25b4a850).()) //set temp source & destination strings |
| 1921 |
{ |
| 1922 |
remoteHost.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(operationToAppend -> GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).()); |
| 1923 |
destString =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). remoteHost; |
| 1924 |
|
| 1925 |
sourceString =cxx . . $ QString#`operator=`(4f35bf974e7f8568). operationToAppend -> GetSourcecxx . . $ operation#GetSource(6ef7b6c27b00b43d).(); |
| 1926 |
if (WINrunningcxx . . $ Global/WINrunning.) // Bruce patch condition for winpaths~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1927 |
{ |
| 1928 |
// Commented after Juan's patch |
| 1929 |
//destString = fixWinPathForRsync(destString, true); //fix destination (which is remote) |
| 1930 |
//sourceString = fixWinPathForRsync(sourceString, false); //fix source (which is local) |
| 1931 |
} |
| 1932 |
} |
| 1933 |
else |
| 1934 |
{ |
| 1935 |
remoteHost.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(operationToAppend -> GetSourcecxx . . $ operation#GetSource(6ef7b6c27b00b43d).()); |
| 1936 |
sourceString =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). remoteHost; |
| 1937 |
|
| 1938 |
destString =cxx . . $ QString#`operator=`(4f35bf974e7f8568). operationToAppend -> GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).(); |
| 1939 |
if (WINrunningcxx . . $ Global/WINrunning.) // Bruce patch condition for winpaths~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1940 |
{ |
| 1941 |
// Commented after Juan's patch |
| 1942 |
//sourceString = fixWinPathForRsync(sourceString, true); //fix source (which is remote) |
| 1943 |
//destString = fixWinPathForRsync(destString, false); //fix destination (which is local) |
| 1944 |
} |
| 1945 |
} |
| 1946 |
|
| 1947 |
//add argument for ssh if the checkbox is checked & ssh keyfile |
| 1948 |
if (operationToAppend -> GetRemoteSSHcxx . . $ operation#GetRemoteSSH(50ce9a9e25b4a850).()) |
| 1949 |
{ |
| 1950 |
QStringcxx . . $ QString# sshOptions=(Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRemoteSSHOptionscxx . . $ operation#GetRemoteSSHOptions(6ef7b6c27b00b43d).()).replacecxx . . $ QString#replace(192e628656427d1c).("\""cxx . . $ QString#QString(85c52e162fed56f9).,"\\\""cxx . . $ QString#QString(85c52e162fed56f9).)+cxx . . $ operator+(3d22f08efddf8107)." -o \"StrictHostKeyChecking no\" -o \"PasswordAuthentication no\" "; |
| 1951 |
if (WINrunningcxx . . $ Global/WINrunning.) |
| 1952 |
{ |
| 1953 |
if (operationToAppend -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") |
| 1954 |
if ( operationToAppend -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() != 0 ) |
| 1955 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-e \""+cxx . . $ operator+(c75c3ae4eb9af1a8).operationToAppend -> GetSshCommandcxx . . $ operation#GetSshCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" "+cxx . . $ operator+(fab9b4f80031f353).sshOptions+cxx . . $ operator+(3d22f08efddf8107)." -i \"" +cxx . . $ operator+(fab9b4f80031f353). operationToAppend -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "\" -p " +cxx . . $ operator+(fab9b4f80031f353). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).( operationToAppend -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).()) ); |
| 1956 |
else |
| 1957 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-e \""+cxx . . $ operator+(c75c3ae4eb9af1a8).operationToAppend -> GetSshCommandcxx . . $ operation#GetSshCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" "+cxx . . $ operator+(fab9b4f80031f353).sshOptions+cxx . . $ operator+(3d22f08efddf8107)." -i \"" +cxx . . $ operator+(fab9b4f80031f353). operationToAppend -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "\""); |
| 1958 |
else |
| 1959 |
if ( operationToAppend -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() != 0 ) |
| 1960 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-e \""+cxx . . $ operator+(c75c3ae4eb9af1a8).operationToAppend -> GetSshCommandcxx . . $ operation#GetSshCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" "+cxx . . $ operator+(fab9b4f80031f353).sshOptions+cxx . . $ operator+(3d22f08efddf8107)." -p " +cxx . . $ operator+(fab9b4f80031f353). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).( operationToAppend -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).()) ); |
| 1961 |
else |
| 1962 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-e \""+cxx . . $ operator+(c75c3ae4eb9af1a8).operationToAppend -> GetSshCommandcxx . . $ operation#GetSshCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" "+cxx . . $ operator+(fab9b4f80031f353).sshOptions+cxx . . $ operator+(3d22f08efddf8107).""); |
| 1963 |
} |
| 1964 |
else |
| 1965 |
{ |
| 1966 |
if (operationToAppend -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") |
| 1967 |
{ |
| 1968 |
//arguments.append("-e \"ssh -i " + uiM.lineEdit_sshPassword -> text() + "\""); |
| 1969 |
|
| 1970 |
// NOTE: character ' is not used in linux due to QT comptibility issues. It works just fine without it. It is added at the "validate" dialog though for real CLI command pasting purposes!! NOTE |
| 1971 |
|
| 1972 |
if (operationToAppend -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() != 0) |
| 1973 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-e "+cxx . . $ operator+(c75c3ae4eb9af1a8).sshCommandPathcxx . . $ Global/sshCommandPath.+cxx . . $ operator+(3d22f08efddf8107)." -i " +cxx . . $ operator+(fab9b4f80031f353). operationToAppend -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). " -p " +cxx . . $ operator+(fab9b4f80031f353). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).(operationToAppend -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).()) ); |
| 1974 |
else |
| 1975 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-e "+cxx . . $ operator+(c75c3ae4eb9af1a8).sshCommandPathcxx . . $ Global/sshCommandPath.+cxx . . $ operator+(3d22f08efddf8107)." -i " +cxx . . $ operator+(fab9b4f80031f353). operationToAppend -> GetRemoteSSHPasswordcxx . . $ operation#GetRemoteSSHPassword(6ef7b6c27b00b43d).()); |
| 1976 |
} |
| 1977 |
else |
| 1978 |
{ |
| 1979 |
if (operationToAppend -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).() != 0) |
| 1980 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-e "+cxx . . $ operator+(c75c3ae4eb9af1a8).sshCommandPathcxx . . $ Global/sshCommandPath.+cxx . . $ operator+(3d22f08efddf8107)." -p " +cxx . . $ operator+(fab9b4f80031f353). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).(operationToAppend -> GetRemoteSSHPortcxx . . $ operation#GetRemoteSSHPort(455f465bc33b4cdf).()) ); |
| 1981 |
else |
| 1982 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("-e "+cxx . . $ operator+(c75c3ae4eb9af1a8).sshCommandPathcxx . . $ Global/sshCommandPath.); |
| 1983 |
} |
| 1984 |
} |
| 1985 |
} |
| 1986 |
} |
| 1987 |
else //Operate locally---------------------------------------------------------------------------------------- |
| 1988 |
{ |
| 1989 |
sourceString =cxx . . $ QString#`operator=`(4f35bf974e7f8568). operationToAppend -> GetSourcecxx . . $ operation#GetSource(6ef7b6c27b00b43d).(); |
| 1990 |
destString =cxx . . $ QString#`operator=`(4f35bf974e7f8568). operationToAppend -> GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).(); |
| 1991 |
|
| 1992 |
// Bruce patch condition for winpaths~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1993 |
// convert path to cygwin paths, change any \ to / :) |
| 1994 |
if (WINrunningcxx . . $ Global/WINrunning.) |
| 1995 |
{ |
| 1996 |
// Commented after Juan's patch |
| 1997 |
//sourceString = fixWinPathForRsync(sourceString, false); //fix local source |
| 1998 |
//destString = fixWinPathForRsync(destString, false); //fix local destination |
| 1999 |
} |
| 2000 |
// Bruce patch end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~` |
| 2001 |
} |
| 2002 |
//add snapshot arguments - do not perform this if the function is called when "validate" button pressed |
| 2003 |
//perform this if more than 1 snapshot is already made |
| 2004 |
if ( (operationToAppendCurrentSnaps > 1) && (!validationcxx . . $ Global/validation.) ) |
| 2005 |
{ |
| 2006 |
//fix source and dest for snapshots directory |
| 2007 |
QStringcxx . . $ QString# snapSource=sourceStringcxx . . $ QString#QString(132dd6869045752b).; QStringcxx . . $ QString# snapDest=destStringcxx . . $ QString#QString(132dd6869045752b).; //temp variables |
| 2008 |
|
| 2009 |
//if ( (snapDest.contains(":")) && (!notXnixRunning))// this is normal for a remote directory (not for OS/2 or win: eg c:\) |
| 2010 |
if ( ((snapDest.containscxx . . $ QString#contains(8cce4688c16f48f3).(":"cxx . . $ QString#QString(85c52e162fed56f9).)) && (!notXnixRunningcxx . . $ Global/notXnixRunning.)) || (snapDest.containscxx . . $ QString#contains(8cce4688c16f48f3).(":"cxx . . $ QString#QString(85c52e162fed56f9).) && WINrunningcxx . . $ Global/WINrunning. && operationToAppend -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).()) )// this is normal for a remote directory |
| 2011 |
{ |
| 2012 |
snapDest =cxx . . $ QString#`operator=`(4f35bf974e7f8568). snapDest.rightcxx . . $ QString#right(3f3c3d0e9c0eb37f).(snapDest.sizecxx . . $ QString#size(455f465bc33b4cdf).()-snapDest.lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(":"cxx . . $ QString#QString(85c52e162fed56f9).)-1); //this is the remote dest dir without the remote pc |
| 2013 |
snapDest =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 2014 |
} |
| 2015 |
|
| 2016 |
if (!snapSource.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) // this means task is of type "backup dir by name" |
| 2017 |
{ |
| 2018 |
QStringcxx . . $ QString# sourceLast = snapSourcecxx . . $ QString#QString(132dd6869045752b).; |
| 2019 |
sourceLast =cxx . . $ QString#`operator=`(4f35bf974e7f8568). calculateLastPathcxx . . $ Global/calculateLastPath(f7f320d754b8fd09).(sourceLastcxx . . $ QString#QString(132dd6869045752b).); // This is the lowest dir of the source |
| 2020 |
|
| 2021 |
if (WINrunningcxx . . $ Global/WINrunning. && operationToAppend -> GetRemotecxx . . $ operation#GetRemote(50ce9a9e25b4a850).()) |
| 2022 |
sourceLast.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(XnixSLASHcxx . . $ Global/XnixSLASH.); |
| 2023 |
else |
| 2024 |
sourceLast.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 2025 |
|
| 2026 |
snapDest.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(sourceLast); |
| 2027 |
} |
| 2028 |
|
| 2029 |
QStringcxx . . $ QString# prevSnapDateTime = operationToAppend -> GetSnapshotsListItemcxx . . $ operation#GetSnapshotsListItem(3f3c3d0e9c0eb37f).(operationToAppendCurrentSnaps-2); |
| 2030 |
|
| 2031 |
QStringcxx . . $ QString# prevSnapDir = snapDest +cxx . . $ operator+(fab9b4f80031f353). snapDefaultDircxx . . $ Global/snapDefaultDir. +cxx . . $ operator+(fab9b4f80031f353). prevSnapDateTime +cxx . . $ operator+(fab9b4f80031f353). SLASHcxx . . $ Global/SLASH.; // This is where the deleted files (== previous snapshot) will go |
| 2032 |
if (WINrunningcxx . . $ Global/WINrunning.) // windows |
| 2033 |
prevSnapDir.replacecxx . . $ QString#replace(192e628656427d1c).(SLASHcxx . . $ Global/SLASH.,XnixSLASHcxx . . $ Global/XnixSLASH.); |
| 2034 |
else if (notXnixRunningcxx . . $ Global/notXnixRunning.) //OS2 |
| 2035 |
prevSnapDir.replacecxx . . $ QString#replace(192e628656427d1c).("/"cxx . . $ QString#QString(85c52e162fed56f9).,SLASHcxx . . $ Global/SLASH.); |
| 2036 |
|
| 2037 |
// add arguments to backup files to be be deleted inside the snapshot direcotry |
| 2038 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--backup"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 2039 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--backup-dir=" +cxx . . $ operator+(c75c3ae4eb9af1a8). prevSnapDir); |
| 2040 |
} |
| 2041 |
|
| 2042 |
// protect the snapshots directories from being deleted. Do nothing for older snapshots dirs |
| 2043 |
// This is outside the condition because the snapDefaultDir also contains the backup of the profile + logs + snaps |
| 2044 |
if (!validationcxx . . $ Global/validation.) |
| 2045 |
{ |
| 2046 |
if (WINrunningcxx . . $ Global/WINrunning.) |
| 2047 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--filter=protect " +cxx . . $ operator+(c75c3ae4eb9af1a8). snapDefaultDircxx . . $ Global/snapDefaultDir..replacecxx . . $ QString#replace(192e628656427d1c).(SLASHcxx . . $ Global/SLASH.,XnixSLASHcxx . . $ Global/XnixSLASH.)); |
| 2048 |
else // linux & OS2 |
| 2049 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--filter=protect " +cxx . . $ operator+(c75c3ae4eb9af1a8). snapDefaultDircxx . . $ Global/snapDefaultDir.); |
| 2050 |
} |
| 2051 |
|
| 2052 |
// keep snapshot changes files only for backup task types, not sync |
| 2053 |
if ( (!validationcxx . . $ Global/validation.) && (operationToAppendMaxSnaps > 1) ) |
| 2054 |
{ |
| 2055 |
//Define a file to log new files transfered so that to exclude these when restoring previous snapshots |
| 2056 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--log-file=" +cxx . . $ operator+(c75c3ae4eb9af1a8). snapchangesfilenamecxx . . $ Global/snapchangesfilename.); |
| 2057 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).("--log-file-format=" +cxx . . $ operator+(c75c3ae4eb9af1a8). snapChangesStringcxx . . $ Global/snapChangesString.); |
| 2058 |
} |
| 2059 |
|
| 2060 |
//set source & destination according to sourceString & destString --------------------------------------------------------- |
| 2061 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).(sourceString); |
| 2062 |
arguments.appendcxx . . $ QList#append(77d9f17553126ecb).(destString); |
| 2063 |
|
| 2064 |
return arguments; |
| 2065 |
} |
| 2066 |
|
| 2067 |
// calculateLastPath ===================================================================================================================================== |
| 2068 |
// Calculates the last part of a path eg path=user@host:destination/path/here/ -> returns "here" |
| 2069 |
QStringcxx . . $ QString# calculateLastPathcxx . . $ Global/calculateLastPath(f7f320d754b8fd09).(QStringcxx . . $ QString# origPath) |
| 2070 |
{ |
| 2071 |
QStringcxx . . $ QString# returnPATH = origPathcxx . . $ QString#QString(132dd6869045752b).; |
| 2072 |
|
| 2073 |
if ( returnPATH.containscxx . . $ QString#contains(8cce4688c16f48f3).(":"cxx . . $ QString#QString(85c52e162fed56f9).) ) // this is a remote directory eg user@host:directory/path |
| 2074 |
returnPATH =cxx . . $ QString#`operator=`(4f35bf974e7f8568). returnPATH.rightcxx . . $ QString#right(3f3c3d0e9c0eb37f).(returnPATH.sizecxx . . $ QString#size(455f465bc33b4cdf).()-returnPATH.lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(":"cxx . . $ QString#QString(85c52e162fed56f9).)-1); //this is the remote returnPATH dir without the remote pc ([user@]host:) |
| 2075 |
|
| 2076 |
if (returnPATH.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) |
| 2077 |
returnPATH.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 2078 |
|
| 2079 |
if (returnPATH.containscxx . . $ QString#contains(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) // this is normal for a directory unless it is remote |
| 2080 |
returnPATH =cxx . . $ QString#`operator=`(4f35bf974e7f8568). returnPATH.rightcxx . . $ QString#right(3f3c3d0e9c0eb37f).(returnPATH.sizecxx . . $ QString#size(455f465bc33b4cdf).()-returnPATH.lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(SLASHcxx . . $ Global/SLASH.)-1); //this is the lowest dir of returnPATH |
| 2081 |
|
| 2082 |
return returnPATHcxx . . $ QString#QString(28715ad661ad3cec).; |
| 2083 |
} |
| 2084 |
// fixWinPathForRsync ===================================================================================================================================== |
| 2085 |
// Fixes a windows path for rsync use |
| 2086 |
QStringcxx . . $ QString# fixWinPathForRsynccxx . . $ Global/fixWinPathForRsync(afa4754008a97e3f).(QStringcxx . . $ QString# fixTHIS, bool remotePATH) |
| 2087 |
{ |
| 2088 |
QStringcxx . . $ QString# returnPATH = fixTHIScxx . . $ QString#QString(132dd6869045752b).; |
| 2089 |
QCharcxx . . $ QChar# drive = fixTHIS[cxx . . $ QString#`operator[]`(57436120916eb52c).0]; |
| 2090 |
drive =cxx . . $ QChar#`operator=`(81d7e7f12920c16). drive.toLowercxx . . $ QChar#toLower(e5ddf3948a40da3f).(); // This is the windows drive letter eg C ..as in C:\ :P |
| 2091 |
|
| 2092 |
if (remotePATH) |
| 2093 |
{ |
| 2094 |
returnPATH =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). returnPATH.replacecxx . . $ QString#replace(192e628656427d1c).("\\"cxx . . $ QString#QString(85c52e162fed56f9).,"/"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 2095 |
if (returnPATH.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).("//"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 2096 |
returnPATH.chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 2097 |
} |
| 2098 |
else |
| 2099 |
{ |
| 2100 |
if (fixTHIS.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("\\\\"cxx . . $ QString#QString(85c52e162fed56f9).)) // this is probably a remote share |
| 2101 |
returnPATH =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). returnPATH.replacecxx . . $ QString#replace(192e628656427d1c).("\\"cxx . . $ QString#QString(85c52e162fed56f9).,"/"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 2102 |
else |
| 2103 |
returnPATH =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). returnPATH.replacecxx . . $ QString#replace(2ea42a074cd0ed6b).(0,3,"/cygdrive/"+cxx . . $ operator+(c75c3ae4eb9af1a8).QStringcxx . . $ QString#QString(f2c90172ce699d92).(drive)+cxx . . $ operator+(3d22f08efddf8107)."/").replacecxx . . $ QString#replace(192e628656427d1c).("\\"cxx . . $ QString#QString(85c52e162fed56f9).,"/"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 2104 |
} |
| 2105 |
|
| 2106 |
return returnPATHcxx . . $ QString#QString(28715ad661ad3cec).; |
| 2107 |
} |
| 2108 |
|
| 2109 |
// logFileUpdate ===================================================================================================================================== |
| 2110 |
// Updates the current logfile with some string |
| 2111 |
QStringcxx . . $ QString# logFileUpdatecxx . . $ Global/logFileUpdate(5faf0f1f209776e3).(QStringcxx . . $ QString# appendTYPE, QStringcxx . . $ QString# appendTHIS, int currentPrePost) |
| 2112 |
{ |
| 2113 |
QTextStreamcxx . . $ QTextStream# outcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&logfilecxx . . $ Global/logfile.); |
| 2114 |
QStringcxx . . $ QString# dirA = Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSourcecxx . . $ operation#GetSource(6ef7b6c27b00b43d).(); |
| 2115 |
QStringcxx . . $ QString# dirB = Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDestinationcxx . . $ operation#GetDestination(6ef7b6c27b00b43d).(); |
| 2116 |
|
| 2117 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "pre-starting") |
| 2118 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n<font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2119 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("pre-task execution of command","Full phrase: pre-task execution of command: <COMMAND> starting")+cxx . . $ operator+(3d22f08efddf8107). |
| 2120 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteBeforeListItemcxx . . $ operation#GetExecuteBeforeListItem(3f3c3d0e9c0eb37f).(currentPrePost) +cxx . . $ operator+(3d22f08efddf8107). |
| 2121 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("starting","Full phrase: pre-task execution of command: <COMMAND> starting")+cxx . . $ operator+(3d22f08efddf8107)."</font>\n"; |
| 2122 |
|
| 2123 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "repeat-on-fail") |
| 2124 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n<font color=cyan> -----| " +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2125 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Command re-run due to failure","This means that a specific command is run for once more because it failed the first time")+cxx . . $ operator+(3d22f08efddf8107). |
| 2126 |
" |-----</font>\n"; |
| 2127 |
|
| 2128 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "post-starting") |
| 2129 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n<font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2130 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("post-task execution of command","Full phrase: post-task execution of command: <COMMAND> starting")+cxx . . $ operator+(3d22f08efddf8107). |
| 2131 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteAfterListItemcxx . . $ operation#GetExecuteAfterListItem(3f3c3d0e9c0eb37f).(currentPrePost) +cxx . . $ operator+(3d22f08efddf8107). |
| 2132 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("starting","Full phrase: post-task execution of command: <COMMAND> starting")+cxx . . $ operator+(3d22f08efddf8107)."</font>\n"; |
| 2133 |
|
| 2134 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "rsync-starting-backup") |
| 2135 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n=====================================<br><font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2136 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("execution of task","Full phrase: execution of task: <TASKNAME> starting")+cxx . . $ operator+(3d22f08efddf8107). |
| 2137 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). |
| 2138 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("starting","Full phrase: execution of task: <TASKNAME> starting")+cxx . . $ operator+(3d22f08efddf8107)."</font><br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 2139 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Source","Full phrase: source: <SOURCE_NAME")+cxx . . $ operator+(3d22f08efddf8107)." : <b><font color=blue>" +cxx . . $ operator+(fab9b4f80031f353). dirA +cxx . . $ operator+(3d22f08efddf8107). |
| 2140 |
"</font></b><br>"+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Destination","Full phrase: Destination: <DEST_NAME")+cxx . . $ operator+(3d22f08efddf8107). |
| 2141 |
" : <b><font color=blue>" +cxx . . $ operator+(fab9b4f80031f353). dirB +cxx . . $ operator+(3d22f08efddf8107). "</font></b>\n"; |
| 2142 |
|
| 2143 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "rsync-starting-syncAB") |
| 2144 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n=====================================<br><font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2145 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("execution of 1st part of task","Full phrase: execution of 1st part of task: <TASKNAME> starting")+cxx . . $ operator+(3d22f08efddf8107). |
| 2146 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). |
| 2147 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("starting","Full phrase: execution of 1st part of task: <TASKNAME> starting")+cxx . . $ operator+(3d22f08efddf8107)."</font><br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 2148 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Syncing","Full phrase: Syncing <DIR-A> to <DIR-B>")+cxx . . $ operator+(3d22f08efddf8107)." : <b><font color=blue>" +cxx . . $ operator+(fab9b4f80031f353). dirA +cxx . . $ operator+(3d22f08efddf8107). |
| 2149 |
"</font></b><br>"+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("to","Full phrase: Syncing <DIR-A> to <DIR-B>")+cxx . . $ operator+(3d22f08efddf8107). |
| 2150 |
" : <b><font color=blue>" +cxx . . $ operator+(fab9b4f80031f353). dirB +cxx . . $ operator+(3d22f08efddf8107). "</font></b>\n"; |
| 2151 |
|
| 2152 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "rsync-starting-syncBA") |
| 2153 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n=====================================<br><font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2154 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("execution of 2nd part of task","Full phrase: execution of 2nd part of task: <TASKNAME> starting")+cxx . . $ operator+(3d22f08efddf8107). |
| 2155 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). |
| 2156 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("starting","Full phrase: execution of 2nd part of task: <TASKNAME> starting")+cxx . . $ operator+(3d22f08efddf8107)."</font><br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 2157 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Syncing","Full phrase: Syncing <DIR-B> to <DIR-A>")+cxx . . $ operator+(3d22f08efddf8107)." : <b><font color=blue>" +cxx . . $ operator+(fab9b4f80031f353). dirB +cxx . . $ operator+(3d22f08efddf8107). |
| 2158 |
"</font></b><br>"+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("to","Full phrase: Syncing <DIR-B> to <DIR-A>")+cxx . . $ operator+(3d22f08efddf8107)." : <b><font color=blue>" +cxx . . $ operator+(fab9b4f80031f353). dirA +cxx . . $ operator+(3d22f08efddf8107). "</font></b>\n"; |
| 2159 |
|
| 2160 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "pre-finished") |
| 2161 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n<font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2162 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("pre-task execution of command","Full phrase: pre-task execution of COMMAND: <COMMANDNAME> finished")+cxx . . $ operator+(3d22f08efddf8107). |
| 2163 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteBeforeListItemcxx . . $ operation#GetExecuteBeforeListItem(3f3c3d0e9c0eb37f).(currentPrePost) +cxx . . $ operator+(3d22f08efddf8107). |
| 2164 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("finished","Full phrase: pre-task execution of COMMAND: <COMMANDNAME> finished")+cxx . . $ operator+(3d22f08efddf8107)."</font>\n"; |
| 2165 |
|
| 2166 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "post-finished") |
| 2167 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n<font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2168 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("post-task execution of command","Full phrase: post-task execution of COMMAND: <COMMANDNAME> finished")+cxx . . $ operator+(3d22f08efddf8107). |
| 2169 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetExecuteAfterListItemcxx . . $ operation#GetExecuteAfterListItem(3f3c3d0e9c0eb37f).(currentPrePost) +cxx . . $ operator+(3d22f08efddf8107). |
| 2170 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("finished","Full phrase: post-task execution of COMMAND: <COMMANDNAME> finished")+cxx . . $ operator+(3d22f08efddf8107)."</font><br>"; |
| 2171 |
|
| 2172 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "rsync-finished-sync1") |
| 2173 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n<font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2174 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("execution of 1st part of task","Full phrase: execution of 1st part of task: <TASKNAME> finished")+cxx . . $ operator+(3d22f08efddf8107). |
| 2175 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). |
| 2176 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("finished","Full phrase: execution of 1st part of task: <TASKNAME> finished") +cxx . . $ operator+(3d22f08efddf8107). |
| 2177 |
"</font><br>=====================================<br>"; |
| 2178 |
|
| 2179 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "rsync-finished") |
| 2180 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n<font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2181 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("execution of task","Full phrase: execution of task: <TASKNAME> finished")+cxx . . $ operator+(3d22f08efddf8107). |
| 2182 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). |
| 2183 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("finished","Full phrase: execution of task: <TASKNAME> finished") +cxx . . $ operator+(3d22f08efddf8107). |
| 2184 |
"</font>\n=====================================<br>"; |
| 2185 |
|
| 2186 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "pre-task-exited-with-error") |
| 2187 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n<font color=magenta>" +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2188 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("execution of task","Full phrase: execution of task: <TASKNAME> finished because of pre/post task command execution error")+cxx . . $ operator+(3d22f08efddf8107). |
| 2189 |
" : <b>" +cxx . . $ operator+(fab9b4f80031f353). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). |
| 2190 |
"</b>, "+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("finished because of pre/post task command execution error", |
| 2191 |
"Full phrase: execution of task: <TASKNAME> finished because of pre/post task command execution error") +cxx . . $ operator+(3d22f08efddf8107). |
| 2192 |
"</font>\n=====================================<br>"; |
| 2193 |
|
| 2194 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "process-reported-error") |
| 2195 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "<a name=\"error" +cxx . . $ operator+(c75c3ae4eb9af1a8). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).(errorsFoundcxx . . $ Global/errorsFound.) +cxx . . $ operator+(3d22f08efddf8107). "\"></a><font color=red>" +cxx . . $ operator+(fab9b4f80031f353). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("The process reported an error") +cxx . . $ operator+(3d22f08efddf8107). ": \"" +cxx . . $ operator+(fab9b4f80031f353). |
| 2196 |
appendTHIS +cxx . . $ operator+(3d22f08efddf8107). "\"</font>\n"; |
| 2197 |
|
| 2198 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "rsync-standard") |
| 2199 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). appendTHIS +cxx . . $ operator+(3d22f08efddf8107). "\n"; |
| 2200 |
|
| 2201 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "rsync-error") |
| 2202 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "<a name=\"error" +cxx . . $ operator+(c75c3ae4eb9af1a8). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).(errorsFoundcxx . . $ Global/errorsFound.) +cxx . . $ operator+(3d22f08efddf8107). "\"></a><font color=red>" +cxx . . $ operator+(fab9b4f80031f353). appendTHIS +cxx . . $ operator+(3d22f08efddf8107). "</font>\n"; |
| 2203 |
|
| 2204 |
if (appendTYPE ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "backup-profile") |
| 2205 |
appendTHIS =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). "\n<font color=cyan> -----| " +cxx . . $ operator+(c75c3ae4eb9af1a8). |
| 2206 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Backing-up profile, logfiles and snapshot data") +cxx . . $ operator+(fab9b4f80031f353). appendTHIS +cxx . . $ operator+(3d22f08efddf8107). " |-----</font><br>"; |
| 2207 |
|
| 2208 |
if (writeToLogcxx . . $ Global/writeToLog.) |
| 2209 |
{ |
| 2210 |
if (consolecxx . . $ Global/console.) //this is used for console compatibility with utf-8 |
| 2211 |
appendTHIS =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#QString(45672f3c6961a244).(appendTHIS.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()); |
| 2212 |
out <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). appendTHIS; |
| 2213 |
} |
| 2214 |
|
| 2215 |
return appendTHIScxx . . $ QString#QString(28715ad661ad3cec).; |
| 2216 |
} |
| 2217 |
|
| 2218 |
// checkMountPoint ===================================================================================================================================== |
| 2219 |
// Checks if the given path belongs to a mountpoint structure under /media or /mnt |
| 2220 |
// Will also return true for every path that does not start with /media or /mnt |
| 2221 |
bool checkMountPointcxx . . $ Global/checkMountPoint(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# dirPath) |
| 2222 |
{ |
| 2223 |
bool returnTHISplease = true; |
| 2224 |
|
| 2225 |
if ( (dirPath.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3). ("/media"cxx . . $ QString#QString(85c52e162fed56f9)., Qtcxx . . $ Qt/::CaseSensitivecxx . . $ Qt/CaseSensitive. )) || (dirPath.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3). ("/mnt"cxx . . $ QString#QString(85c52e162fed56f9)., Qtcxx . . $ Qt/::CaseSensitivecxx . . $ Qt/CaseSensitive. )) ) |
| 2226 |
{ |
| 2227 |
if (!dirPath.endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.)) |
| 2228 |
dirPath.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(SLASHcxx . . $ Global/SLASH.); |
| 2229 |
int ROOTcounts = dirPath.countcxx . . $ QString#count(38964227c2ffb4ec).(SLASHcxx . . $ Global/SLASH.) - 2; |
| 2230 |
|
| 2231 |
QStringcxx . . $ QString# mountpoint = dirPathcxx . . $ QString#QString(132dd6869045752b).; |
| 2232 |
|
| 2233 |
int count = 0; |
| 2234 |
while (count < ROOTcounts) // scan all directory depth one by one except /media or /mnt |
| 2235 |
{ |
| 2236 |
QProcesscxx . . $ QProcess# *mountProcess; mountProcess = new QProcesscxx . . $ QProcess#; |
| 2237 |
QStringListcxx . . $ QStringList# mArgscxx . . $ QStringList#QStringList(ced63f7c635d850d).; mArgs <<cxx . . $ QStringList#`operator<<`(85116071a693d053). mountpoint; |
| 2238 |
mountProcess -> startcxx . . $ QProcess#start(5e315ba9c811784d). ("mountpoint"cxx . . $ QString#QString(85c52e162fed56f9).,mArgs); mountProcess -> waitForFinishedcxx . . $ QProcess#waitForFinished(83c267b20bac841a).(); |
| 2239 |
|
| 2240 |
// The following means that the given path belongs to a directory structure under /media or /mnt that is a mountpoint |
| 2241 |
if (mountProcess -> exitCodecxx . . $ QProcess#exitCode(455f465bc33b4cdf).() == 0) |
| 2242 |
{ |
| 2243 |
returnTHISplease = true; |
| 2244 |
count = ROOTcounts; // Exit this loop and return true if mount point found |
| 2245 |
} |
| 2246 |
else |
| 2247 |
returnTHISplease = false; |
| 2248 |
|
| 2249 |
mountpoint =cxx . . $ QString#`operator=`(4f35bf974e7f8568). mountpoint.leftcxx . . $ QString#left(3f3c3d0e9c0eb37f).(mountpoint.lastIndexOfcxx . . $ QString#lastIndexOf(a1e52806cd31c200).(SLASHcxx . . $ Global/SLASH.,mountpoint.sizecxx . . $ QString#size(455f465bc33b4cdf).()-2)+1); // Cut the right part of the path |
| 2250 |
|
| 2251 |
count++; |
| 2252 |
} |
| 2253 |
} |
| 2254 |
|
| 2255 |
return returnTHISplease; |
| 2256 |
} |
| 2257 |
|
| 2258 |
// sendEmailNow ===================================================================================================================================== |
| 2259 |
// Send an email after a profile run. bool is true if called for testing purposes |
| 2260 |
QStringcxx . . $ QString# sendEmailNowcxx . . $ Global/sendEmailNow(f4d483874300e612). (bool testEmail) |
| 2261 |
{ |
| 2262 |
QStringcxx . . $ QString# returnString = ""cxx . . $ QString#QString(85c52e162fed56f9).; // This is the string that will be finally returned |
| 2263 |
|
| 2264 |
// Form command to execute (first argument of emailCommand ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2265 |
//QString emailCommandExec = emailCommand.left(emailCommand.indexOf(" ")); |
| 2266 |
QStringcxx . . $ QString# emailCommandExec = emailCommandcxx . . $ QString#QString(132dd6869045752b).; |
| 2267 |
//if (WINrunning) |
| 2268 |
// emailCommandExec = luckyBackupDir+SLASH+emailCommandExec; |
| 2269 |
|
| 2270 |
// Calculate arguments and command used from variables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2271 |
//QString emailArgs = emailCommand; emailArgs.remove(emailCommandExec); |
| 2272 |
QStringListcxx . . $ QStringList# emailArgsExec = emailArgumentscxx . . $ Global/emailArguments..splitcxx . . $ QString#split(86dfba059c69ed01).(" "cxx . . $ QString#QString(85c52e162fed56f9).,QStringcxx . . $ QString#::SkipEmptyPartscxx . . $ QString#SkipEmptyParts.); |
| 2273 |
|
| 2274 |
// Body & Subject might contain other args inside them. So,replace first ~~~~~~~~~~~ |
| 2275 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%s"cxx . . $ QString#QString(85c52e162fed56f9).,emailSubjectcxx . . $ Global/emailSubject.); // %s subject |
| 2276 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%b"cxx . . $ QString#QString(85c52e162fed56f9).,emailBodycxx . . $ Global/emailBody.); // %b body |
| 2277 |
|
| 2278 |
// %l or %c logfile filename - Only do this is there exists a %l or %c arguments because many file actions are involved |
| 2279 |
bool stopEmail = false; |
| 2280 |
if ( (emailArgsExec.containscxx . . $ QStringList#contains(8cce4688c16f48f3).("%l"cxx . . $ QString#QString(85c52e162fed56f9).)) || (emailArgsExec.containscxx . . $ QStringList#contains(8cce4688c16f48f3).("%c"cxx . . $ QString#QString(85c52e162fed56f9).)) ) |
| 2281 |
{ |
| 2282 |
QStringcxx . . $ QString# argLog = logDircxx . . $ Global/logDir. +cxx . . $ operator+(fab9b4f80031f353). profileNamecxx . . $ Global/profileName. +cxx . . $ operator+(fab9b4f80031f353). emailLogStringcxx . . $ Global/emailLogString.; |
| 2283 |
QFilecxx . . $ QFile# sendlogfilecxx . . $ QFile#QFile(3520e46b33348bf6).(argLog); |
| 2284 |
|
| 2285 |
if (!sendlogfile.opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QFlags#QFlags(93d577a3e9528307).::WriteOnlycxx . . $ QIODevice#WriteOnly.)) // if the log file to send cannot be opened for writing |
| 2286 |
stopEmail = true; |
| 2287 |
else |
| 2288 |
{ |
| 2289 |
QTextStreamcxx . . $ QTextStream# outcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&sendlogfile); |
| 2290 |
|
| 2291 |
if (testEmail) // if this is a test email |
| 2292 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "This logfile is used for TESTING purposes only !!"; |
| 2293 |
else // if this is a real email - merge all task logs to a single file |
| 2294 |
{ |
| 2295 |
currentOperationcxx . . $ Global/currentOperation. = 0; |
| 2296 |
while (currentOperationcxx . . $ Global/currentOperation. < TotalOperationscxx . . $ Global/TotalOperations.) // scan all tasks one by one |
| 2297 |
{ |
| 2298 |
if ( (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetPerformcxx . . $ operation#GetPerform(50ce9a9e25b4a850).()) || (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) ) // if the task did run |
| 2299 |
{ |
| 2300 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~ " <<cxx . . $ QTextStream#`operator<<`(848b5dbd84829120). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).().toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).() |
| 2301 |
<<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). " - START ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"; |
| 2302 |
|
| 2303 |
logfilenamecxx . . $ Global/logfilename. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). logDircxx . . $ Global/logDir. +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#QString(45672f3c6961a244).(profileNamecxx . . $ Global/profileName..toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()) +cxx . . $ operator+(3d22f08efddf8107). "-" +cxx . . $ operator+(fab9b4f80031f353). |
| 2304 |
QStringcxx . . $ QString#QString(45672f3c6961a244).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).()).toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).()) +cxx . . $ operator+(3d22f08efddf8107). "-" +cxx . . $ operator+(fab9b4f80031f353). |
| 2305 |
Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetSnapshotsListItemcxx . . $ operation#GetSnapshotsListItem(3f3c3d0e9c0eb37f).(Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.]->GetSnapshotsListSizecxx . . $ operation#GetSnapshotsListSize(455f465bc33b4cdf).()-1) |
| 2306 |
+cxx . . $ operator+(3d22f08efddf8107). ".log"; |
| 2307 |
logfilecxx . . $ Global/logfile..setFileNamecxx . . $ QFile#setFileName(3520e46b33348bf6).(logfilenamecxx . . $ Global/logfilename.); // this is the last logfile |
| 2308 |
if (logfilecxx . . $ Global/logfile..existscxx . . $ QFile#exists(50ce9a9e25b4a850).()) |
| 2309 |
{ |
| 2310 |
if (logfilecxx . . $ Global/logfile..opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QFlags#QFlags(93d577a3e9528307).::ReadOnlycxx . . $ QIODevice#ReadOnly.)) //if the profile cannot be opened |
| 2311 |
{ |
| 2312 |
QTextStreamcxx . . $ QTextStream# incxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&logfilecxx . . $ Global/logfile.); |
| 2313 |
out <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). in.readAllcxx . . $ QTextStream#readAll(4365c3963150523e).(); |
| 2314 |
logfilecxx . . $ Global/logfile..closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 2315 |
} |
| 2316 |
else |
| 2317 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Could not open the logfile") <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 2318 |
} |
| 2319 |
else |
| 2320 |
out <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n" <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("The logfile does not exist") <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n"; |
| 2321 |
out <<cxx . . $ QTextStream#`operator<<`(848b5dbd84829120). "\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "+cxx . . $ operator+(c76e440e68d4afec). Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).().toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).() +cxx . . $ operator+(8f17b704cda0d21f). " - END ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"; |
| 2322 |
} |
| 2323 |
currentOperationcxx . . $ Global/currentOperation.++; |
| 2324 |
} |
| 2325 |
|
| 2326 |
} |
| 2327 |
sendlogfile.closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 2328 |
} |
| 2329 |
|
| 2330 |
if (emailArgsExec.containscxx . . $ QStringList#contains(8cce4688c16f48f3).("%c"cxx . . $ QString#QString(85c52e162fed56f9).) && !WINrunningcxx . . $ Global/WINrunning.) // if the argument %c is included, also compress the file. This is valid for non windows systems |
| 2331 |
{ |
| 2332 |
// Execute the tar command |
| 2333 |
QStringcxx . . $ QString# compressCommand="tar"cxx . . $ QString#QString(85c52e162fed56f9)., compressExtension=".tar.gz"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 2334 |
QStringListcxx . . $ QStringList# compressArgscxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 2335 |
compressArgs <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "-C"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). logDircxx . . $ Global/logDir. <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "-cvzf"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). argLog +cxx . . $ operator+(fab9b4f80031f353). compressExtension <<cxx . . $ QStringList#`operator<<`(85116071a693d053). profileNamecxx . . $ Global/profileName. +cxx . . $ operator+(fab9b4f80031f353). emailLogStringcxx . . $ Global/emailLogString.; |
| 2336 |
//compressArgs << "-cvzf" << argLog + compressExtension << argLog + emailLogString; // this adds the full path of the logfile inside the tar.gz |
| 2337 |
QProcesscxx . . $ QProcess# *compressProcess; compressProcess = new QProcesscxx . . $ QProcess#; |
| 2338 |
compressProcess -> setProcessChannelModecxx . . $ QProcess#setProcessChannelMode(325e95cd0c77e646).(QProcesscxx . . $ QProcess#::MergedChannelscxx . . $ QProcess#MergedChannels.); |
| 2339 |
|
| 2340 |
if (WINrunningcxx . . $ Global/WINrunning.) |
| 2341 |
{ |
| 2342 |
compressProcess -> setWorkingDirectorycxx . . $ QProcess#setWorkingDirectory(3520e46b33348bf6).(luckyBackupDircxx . . $ Global/luckyBackupDir.); |
| 2343 |
QDircxx . . $ QDir#::setCurrentcxx . . $ QDir#setCurrent(e1defb592416720d).(luckyBackupDircxx . . $ Global/luckyBackupDir.); |
| 2344 |
} |
| 2345 |
|
| 2346 |
compressProcess -> startcxx . . $ QProcess#start(5e315ba9c811784d). (compressCommand,compressArgs); |
| 2347 |
compressProcess -> waitForFinishedcxx . . $ QProcess#waitForFinished(83c267b20bac841a).(10000); |
| 2348 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%c"cxx . . $ QString#QString(85c52e162fed56f9).,argLog+cxx . . $ operator+(fab9b4f80031f353).compressExtension); |
| 2349 |
} |
| 2350 |
|
| 2351 |
if (WINrunningcxx . . $ Global/WINrunning.) |
| 2352 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%l"cxx . . $ QString#QString(85c52e162fed56f9).,argLog.replacecxx . . $ QString#replace(192e628656427d1c).(XnixSLASHcxx . . $ Global/XnixSLASH.,SLASHcxx . . $ Global/SLASH.)); |
| 2353 |
else |
| 2354 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%l"cxx . . $ QString#QString(85c52e162fed56f9).,argLog); |
| 2355 |
} |
| 2356 |
|
| 2357 |
// %d Current Date |
| 2358 |
QStringcxx . . $ QString# argDate = QDatecxx . . $ QDate#::currentDatecxx . . $ QDate#currentDate(f1d16c240bbd73a4).().toStringcxx . . $ QDate#toString(7b7e68bded046f2f).(Qtcxx . . $ Qt/::DefaultLocaleLongDatecxx . . $ Qt/DefaultLocaleLongDate.); |
| 2359 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%d"cxx . . $ QString#QString(85c52e162fed56f9).,argDate); |
| 2360 |
|
| 2361 |
// %i Current Time |
| 2362 |
QStringcxx . . $ QString# argTime = QTimecxx . . $ QTime#::currentTimecxx . . $ QTime#currentTime(bd2fc2b92108c576).().toStringcxx . . $ QTime#toString(5555d9024dcf93fb).("hh:mm:ss"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 2363 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%i"cxx . . $ QString#QString(85c52e162fed56f9).,argTime); |
| 2364 |
|
| 2365 |
// %p Profile Name |
| 2366 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%p"cxx . . $ QString#QString(85c52e162fed56f9).,profileNamecxx . . $ Global/profileName.); |
| 2367 |
|
| 2368 |
// %e No. of errors |
| 2369 |
QStringcxx . . $ QString# argErrors = countStrcxx . . $ QString#QString(132dd6869045752b)..setNumcxx . . $ QString#setNum(6483560ce2afa901).(errorsFoundcxx . . $ Global/errorsFound.); |
| 2370 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%e"cxx . . $ QString#QString(85c52e162fed56f9).,argErrors); |
| 2371 |
|
| 2372 |
// %f From address |
| 2373 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%f"cxx . . $ QString#QString(85c52e162fed56f9).,emailFromcxx . . $ Global/emailFrom.); |
| 2374 |
|
| 2375 |
// %t To address |
| 2376 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%t"cxx . . $ QString#QString(85c52e162fed56f9).,emailTocxx . . $ Global/emailTo.); |
| 2377 |
|
| 2378 |
// %v smtp server |
| 2379 |
emailArgsExec.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("%v"cxx . . $ QString#QString(85c52e162fed56f9).,emailSMTPcxx . . $ Global/emailSMTP.); |
| 2380 |
// End of arguments calculations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2381 |
|
| 2382 |
// Execute the email command |
| 2383 |
QProcesscxx . . $ QProcess# *emailProcess; emailProcess = new QProcesscxx . . $ QProcess#; |
| 2384 |
emailProcess -> setProcessChannelModecxx . . $ QProcess#setProcessChannelMode(325e95cd0c77e646).(QProcesscxx . . $ QProcess#::MergedChannelscxx . . $ QProcess#MergedChannels.); |
| 2385 |
if(WINrunningcxx . . $ Global/WINrunning.) |
| 2386 |
{ |
| 2387 |
QDircxx . . $ QDir#::setCurrentcxx . . $ QDir#setCurrent(e1defb592416720d).(luckyBackupDircxx . . $ Global/luckyBackupDir.); |
| 2388 |
emailProcess -> setWorkingDirectorycxx . . $ QProcess#setWorkingDirectory(3520e46b33348bf6).(luckyBackupDircxx . . $ Global/luckyBackupDir.); |
| 2389 |
} |
| 2390 |
emailProcess -> startcxx . . $ QProcess#start(5e315ba9c811784d). (emailCommandExec,emailArgsExec); |
| 2391 |
emailProcess -> waitForFinishedcxx . . $ QProcess#waitForFinished(83c267b20bac841a).(10000); |
| 2392 |
|
| 2393 |
// Build the return string ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2394 |
QStringcxx . . $ QString# errorOccured = emailProcess -> errorStringcxx . . $ QIODevice#errorString(6ef7b6c27b00b43d).(); |
| 2395 |
if (errorOccured ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "Unknown error") |
| 2396 |
errorOccured =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 2397 |
if (errorOccured ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "No such file or directory") |
| 2398 |
returnString.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("The specified command is probably not installed") +cxx . . $ operator+(3d22f08efddf8107). "\n"); |
| 2399 |
if (stopEmail) |
| 2400 |
returnString.appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("The logfile could not be created") +cxx . . $ operator+(3d22f08efddf8107). "\n"); |
| 2401 |
|
| 2402 |
returnString.appendcxx . . $ QString#append(6a89d0b7f4d2681c).( "\n"+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("command: ") +cxx . . $ operator+(fab9b4f80031f353). emailCommandExec+cxx . . $ operator+(3d22f08efddf8107). |
| 2403 |
//"\n"+QObject::tr("arguments: ") + emailArgsExec.join(" ") + |
| 2404 |
//"\n"+QObject::tr("arguments: ") + emailArgs + |
| 2405 |
"\n"+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("exit code: ") +cxx . . $ operator+(fab9b4f80031f353). countStrcxx . . $ Global/countStr..setNumcxx . . $ QString#setNum(6483560ce2afa901).(emailProcess -> exitCodecxx . . $ QProcess#exitCode(455f465bc33b4cdf).()) +cxx . . $ operator+(3d22f08efddf8107). |
| 2406 |
"\n"+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("output: ") +cxx . . $ operator+(fab9b4f80031f353). errorOccured +cxx . . $ operator+(3d22f08efddf8107). "\n" +cxx . . $ operator+(4bea96b16517258e). emailProcess -> readAllcxx . . $ QIODevice#readAll(b3c286cec66e09f4).() ); |
| 2407 |
|
| 2408 |
if (!testEmail) // email last log |
| 2409 |
{ |
| 2410 |
QFilecxx . . $ QFile# emailLogcxx . . $ QFile#QFile(3520e46b33348bf6).(logDircxx . . $ Global/logDir. +cxx . . $ operator+(fab9b4f80031f353). profileNamecxx . . $ Global/profileName. +cxx . . $ operator+(fab9b4f80031f353). emailLastLogStringcxx . . $ Global/emailLastLogString.); |
| 2411 |
if (emailLog.opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QFlags#QFlags(93d577a3e9528307).::WriteOnlycxx . . $ QIODevice#WriteOnly.)) // Create the test log file to send |
| 2412 |
{ |
| 2413 |
QTextStreamcxx . . $ QTextStream# outcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&emailLog); |
| 2414 |
out <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). returnString; |
| 2415 |
} |
| 2416 |
emailLog.closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 2417 |
} |
| 2418 |
|
| 2419 |
return returnStringcxx . . $ QString#QString(28715ad661ad3cec).; |
| 2420 |
|
| 2421 |
} |
| 2422 |
|
| 2423 |
// setTextMessages ======================================================================================================= |
| 2424 |
// function to set text feedback for the user |
| 2425 |
// This will be displayed at the gui info window or at CLI |
| 2426 |
void setTextMessagescxx . . $ Global/setTextMessages(8b26822d2f26f476). (QStringcxx . . $ QString# source,QStringcxx . . $ QString# dest,bool remoteSource,bool remoteDest,QStringcxx . . $ QString# status, QStringcxx . . $ QString# type, QStringcxx . . $ QString# reason) |
| 2427 |
{ |
| 2428 |
// useful variables |
| 2429 |
QStringcxx . . $ QString# currentOpNameCLI = QStringcxx . . $ QString#QString(45672f3c6961a244).((Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetNamecxx . . $ operation#GetName(6ef7b6c27b00b43d).())).toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).(); |
| 2430 |
int lastErrors = Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetLastExecutionErrorscxx . . $ operation#GetLastExecutionErrors(455f465bc33b4cdf).(); |
| 2431 |
QStringcxx . . $ QString# lastTimeReadable = (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetLastExecutionTimecxx . . $ operation#GetLastExecutionTime(4e062b5c490497ac).()).toStringcxx . . $ QDateTime#toString(7b7e68bded046f2f).(Qtcxx . . $ Qt/::DefaultLocaleLongDatecxx . . $ Qt/DefaultLocaleLongDate.); |
| 2432 |
QStringcxx . . $ QString# lastTime = (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetLastExecutionTimecxx . . $ operation#GetLastExecutionTime(4e062b5c490497ac).()).toStringcxx . . $ QDateTime#toString(7b7e68bded046f2f).(); |
| 2433 |
//QString taskDescriptionCLI = QString((Operation[currentOperation] -> GetDescription())).toUtf8(); |
| 2434 |
QStringcxx . . $ QString# taskDescription = Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetDescriptioncxx . . $ operation#GetDescription(6ef7b6c27b00b43d).(); |
| 2435 |
taskDescription.replacecxx . . $ QString#replace(192e628656427d1c).("\n"cxx . . $ QString#QString(85c52e162fed56f9).,"<br>"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 2436 |
|
| 2437 |
if (status ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "okay") |
| 2438 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("[Ok] -> "); |
| 2439 |
if (status ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "warning") |
| 2440 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("[WARNING] -> "); |
| 2441 |
if (status ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "critical") |
| 2442 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("[CRITICAL] -> "); |
| 2443 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(currentOpNameCLI); |
| 2444 |
|
| 2445 |
// Last execution time & errors |
| 2446 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Last execution time") +cxx . . $ operator+(3d22f08efddf8107). ": <b>"); |
| 2447 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nLast execution time : "); |
| 2448 |
if (lastTime ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "") |
| 2449 |
{ |
| 2450 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("not available") +cxx . . $ operator+(3d22f08efddf8107). "</b><br>"); |
| 2451 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("not available"); |
| 2452 |
} |
| 2453 |
else |
| 2454 |
{ |
| 2455 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(lastTimeReadable +cxx . . $ operator+(3d22f08efddf8107)."</b>"); |
| 2456 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(lastTimeReadable); |
| 2457 |
if (lastErrors > -1) // if there is error information available |
| 2458 |
{ |
| 2459 |
if (lastErrors == 0) |
| 2460 |
{ |
| 2461 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(" (" +cxx . . $ operator+(c75c3ae4eb9af1a8). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("no errors") +cxx . . $ operator+(3d22f08efddf8107). ")"); |
| 2462 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" (no errors)"); |
| 2463 |
} |
| 2464 |
else |
| 2465 |
{ |
| 2466 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(" (" +cxx . . $ operator+(c75c3ae4eb9af1a8). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("errors found") +cxx . . $ operator+(3d22f08efddf8107). ")"); |
| 2467 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" (errors found)"); |
| 2468 |
} |
| 2469 |
} |
| 2470 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(d02845eef0c33901).("<br>"); |
| 2471 |
} |
| 2472 |
|
| 2473 |
// task status -> [ok] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2474 |
if (status ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "okay") |
| 2475 |
{ |
| 2476 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("status") +cxx . . $ operator+(3d22f08efddf8107). ": <font color=green><b>" +cxx . . $ operator+(fab9b4f80031f353). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("OK") +cxx . . $ operator+(3d22f08efddf8107). "</font></b><br>"); |
| 2477 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync") |
| 2478 |
{ |
| 2479 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Sync directory")+cxx . . $ operator+(3d22f08efddf8107)." A: <b>"); |
| 2480 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nSync directory A : "); |
| 2481 |
} |
| 2482 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "backup") |
| 2483 |
{ |
| 2484 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Source directory")+cxx . . $ operator+(3d22f08efddf8107).": <b>"); |
| 2485 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nSource directory : "); |
| 2486 |
} |
| 2487 |
|
| 2488 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source+cxx . . $ operator+(3d22f08efddf8107)."</b>"); |
| 2489 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2490 |
|
| 2491 |
if (remoteSource) |
| 2492 |
{ |
| 2493 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br><font color=magenta>("+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Using remote, check is skipped")+cxx . . $ operator+(3d22f08efddf8107)."...)</font>"); |
| 2494 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" (Using remote, check is skipped...)"); |
| 2495 |
} |
| 2496 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync") |
| 2497 |
{ |
| 2498 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br>" +cxx . . $ operator+(c75c3ae4eb9af1a8). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Sync directory")+cxx . . $ operator+(3d22f08efddf8107)." B: <b>"); |
| 2499 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nSync directory B : "); |
| 2500 |
} |
| 2501 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "backup") |
| 2502 |
{ |
| 2503 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br>" +cxx . . $ operator+(c75c3ae4eb9af1a8). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Destination directory")+cxx . . $ operator+(3d22f08efddf8107).": <b>"); |
| 2504 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nDestination directory : "); |
| 2505 |
} |
| 2506 |
|
| 2507 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest+cxx . . $ operator+(3d22f08efddf8107)."</b>"); |
| 2508 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2509 |
|
| 2510 |
if (remoteDest) |
| 2511 |
{ |
| 2512 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br><font color=magenta>("+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Using remote, check is skipped")+cxx . . $ operator+(3d22f08efddf8107)."...)</font>"); |
| 2513 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" (Using remote, check is skipped...)"); |
| 2514 |
} |
| 2515 |
else // display destination disk free space |
| 2516 |
if (!WINrunningcxx . . $ Global/WINrunning.) |
| 2517 |
{ |
| 2518 |
QProcesscxx . . $ QProcess# *diskSpace; |
| 2519 |
diskSpace = new QProcesscxx . . $ QProcess#(0); |
| 2520 |
QStringListcxx . . $ QStringList# diskSpaceArgscxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 2521 |
diskSpaceArgs <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "-h"cxx . . $ QString#QString(85c52e162fed56f9). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). dest; |
| 2522 |
diskSpace -> startcxx . . $ QProcess#start(5e315ba9c811784d). ("df"cxx . . $ QString#QString(85c52e162fed56f9).,diskSpaceArgs); |
| 2523 |
diskSpace -> waitForFinishedcxx . . $ QProcess#waitForFinished(83c267b20bac841a).(); |
| 2524 |
QStringcxx . . $ QString# diskSpaceString = diskSpacecxx . . $ QString#QString(45672f3c6961a244).->readAllStandardOutputcxx . . $ QProcess#readAllStandardOutput(b3c286cec66e09f4).(); |
| 2525 |
if (diskSpaceString.containscxx . . $ QString#contains(8cce4688c16f48f3).("Avail"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 2526 |
{ |
| 2527 |
QStringListcxx . . $ QStringList# diskLines = diskSpaceString.splitcxx . . $ QString#split(86dfba059c69ed01).( "\n"cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString#::SkipEmptyPartscxx . . $ QString#SkipEmptyParts. ); |
| 2528 |
QStringListcxx . . $ QStringList# diskFields = diskLines[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).1].splitcxx . . $ QString#split(86dfba059c69ed01).(" "cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString#::SkipEmptyPartscxx . . $ QString#SkipEmptyParts. ); |
| 2529 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(" (" +cxx . . $ operator+(c75c3ae4eb9af1a8). diskFields[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).3] +cxx . . $ operator+(3d22f08efddf8107)." " +cxx . . $ operator+(fab9b4f80031f353). QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("free", "as in free disk space") +cxx . . $ operator+(3d22f08efddf8107). ")"); |
| 2530 |
} |
| 2531 |
} |
| 2532 |
} |
| 2533 |
|
| 2534 |
// task status -> [WARNING] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2535 |
if (status ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "warning") |
| 2536 |
{ |
| 2537 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("status") +cxx . . $ operator+(3d22f08efddf8107). ": <font color=red><b>"+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("WARNING")+cxx . . $ operator+(3d22f08efddf8107)."</font></b><br>"); |
| 2538 |
if (reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "source-perms") |
| 2539 |
{ |
| 2540 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync") |
| 2541 |
{ |
| 2542 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("I do not have the permission to read/enter sync directory A")+cxx . . $ operator+(3d22f08efddf8107).":<b><br>"); |
| 2543 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nI do not have the permission to read/enter sync directory A :\n"); |
| 2544 |
} |
| 2545 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "backup") |
| 2546 |
{ |
| 2547 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("I do not have the permission to read/enter the source directory")+cxx . . $ operator+(3d22f08efddf8107).":<b><br>"); |
| 2548 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nI do not have the permission to read/enter the source directory :\n"); |
| 2549 |
} |
| 2550 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source +cxx . . $ operator+(3d22f08efddf8107). "</b><br>"); |
| 2551 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2552 |
} |
| 2553 |
|
| 2554 |
if (reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "dest-perms") |
| 2555 |
{ |
| 2556 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync") |
| 2557 |
{ |
| 2558 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("I do not have the permission to read/enter sync directory B")+cxx . . $ operator+(3d22f08efddf8107).":<b><br>"); |
| 2559 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nI do not have the permission to read/enter sync directory B :\n"); |
| 2560 |
} |
| 2561 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "backup") |
| 2562 |
{ |
| 2563 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("I do not have the permission to read/enter the destination directory")+cxx . . $ operator+(3d22f08efddf8107).":<b><br>"); |
| 2564 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nI do not have the permission to read/enter the destination directory :\n"); |
| 2565 |
} |
| 2566 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest +cxx . . $ operator+(3d22f08efddf8107). "</b><br>"); |
| 2567 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2568 |
} |
| 2569 |
|
| 2570 |
if ((reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync-not-exist") || (reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync-not-mounted")) |
| 2571 |
{ |
| 2572 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Directory")+cxx . . $ operator+(3d22f08efddf8107)." <b>"); |
| 2573 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2574 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("</b><br>"+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("and/or")+cxx . . $ operator+(3d22f08efddf8107)." <b>"); |
| 2575 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2576 |
if (reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync-not-exist") |
| 2577 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("</b><br><font color=red><b>"+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("does not exist")+cxx . . $ operator+(3d22f08efddf8107)."</b></font>.<br>"); |
| 2578 |
if (reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync-not-mounted") |
| 2579 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("</b><br><font color=red><b>"+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("is not mounted")+cxx . . $ operator+(3d22f08efddf8107)."</b></font>.<br>"); |
| 2580 |
|
| 2581 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nDirectory "); |
| 2582 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2583 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nand/or "); |
| 2584 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2585 |
if (reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync-not-exist") |
| 2586 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\ndoes not exist.\n"); |
| 2587 |
if (reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync-not-mounted") |
| 2588 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nis not mounted.\n"); |
| 2589 |
} |
| 2590 |
if (reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "source-not-exist") |
| 2591 |
{ |
| 2592 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Source directory")+cxx . . $ operator+(3d22f08efddf8107).": <b>"); |
| 2593 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2594 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br><font color=red> "+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("is empty or does not exist")+cxx . . $ operator+(3d22f08efddf8107)."</font>.</b><br>"); |
| 2595 |
|
| 2596 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nSource directory : "); |
| 2597 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2598 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" is empty or does not exist.\n" |
| 2599 |
"Destination directory : "); |
| 2600 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2601 |
if (remoteDest) |
| 2602 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" (Using remote, check is skipped...)"); |
| 2603 |
} |
| 2604 |
|
| 2605 |
if (reason ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "dest-not-mounted") |
| 2606 |
{ |
| 2607 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Destination directory")+cxx . . $ operator+(3d22f08efddf8107).": <b>"); |
| 2608 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2609 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br><font color=red> "+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("is not mounted")+cxx . . $ operator+(3d22f08efddf8107)."</font>.</b><br>"); |
| 2610 |
|
| 2611 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nSource directory : "); |
| 2612 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2613 |
if (remoteSource) |
| 2614 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" (Using remote, check is skipped...)"); |
| 2615 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nDestination directory : "); |
| 2616 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2617 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" is not mounted.\n"); |
| 2618 |
} |
| 2619 |
|
| 2620 |
|
| 2621 |
if (Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetByPassWARNINGcxx . . $ operation#GetByPassWARNING(50ce9a9e25b4a850).()) |
| 2622 |
{ |
| 2623 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("I will <font color=red><b>NOT SKIP</b></font> this task because you have enabled the \"by-pass WARNING\" option")); |
| 2624 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nThis task will NOT be skipped because you have enabled the \"by-pass WARNING\" option\n"); |
| 2625 |
} |
| 2626 |
else |
| 2627 |
{ |
| 2628 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("This task will be <font color=red><b>skipped</b></font>")); |
| 2629 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nThis task will be SKIPPED\n"); |
| 2630 |
} |
| 2631 |
} |
| 2632 |
|
| 2633 |
// task status -> [CRITICAL] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2634 |
if (status ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "critical") |
| 2635 |
{ |
| 2636 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("status") +cxx . . $ operator+(3d22f08efddf8107). ": <font color=orange><b>"+cxx . . $ operator+(fab9b4f80031f353).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("CRITICAL")+cxx . . $ operator+(3d22f08efddf8107)."</font></b><br>"); |
| 2637 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "sync") |
| 2638 |
{ |
| 2639 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Directory")+cxx . . $ operator+(3d22f08efddf8107)." <b>"); |
| 2640 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2641 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("</b><br>"+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("and/or")+cxx . . $ operator+(3d22f08efddf8107)." <b>"); |
| 2642 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2643 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("</b><br><font color=orange><b>"+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("is empty")+cxx . . $ operator+(3d22f08efddf8107)."</b></font>.<br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 2644 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("I will <font color=orange><b>not skip</b></font> this task. Synchronizing is going to be performed anyway")); |
| 2645 |
|
| 2646 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nDirectory "); |
| 2647 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2648 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nand/or "); |
| 2649 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2650 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nis empty.\n" |
| 2651 |
"I will NOT skip this task (unless '--skip-critical' is given as argument).\n" |
| 2652 |
"Synchronizing is going to be performed anyway !!\n"); |
| 2653 |
} |
| 2654 |
if (type ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "backup") |
| 2655 |
{ |
| 2656 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nSource directory : "); |
| 2657 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(source); |
| 2658 |
if (remoteSource) |
| 2659 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" (Using remote, check is skipped...)"); |
| 2660 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\nDestination directory : "); |
| 2661 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2662 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).(" is empty or does not exist.\n" |
| 2663 |
"This task will NOT be skipped (unless '--skip-critical' is given as argument)\n" |
| 2664 |
"The Destination Directory will be created if it doesn't exist and filled with new backup data.\n"); |
| 2665 |
|
| 2666 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Destination directory")+cxx . . $ operator+(3d22f08efddf8107).": <b>"); |
| 2667 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).(dest); |
| 2668 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br><font color=orange> "+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("is empty or does not exist")+cxx . . $ operator+(3d22f08efddf8107)."</font>.</b><br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 2669 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("This task will <font color=orange><b>not be skipped")+cxx . . $ operator+(3d22f08efddf8107)."</b></font> <br>"+cxx . . $ operator+(fab9b4f80031f353). |
| 2670 |
QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("The Destination Directory will be created if it doesn't exist and filled with new backup data")+cxx . . $ operator+(3d22f08efddf8107)."."); |
| 2671 |
} |
| 2672 |
} |
| 2673 |
|
| 2674 |
CheckedDataCLIcxx . . $ Global/CheckedDataCLI..appendcxx . . $ QString#append(d02845eef0c33901).("\n_____________________________________________________________________________________________\n"); |
| 2675 |
|
| 2676 |
// Task description |
| 2677 |
if (taskDescription !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "") |
| 2678 |
CheckedDatacxx . . $ Global/CheckedData..appendcxx . . $ QString#append(6a89d0b7f4d2681c).("<br><br><b>"+cxx . . $ operator+(c75c3ae4eb9af1a8).QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Task description") +cxx . . $ operator+(3d22f08efddf8107). ":</b><br>" +cxx . . $ operator+(fab9b4f80031f353). taskDescription); |
| 2679 |
} |
| 2680 |
|
| 2681 |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 2682 |
// Various windows stuff from this point to the end of the file... |
| 2683 |
QStringcxx . . $ QString# getMapdrivecxx . . $ Global/getMapdrive(4365c3963150523e).(){ |
| 2684 |
QStringcxx . . $ QString# mapdrive="w"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 2685 |
QStringListcxx . . $ QStringList# unitscxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 2686 |
units <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "w"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."v"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."u"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."t"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."s"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."r"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."q"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."p"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."z"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."y"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."x"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."o"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."n"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."m"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."l"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."k"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."j"cxx . . $ QString#QString(85c52e162fed56f9).<<cxx . . $ QStringList#`operator<<`(85116071a693d053)."i"cxx . . $ QString#QString(85c52e162fed56f9).; |
| 2687 |
for (int i = 0; i < units.sizecxx . . $ QList#size(ea6fe5115c70a13f).(); ++i){ |
| 2688 |
mapdrive=cxx . . $ QString#`operator=`(b79fde0b0ce9b948).units.atcxx . . $ QList#at(e2681f9bb6b2f357).(i); |
| 2689 |
if (! QDircxx . . $ QDir#QDir(3520e46b33348bf6).(units.atcxx . . $ QList#at(e2681f9bb6b2f357).(i)+cxx . . $ operator+(3d22f08efddf8107).":"+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.).existscxx . . $ QDir#exists(50ce9a9e25b4a850).()) |
| 2690 |
break; |
| 2691 |
} |
| 2692 |
return mapdrivecxx . . $ QString#QString(28715ad661ad3cec).; |
| 2693 |
} |
| 2694 |
/*luckyb commended this function out |
| 2695 |
//Create execute command in windows ================================================== |
| 2696 |
//Modify source and dest with cygpath and analyze vss |
| 2697 |
QString createWinMkdirCommand(QString tempPath,bool vss,QStringList rsyncArgs,bool logGui=true){ |
| 2698 |
rsyncArgs << ""; |
| 2699 |
|
| 2700 |
//return createWinRsyncCommand(tempPath,vss,rsyncArgs,logGui); |
| 2701 |
QString logstring=""; |
| 2702 |
//QFile command1(tempPath+"\\l1qt_temp"+QString::number(qrand() % (999998) + 1) +".bat"); |
| 2703 |
QFile command2(tempPath+"l2qt_temp"+QString::number(qrand() % (999998) + 1) +".bat"); |
| 2704 |
//QTemporaryFile setvar(tempPath+"\\qt_tempXXXXXX.bat"); |
| 2705 |
QString dest=rsyncArgs.takeLast(); |
| 2706 |
QString source=rsyncArgs.takeLast(); |
| 2707 |
bool srcremote=false; |
| 2708 |
bool dstremote=false; |
| 2709 |
rsyncArgs.replaceInStrings("\"","\\\""); |
| 2710 |
QString args="\""+rsyncArgs.join("\" \"")+"\""; |
| 2711 |
args.replace("\"--vss\"",""); |
| 2712 |
if (source.contains('@')||source.startsWith("\\\\")){ |
| 2713 |
args.replace("\"--backup-nt-streams\"",""); |
| 2714 |
vss=false; |
| 2715 |
srcremote=true; |
| 2716 |
//source=source.replace("\\","/"); |
| 2717 |
} |
| 2718 |
if (dest.contains('@')||dest.startsWith("\\\\")){ |
| 2719 |
args.replace("\"--restore-nt-streams\"",""); |
| 2720 |
args.append(" \"--chmod=u=rwX\" "); |
| 2721 |
dstremote=true; |
| 2722 |
//dest=dest.replace("\\","/"); |
| 2723 |
} |
| 2724 |
//source=fixWinPathForRsync(source,srcremote); |
| 2725 |
//dest=fixWinPathForRsync(dest,dstremote); |
| 2726 |
mapdrive=getMapdrive(); |
| 2727 |
QTextStream outCommand2(&command2); |
| 2728 |
outCommand2 << "\n@ECHO OFF"; |
| 2729 |
outCommand2 << "\nSET tdebug=y"; |
| 2730 |
outCommand2 << "\nSET tdeleteshadows=y"; |
| 2731 |
outCommand2 << "\nSET el=0"; |
| 2732 |
if (!srcremote) outCommand2 << "\n\""+Operation[currentOperation] -> GetCygpathCommand()+"\" \""+source+"\"> "+tempPath+"\\_cygpath.tmp"; |
| 2733 |
else outCommand2 << "\nECHO "+source+"> "+tempPath+"\\_cygpath.tmp"; |
| 2734 |
outCommand2 << "\nSET /p source=< "+tempPath+"\\_cygpath.tmp"; |
| 2735 |
if (!dstremote) outCommand2 << "\n\""+Operation[currentOperation] -> GetCygpathCommand()+"\" \""+dest+"/\"> "+tempPath+"\\_cygpath.tmp"; |
| 2736 |
else outCommand2 << "\nECHO "+dest+"> "+tempPath+"\\_cygpath.tmp"; |
| 2737 |
outCommand2 << "\nSET /p dest=< "+tempPath+"\\_cygpath.tmp"; |
| 2738 |
outCommand2 << "\n \""+Operation[currentOperation] -> GetRsyncCommand()+"\" "+args+" \"%source%\" \"%dest%\" "; |
| 2739 |
outCommand2 << "\n SET el=%ERRORLEVEL%"; |
| 2740 |
outCommand2 << "\ndel "+tempPath+"/_cygpath.tmp 2>nul"; |
| 2741 |
|
| 2742 |
outCommand2 << "\n:ennd"; |
| 2743 |
outCommand2 << "\nIF %el% neq 0 exit /b %el%"; |
| 2744 |
//outCommand2 << "\ndel \""+command1.fileName().replace("/","\\")+"\""; |
| 2745 |
//outCommand2 << "\nstart \"rsync.bat\" /min cmd /C del \"%0\" >nul 2>&1"; |
| 2746 |
outCommand2 << "\nECHO BACKUP OK"; |
| 2747 |
QString ret=command2.fileName(); |
| 2748 |
command2.close(); |
| 2749 |
|
| 2750 |
|
| 2751 |
}*/ |
| 2752 |
|
| 2753 |
QStringcxx . . $ QString# createWinRsyncCommandcxx . . $ Global/createWinRsyncCommand(f72b83e3d8c9da9d).(QStringcxx . . $ QString# tempPath,bool vss,QStringListcxx . . $ QStringList# rsyncArgs,bool logGui){ |
| 2754 |
// QFile settingsfile(settingsFile); |
| 2755 |
// if (!settingsfile.open(QIODevice::WriteOnly)) // if the settings file cannot be saved (or fails to create) |
| 2756 |
// { |
| 2757 |
// settingsfile.close(); |
| 2758 |
// return false; |
| 2759 |
// } |
| 2760 |
|
| 2761 |
//luckyb line to avoid compile WARNING |
| 2762 |
vss = logGui; |
| 2763 |
if (vss) |
| 2764 |
vss=true; |
| 2765 |
// end of luckyb lines |
| 2766 |
|
| 2767 |
// showOnlyErrors = ui.checkBox_onlyShowErrors -> isChecked(); |
| 2768 |
QStringcxx . . $ QString# logstring=""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 2769 |
QFilecxx . . $ QFile# command1cxx . . $ QFile#QFile(3520e46b33348bf6).(tempPath+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(3d22f08efddf8107)."l1qt_temp"+cxx . . $ operator+(fab9b4f80031f353).QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(qrandcxx . . $ qrand(b126dc7c1de90089).() % (999998) + 1) +cxx . . $ operator+(3d22f08efddf8107).".bat"); |
| 2770 |
QFilecxx . . $ QFile# command2cxx . . $ QFile#QFile(3520e46b33348bf6).(tempPath+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(3d22f08efddf8107)."l2qt_temp"+cxx . . $ operator+(fab9b4f80031f353).QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(qrandcxx . . $ qrand(b126dc7c1de90089).() % (999998) + 1) +cxx . . $ operator+(3d22f08efddf8107).".bat"); |
| 2771 |
QTemporaryFilecxx . . $ QTemporaryFile# setvarcxx . . $ QTemporaryFile#QTemporaryFile(3520e46b33348bf6).(tempPath+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(3d22f08efddf8107)."qt_tempXXXXXX.bat"); |
| 2772 |
QStringcxx . . $ QString# dest=rsyncArgs.takeLastcxx . . $ QList#takeLast(5f357b03ed472e5e).(); |
| 2773 |
QStringcxx . . $ QString# source=rsyncArgs.takeLastcxx . . $ QList#takeLast(5f357b03ed472e5e).(); |
| 2774 |
//bool srcremote=false; // luckyb commend to avoid compile WARNING |
| 2775 |
//bool dstremote=false; |
| 2776 |
rsyncArgs.replaceInStringscxx . . $ QListSpecialMethods#replaceInStrings(19d8cb5fcd1451b7).("\""cxx . . $ QString#QString(85c52e162fed56f9).,"\\\""cxx . . $ QString#QString(85c52e162fed56f9).);//double escape chars to include in bat |
| 2777 |
QStringcxx . . $ QString# args="\""+cxx . . $ operator+(c75c3ae4eb9af1a8).rsyncArgs.joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).("\" \""cxx . . $ QString#QString(85c52e162fed56f9).)+cxx . . $ operator+(3d22f08efddf8107)."\""; |
| 2778 |
/* disable vss until... |
| 2779 |
args.replace("\"--vss\"",""); */ |
| 2780 |
if (source.containscxx . . $ QString#contains(7cf081d1b6a1defd).('@'cxx . . $ QChar#QChar(f349c77f591a7878).)||source.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.)){ |
| 2781 |
args.replacecxx . . $ QString#replace(192e628656427d1c).("\"--backup-nt-streams\""cxx . . $ QString#QString(85c52e162fed56f9).,""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 2782 |
vss=false; |
| 2783 |
//srcremote=true; // luckyb lines to avoid compile WARNING |
| 2784 |
if (source.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("\\\\"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 2785 |
source=cxx . . $ QString#`operator=`(b79fde0b0ce9b948)."\\\\"+cxx . . $ operator+(c75c3ae4eb9af1a8).source; |
| 2786 |
//source=source.replace("\\","/"); |
| 2787 |
} |
| 2788 |
if (dest.containscxx . . $ QString#contains(7cf081d1b6a1defd).('@'cxx . . $ QChar#QChar(f349c77f591a7878).)||dest.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.)){ |
| 2789 |
args.replacecxx . . $ QString#replace(192e628656427d1c).("\"--restore-nt-streams\""cxx . . $ QString#QString(85c52e162fed56f9).,""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 2790 |
args.appendcxx . . $ QString#append(d02845eef0c33901).(" \"--chmod=u=rwX\" "); |
| 2791 |
// dstremote=true; // luckyb lines to avoid compile WARNING |
| 2792 |
//dest=dest.replace("\\","/"); |
| 2793 |
if (dest.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("\\\\"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 2794 |
dest=cxx . . $ QString#`operator=`(b79fde0b0ce9b948)."\\\\"+cxx . . $ operator+(c75c3ae4eb9af1a8).dest; |
| 2795 |
} |
| 2796 |
//source=fixWinPathForRsync(source,srcremote); |
| 2797 |
//dest=fixWinPathForRsync(dest,dstremote); |
| 2798 |
mapdrivecxx . . $ Global/mapdrive.=cxx . . $ QString#`operator=`(4f35bf974e7f8568).getMapdrivecxx . . $ Global/getMapdrive(4365c3963150523e).(); |
| 2799 |
/* disable vss until... |
| 2800 |
if (vss) |
| 2801 |
{ |
| 2802 |
doVss=1; |
| 2803 |
logstring=" >> \""+pipeVssFile->fileName()+"\" 2>> \""+pipeVssErrFile->fileName()+"\""; |
| 2804 |
|
| 2805 |
|
| 2806 |
if (!setvar.open()) // if the settings file cannot be saved (or fails to create) |
| 2807 |
{ |
| 2808 |
setvar.close(); |
| 2809 |
return ""; |
| 2810 |
} |
| 2811 |
setvar.close(); |
| 2812 |
|
| 2813 |
//QTemporaryFile logfile; |
| 2814 |
//if (!logfile.open()) // if the settings file cannot be saved (or fails to create) |
| 2815 |
//{ |
| 2816 |
// logfile.close(); |
| 2817 |
// return ""; |
| 2818 |
//} |
| 2819 |
logfile.close(); |
| 2820 |
|
| 2821 |
//write arrays to file |
| 2822 |
if (!command1.open(QIODevice::WriteOnly | QIODevice::Text)) // if the settings file cannot be saved (or fails to create) |
| 2823 |
{ |
| 2824 |
command1.close(); |
| 2825 |
return ""; |
| 2826 |
} |
| 2827 |
|
| 2828 |
QTextStream outCommand1(&command1); |
| 2829 |
outCommand1 << "\n@ECHO OFF"; |
| 2830 |
outCommand1 << "\nECHO DOING RSYNC >> \""+pipeVssFile->fileName()+"\" "; |
| 2831 |
//outCommand1 << "\nECHO \"\" > \""+pipeVssErrFile->fileName()+"\""; |
| 2832 |
outCommand1 << "\nSETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION "; |
| 2833 |
|
| 2834 |
outCommand1 << "\nCALL "+setvar.fileName(); |
| 2835 |
|
| 2836 |
outCommand1 << "\n\""+Operation[currentOperation] -> GetDosdevCommand()+"\" "+mapdrive+": %SHADOW_DEVICE_1% >> \""+pipeVssFile->fileName()+"\" 2>> \""+pipeVssErrFile->fileName()+"\""; |
| 2837 |
outCommand1 << "\n SET SOURCE="+source; |
| 2838 |
if (vss) outCommand1 << "\n SET SOURCE="+mapdrive+"%SOURCE:~1%"; |
| 2839 |
if (!source.contains('@')) outCommand1 << "\n\""+Operation[currentOperation] -> GetCygpathCommand()+"\" \"%SOURCE%\"> "+tempPath+SLASH+"_cygpath.tmp"; |
| 2840 |
else outCommand1 << "\nECHO "+source+"> "+tempPath+SLASH+"_cygpath.tmp"; |
| 2841 |
outCommand1 << "\nSET /p source=< "+tempPath+SLASH+"_cygpath.tmp"; |
| 2842 |
if (!dest.contains('@')) outCommand1 << "\n\""+Operation[currentOperation] -> GetCygpathCommand()+"\" \""+dest+"/\"> "+tempPath+SLASH+"_cygpath.tmp"; |
| 2843 |
else outCommand1 << "\nECHO "+dest+"> "+tempPath+SLASH+"_cygpath.tmp"; |
| 2844 |
outCommand1 << "\nSET /p dest=< "+tempPath+SLASH+"_cygpath.tmp"; |
| 2845 |
outCommand1 << "\nSET HOME="+luckyBackupDir; |
| 2846 |
outCommand1 << "\nSET CYGWIN=nodosfilewarning"; |
| 2847 |
outCommand1 << "\n\""+Operation[currentOperation] -> GetRsyncCommand()+"\" "+args+" \"!source!\" \"!dest!\" >> \""+pipeVssFile->fileName()+"\" 2>> \""+pipeVssErrFile->fileName()+"\""; |
| 2848 |
outCommand1 << "\nSET ACTERR=!ERRORLEVEL! "; |
| 2849 |
|
| 2850 |
outCommand1 << "\nECHO Backing up completed: !ACTERR!. !DATE! !TIME! >> \""+pipeVssFile->fileName()+"\""; |
| 2851 |
|
| 2852 |
outCommand1 << "\nECHO delete shadow device drive mapping >> \""+pipeVssFile->fileName()+"\" 2>> \""+pipeVssErrFile->fileName()+"\""; |
| 2853 |
outCommand1 << "\n\""+Operation[currentOperation] -> GetDosdevCommand()+"\" -r -d "+mapdrive+": 2>NUL "; |
| 2854 |
//outCommand1 << "\nrem del "+setvar.fileName()+" "; |
| 2855 |
//outCommand1 << "\nrem del %0 "; |
| 2856 |
outCommand1 << "\nIF %ACTERR% GTR 0 ( "; |
| 2857 |
outCommand1 << "\nECHO ERROR on backup. %DATE% %TIME% >> \""+pipeVssErrFile->fileName()+"\""; |
| 2858 |
outCommand1 << "\nexit 1 "; |
| 2859 |
outCommand1 << "\n) "; |
| 2860 |
command1.close(); |
| 2861 |
}*/ |
| 2862 |
|
| 2863 |
|
| 2864 |
if (!command2.opencxx . . $ QFile#open(dca164408be960c8).(QIODevicecxx . . $ QIODevice#::WriteOnlycxx . . $ QIODevice#WriteOnly. |cxx . . $ `operator|`(c9e45f682471e48d). QIODevicecxx . . $ QIODevice#::Textcxx . . $ QIODevice#Text.)) // if the settings file cannot be saved (or fails to create) |
| 2865 |
{ |
| 2866 |
command2.closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 2867 |
return ""cxx . . $ QString#QString(85c52e162fed56f9).; |
| 2868 |
} |
| 2869 |
QTextStreamcxx . . $ QTextStream# outCommand2cxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&command2); |
| 2870 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n@ECHO OFF"; |
| 2871 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\nSET tdebug=y"; |
| 2872 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\nSET tdeleteshadows=y"; |
| 2873 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\nSET el=0"; |
| 2874 |
//remove vss and |
| 2875 |
/* disable vss until... |
| 2876 |
if (vss) |
| 2877 |
{ |
| 2878 |
outCommand2 << "\nFOR /F \"tokens=2* delims=[]\" %%A IN ('VER') DO FOR /F \"tokens=2,3 delims=. \" %%B IN (\"%%A\") DO SET WINVER=%%B.%%C"; |
| 2879 |
outCommand2 << "\nSET WINBIT=x86&&IF \"%PROCESSOR_ARCHITECTURE%\" == \"AMD64\" (SET WINBIT=x64) ELSE IF \"%PROCESSOR_ARCHITEW6432%\" == \"AMD64\" SET WINBIT=x64"; |
| 2880 |
outCommand2 << "\nIF %WINVER% LSS 5.1 ("; |
| 2881 |
outCommand2 << "\n ECHO Sorry, %this% cannot run under this version of Windows %WINVER%-%WINBIT% " + logstring; |
| 2882 |
outCommand2 << "\n SET el=12"; |
| 2883 |
outCommand2 << "\n GOTO :ennd"; |
| 2884 |
outCommand2 << "\n)"; |
| 2885 |
outCommand2 << "\nSET VSHADOWVER=%WINVER%"; |
| 2886 |
outCommand2 << "\nIF %WINVER%==5.1 SET VSHADOWVER=xp&&SET WINBIT=x86"; |
| 2887 |
outCommand2 << "\nIF %WINVER%==5.2 SET VSHADOWVER=2003&&SET WINBIT=x86"; |
| 2888 |
outCommand2 << "\nIF %WINVER%==6.0 SET VSHADOWVER=2008"; |
| 2889 |
outCommand2 << "\nIF %WINVER%==6.1 SET VSHADOWVER=2008-r2"; |
| 2890 |
outCommand2 << "\nCD "+tempPath+""; |
| 2891 |
outCommand2 << "\n IF NOT \"%tdeleteshadows%\"==\"y\" ("; |
| 2892 |
outCommand2 << "\n IF \"%tdebug%\"==\"y\" ECHO Skipping deletion of any existing shadow copies " + logstring; |
| 2893 |
outCommand2 << "\n ) ELSE ("; |
| 2894 |
outCommand2 << "\n IF \"%tdebug%\"==\"y\" ECHO About to delete any existing shadow copies " + logstring; |
| 2895 |
outCommand2 << "\n ECHO y|\""+Operation[currentOperation] -> GetVshadowDir()+SLASH+"vshadow-%VSHADOWVER%-%WINBIT%.exe\" -da>nul"; |
| 2896 |
outCommand2 << "\n IF ERRORLEVEL 1 ("; |
| 2897 |
outCommand2 << "\n IF \"%tdebug%\"==\"y\" ECHO Error occurred: testing for administrator permissions " + logstring; |
| 2898 |
outCommand2 << "\n IF EXIST \"%windir%\\system32\\test\" RMDIR \"%windir%\\system32\\__test\" 2>nul"; |
| 2899 |
outCommand2 << "\n VERIFY>NUL"; |
| 2900 |
outCommand2 << "\n MKDIR \"%windir%\\system32\\test\" 2>nul"; |
| 2901 |
outCommand2 << "\n IF ERRORLEVEL 1 ("; |
| 2902 |
outCommand2 << "\n REM not running as administrator, this is cause of failure" + logstring; |
| 2903 |
outCommand2 << "\n IF \"%tdebug%\"==\"y\" ECHO No administrator permissions " + logstring; |
| 2904 |
outCommand2 << "\n SET /A el=11"; |
| 2905 |
outCommand2 << "\n ) ELSE ("; |
| 2906 |
outCommand2 << "\n ECHO running as administrator, there is a problem with vshadow" + logstring; |
| 2907 |
outCommand2 << "\n RMDIR \"%windir%\\system32\\__test"; |
| 2908 |
outCommand2 << "\n SET /A el=7"; |
| 2909 |
outCommand2 << "\n )"; |
| 2910 |
outCommand2 << "\n GOTO :endd"; |
| 2911 |
outCommand2 << "\n )"; |
| 2912 |
outCommand2 << "\n IF \"%tdebug%\"==\"y\" ECHO Deleted any existing shadow copies " + logstring; |
| 2913 |
outCommand2 << "\n )"; |
| 2914 |
outCommand2 << "\n \""+Operation[currentOperation] -> GetVshadowDir()+SLASH+"vshadow-%VSHADOWVER%-%WINBIT%.exe\" -script=\""+setvar.fileName()+"\" -exec=\""+command1.fileName()+"\" "+source.left(1)+": "; |
| 2915 |
outCommand2 << "\n SET el=%ERRORLEVEL%"; |
| 2916 |
outCommand2 << "\n del "+tempPath+"/_cygpath.tmp 2>nul"; |
| 2917 |
//outCommand2 << "\ncall \""+setvar.fileName()+"\""; |
| 2918 |
//outCommand2 << "\n \""+dosdevCommand+"\" "+mapdrive+": %SHADOW_DEVICE_1% "; |
| 2919 |
//outCommand2 << "\n \""+vshadowDir+SLASH+"vshadow-%VSHADOWVER%-%WINBIT%.exe\" -ds=%SHADOW_ID_1%"; |
| 2920 |
if (!logGui){ |
| 2921 |
outCommand2 << "\nTYPE \""+pipeVssFile->fileName()+"\" "; |
| 2922 |
outCommand2 << "\nTYPE \""+pipeVssErrFile->fileName()+"\" 1>&2"; |
| 2923 |
} |
| 2924 |
} |
| 2925 |
|
| 2926 |
else {*/ |
| 2927 |
if (!source.containscxx . . $ QString#contains(7cf081d1b6a1defd).('@'cxx . . $ QChar#QChar(f349c77f591a7878).)) outCommand2 <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). "\n\""+cxx . . $ operator+(c75c3ae4eb9af1a8).Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetCygpathCommandcxx . . $ operation#GetCygpathCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" \""+cxx . . $ operator+(fab9b4f80031f353).source+cxx . . $ operator+(3d22f08efddf8107)."\"> "+cxx . . $ operator+(fab9b4f80031f353).tempPath+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(3d22f08efddf8107)."_cygpath.tmp"; |
| 2928 |
else outCommand2 <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). "\nECHO "+cxx . . $ operator+(c75c3ae4eb9af1a8).source+cxx . . $ operator+(3d22f08efddf8107)."> "+cxx . . $ operator+(fab9b4f80031f353).tempPath+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(3d22f08efddf8107)."_cygpath.tmp"; |
| 2929 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). "\nSET /p source=< "+cxx . . $ operator+(c75c3ae4eb9af1a8).tempPath+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(3d22f08efddf8107)."_cygpath.tmp"; |
| 2930 |
if (!dest.containscxx . . $ QString#contains(7cf081d1b6a1defd).('@'cxx . . $ QChar#QChar(f349c77f591a7878).)) outCommand2 <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). "\n\""+cxx . . $ operator+(c75c3ae4eb9af1a8).Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetCygpathCommandcxx . . $ operation#GetCygpathCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" \""+cxx . . $ operator+(fab9b4f80031f353).dest+cxx . . $ operator+(3d22f08efddf8107)."/\"> "+cxx . . $ operator+(fab9b4f80031f353).tempPath+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(3d22f08efddf8107)."_cygpath.tmp"; |
| 2931 |
else outCommand2 <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). "\nECHO "+cxx . . $ operator+(c75c3ae4eb9af1a8).dest+cxx . . $ operator+(3d22f08efddf8107)."> "+cxx . . $ operator+(fab9b4f80031f353).tempPath+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(3d22f08efddf8107)."_cygpath.tmp"; |
| 2932 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). "\nSET /p dest=< "+cxx . . $ operator+(c75c3ae4eb9af1a8).tempPath+cxx . . $ operator+(fab9b4f80031f353).SLASHcxx . . $ Global/SLASH.+cxx . . $ operator+(3d22f08efddf8107)."_cygpath.tmp"; |
| 2933 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). "\nSET HOME="+cxx . . $ operator+(c75c3ae4eb9af1a8).luckyBackupDircxx . . $ Global/luckyBackupDir.; |
| 2934 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\nSET CYGWIN=nodosfilewarning"; |
| 2935 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). "\n \""+cxx . . $ operator+(c75c3ae4eb9af1a8).Operationcxx . . $ Global/Operation.[currentOperationcxx . . $ Global/currentOperation.] -> GetRsyncCommandcxx . . $ operation#GetRsyncCommand(6ef7b6c27b00b43d).()+cxx . . $ operator+(3d22f08efddf8107)."\" "+cxx . . $ operator+(fab9b4f80031f353).args+cxx . . $ operator+(3d22f08efddf8107)." \"%source%\" \"%dest%\" "; |
| 2936 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n SET el=%ERRORLEVEL%"; |
| 2937 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). "\ndel "+cxx . . $ operator+(c75c3ae4eb9af1a8).tempPath+cxx . . $ operator+(3d22f08efddf8107)."/_cygpath.tmp 2>nul"; |
| 2938 |
/* disable vss until... |
| 2939 |
} */ |
| 2940 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\n:ennd"; |
| 2941 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\nIF %el% neq 0 exit /b %el%"; |
| 2942 |
//outCommand2 << "\ndel \""+command1.fileName().replace("/",SLASH+"")+"\""; |
| 2943 |
//outCommand2 << "\nstart \"rsync.bat\" /min cmd /C del \"%0\" >nul 2>&1"; |
| 2944 |
outCommand2 <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "\nECHO BACKUP OK"; |
| 2945 |
QStringcxx . . $ QString# ret=command2.fileNamecxx . . $ QFile#fileName(6ef7b6c27b00b43d).(); |
| 2946 |
command2.closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).(); |
| 2947 |
return retcxx . . $ QString#QString(28715ad661ad3cec).; |
| 2948 |
} |
| 2949 |
void setAppDircxx . . $ Global/setAppDir(7df51288a9ebd664).(QStringcxx . . $ QString# s){ |
| 2950 |
luckyBackupDircxx . . $ Global/luckyBackupDir. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). s; |
| 2951 |
settingsFilecxx . . $ Global/settingsFile. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "settings.ini"; // settings file |
| 2952 |
profileDircxx . . $ Global/profileDir. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "profiles/"; // profiles directory |
| 2953 |
defaultProfilecxx . . $ Global/defaultProfile. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). profileDircxx . . $ Global/profileDir. +cxx . . $ operator+(3d22f08efddf8107). "default.profile"; // default profile |
| 2954 |
standardDefaultProfilecxx . . $ Global/standardDefaultProfile. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). profileDircxx . . $ Global/profileDir. +cxx . . $ operator+(3d22f08efddf8107). "default.profile"; // standard default profile |
| 2955 |
logDircxx . . $ Global/logDir. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "logs/"; // logs directory |
| 2956 |
logfilenamecxx . . $ Global/logfilename. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). logDircxx . . $ Global/logDir. +cxx . . $ operator+(3d22f08efddf8107). "logfile.log"; // logfile filename - this will change according to the profile an task executed |
| 2957 |
snapChangesDircxx . . $ Global/snapChangesDir. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "snaps/"; // Snapshots changes files are stored here. It lies inside ~ |
| 2958 |
snapEmptyDircxx . . $ Global/snapEmptyDir. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). snapChangesDircxx . . $ Global/snapChangesDir. +cxx . . $ operator+(3d22f08efddf8107). "EMPTY/"; // empty directory used to delete older snapshots |
| 2959 |
snapchangesfilenamecxx . . $ Global/snapchangesfilename. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). snapChangesDircxx . . $ Global/snapChangesDir. +cxx . . $ operator+(3d22f08efddf8107). "changes.log"; // Snapshot changes filename. This will change according to the snapshot |
| 2960 |
snapChangesStringcxx . . $ Global/snapChangesString. =cxx . . $ QString#`operator=`(d02845eef0c33901). "[changed_data]%i[LB]%n"; // The log lines format of the "changes" file that stores changes made for every snapshot |
| 2961 |
scheduleDircxx . . $ Global/scheduleDir. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). luckyBackupDircxx . . $ Global/luckyBackupDir. +cxx . . $ operator+(3d22f08efddf8107). "schedule/"; // schedule directory |
| 2962 |
schedulefilenamecxx . . $ Global/schedulefilename. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). scheduleDircxx . . $ Global/scheduleDir. +cxx . . $ operator+(3d22f08efddf8107). "schedule.dat"; // cron data filename |
| 2963 |
cronfilenamecxx . . $ Global/cronfilename. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). scheduleDircxx . . $ Global/scheduleDir. +cxx . . $ operator+(3d22f08efddf8107). "luckyCron.txt"; // cron filename |
| 2964 |
} |
| 2965 |
} |
| 2966 |
// end of global.cpp --------------------------------------------------------------------------- |
| 2967 |
|