Debian Codegraph @

src/commandline.h

raw symbols SCIP
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_H
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 commandline
44 {
45 public:
46 commandline ();
47 ~commandline();
48
49 void rsyncIT(); //perform rsync execution
50 void thats_all(); //display a "finished" message
51 int result(); //executes all necessary function & returns an integer
52
53 int count; //simple count variable !!
54 QString CheckedData; //String holding the ok - notOK message after the backup dirs check
55
56 private:
57 char* profileNameArg; //holds the profile as given at the command line
58 void intro(); //display an intro message
59 int errorCount; // error counter for a specific task execution
60
61 };
62
63 #endif
64 // end of commandline.h---------------------------------------------------------
65