-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCApp.h
68 lines (53 loc) · 1.79 KB
/
CApp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* This software is a part to the amonsoft solution
*
* Copyright Amon & Sesam Micro
* Developper contact [email protected]
*
* $Id: CApp.h,v 1.4 2006/11/09 13:39:48 pascal Exp $
*/
#ifndef CAPP_H_
# define CAPP_H_
#include <list>
#include "CrashReport/debug.h"
#include "Forms/amonsoft.h"
// Preferences
#include "Preferences/CPreferences.h"
#define APP_VERSION "0.2.6"
#define STR_APP_VERSION "0.2 build 6"
#define CONF_COMPTABILITY "0.1.10"
#define CONF_VERSION "0.2.5"
// Be carefull to include the good files.
#define M_MESSAGEBOX_CRITIC( a, b ) QMessageBox::critical ( g_gui, \
a, \
b, \
QMessageBox::Ok, \
QMessageBox::NoButton );
class CParser;
class CApp;
extern CParser *g_Parser;
extern CParser *g_ParserEntses;
extern CParser *g_ParserFamille;
extern Preferences::CPreferences *g_Preferences;
extern dlgAmonSoft *g_gui;
extern CApp *g_App;
class CApp
{
private:
int argc_;
char **argv_;
public:
// Constructor
CApp( int argc, char **argv );
void runApp();
private:
// Load datas from XML
int loadXercesData( dlgAmonSoft & ); // Must be the first one
int loadXercesDataFamille( dlgAmonSoft & );
int loadXercesDataEntses( dlgAmonSoft & );
public:
// Save datas to XML
void saveXercesData();
void makeBackup();
};
#endif /* CAPP_H_ */