ToolMap
Loading...
Searching...
No Matches
tmprojectupdater.h
1
/***************************************************************************
2
tmprojectupdater.h
3
-------------------
4
copyright : (C) 2011 CREALP Lucien Schreiber
5
***************************************************************************/
6
7
/***************************************************************************
8
* *
9
* This program 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 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef _TMPROJECTUPDATER_H
17
#define _TMPROJECTUPDATER_H
18
19
// For compilers that support precompilation, includes "wx/wx.h".
20
#include <wx/wxprec.h>
21
22
// Include wxWidgets' headers
23
#ifndef WX_PRECOMP
24
#include <wx/wx.h>
25
#endif
26
27
#include "../database/database_tm.h"
28
29
enum
tmPRJ_UPD_ERROR {
30
tmPRJ_UPD_ERROR_OK = 1,
// No update error
31
tmPRJ_UPD_ERROR_PROJECT,
// Error during updating project
32
tmPRJ_UPD_ERROR_TM
// Error ToolMap is too old
33
};
34
35
class
tmProjectUpdater
{
36
private
:
37
DataBaseTM
* m_pDB;
38
39
bool
_SetVersion(
int
versionnumber);
40
41
bool
_220to221();
42
43
bool
_221to222();
44
45
bool
_222to223();
46
47
bool
_223to224();
48
49
bool
_224to225();
50
51
bool
_225to226();
52
53
bool
_226to227();
54
55
bool
_227to228();
56
57
bool
_228to229();
58
59
bool
_229to230();
60
61
bool
_230to231();
62
63
bool
_231to232();
64
65
bool
_232to233();
66
67
public
:
68
tmProjectUpdater
(
DataBaseTM
* database);
69
70
virtual
~tmProjectUpdater
();
71
72
bool
IsCorrectVersion();
73
74
tmPRJ_UPD_ERROR DoUpdate();
75
};
76
77
#endif
DataBaseTM
Definition
database_tm.h:80
tmProjectUpdater
Definition
tmprojectupdater.h:35
src
core
tmprojectupdater.h
Generated by
1.9.8