| 1 | /*-------------------------commandline.h------------------------------------------ |
| 2 | header file for commandline.cpp |
| 3 | |
| 4 | =============================================================================================================================== |
| 5 | =============================================================================================================================== |
| 6 | This file is part of "luckyBackup" project |
| 7 | Copyright, Loukas Avgeriou |
| 8 | luckyBackup is distributed under the terms of the GNU General Public License |
| 9 | luckyBackup is free software: you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by |
| 11 | the Free Software Foundation, either version 3 of the License, or |
| 12 | (at your option) any later version. |
| 13 | |
| 14 | luckyBackup is distributed in the hope that it will be useful, |
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | GNU General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License |
| 20 | along with luckyBackup. If not, see <http://www.gnu.org/licenses/>. |
| 21 | |
| 22 | project version : Please see "main.cpp" for project version |
| 23 | |
| 24 | developer : luckyb |
| 25 | last modified : 22 May 2016 |
| 26 | =============================================================================================================================== |
| 27 | =============================================================================================================================== |
| 28 | |
| 29 | runs luckybackup in command line mode |
| 30 | */ |
| 31 | |
| 32 | #ifndef COMMANDLINE_H |
| 33 | #define COMMANDLINE_Hcxx . . $ `src/commandline.h:33:9`! |
| 34 | |
| 35 | #include <iostream> |
| 36 | |
| 37 | using namespace std; |
| 38 | |
| 39 | #include <QString> |
| 40 | |
| 41 | //============================================================================================================== |
| 42 | //Declaration of commandline class (this is the class that runs luckybackup in command line mode) |
| 43 | class commandlinecxx . . $ commandline# |
| 44 | { |
| 45 | public: |
| 46 | commandlinecxx . . $ commandline#commandline(49f6e7a06ebc5aa8). (); |
| 47 | ~cxx . . $ commandline#`~commandline`(ced63f7c635d850d).commandlinecxx . . $ commandline#(); |
| 48 | |
| 49 | void rsyncITcxx . . $ commandline#rsyncIT(49f6e7a06ebc5aa8).(); //perform rsync execution |
| 50 | void thats_allcxx . . $ commandline#thats_all(49f6e7a06ebc5aa8).(); //display a "finished" message |
| 51 | int resultcxx . . $ commandline#result(b126dc7c1de90089).(); //executes all necessary function & returns an integer |
| 52 | |
| 53 | int countcxx . . $ commandline#count.; //simple count variable !! |
| 54 | QStringcxx . . $ QString# CheckedDatacxx . . $ commandline#CheckedData.; //String holding the ok - notOK message after the backup dirs check |
| 55 | |
| 56 | private: |
| 57 | char* profileNameArgcxx . . $ commandline#profileNameArg.; //holds the profile as given at the command line |
| 58 | void introcxx . . $ commandline#intro(49f6e7a06ebc5aa8).(); //display an intro message |
| 59 | int errorCountcxx . . $ commandline#errorCount.; // error counter for a specific task execution |
| 60 | |
| 61 | }; |
| 62 | |
| 63 | #endif |
| 64 | // end of commandline.h--------------------------------------------------------- |
| 65 |