This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCentralList.h
75 lines (64 loc) · 1.62 KB
/
CentralList.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
69
70
71
72
73
74
75
#pragma once
/*
kUpdate - obs³uga listy centralek...
(C)2004 Stamina
Rights reserved
*/
namespace kUpdate {
/*
Ustawienia listy przechowywane s¹ w dotychczasowej lokalizacji w postaci:
!http://adres_centralki?opcje=wartosci
*/
namespace CentralList {
class ItemBase {
protected:
bool _default;
bool _value;
bool _required;
CStdString _name;
ShowBits::enLevel _level;
int _action;
bool _main;
public:
CStdString getValue();
void setValue(CStdString value);
};
class Option : ItemBase {
private:
bool _sendAlways;
public:
Option(const CStdString source);
CStdString serialize();
void unserialize(const CStdString url);
int actionProc(sUIActionNotify_base * anBase);
class Item * getParent();
};
class Item : ItemBase {
private:
CStdString _url;
typedef deque <Option> tOptions;
tOptions _options;
public:
Item(const CStdString source);
__inline CStdString getUrl() {return _url;}
CStdString serialize();
void unserialize(const CStdString url);
int actionProc(sUIActionNotify_base * anBase);
};
typedef deque <Item> tItems;
const int actionBranch = 0x14000000;
const int actionHolder = actionBranch | 1;
extern tItems items;
extern int lastAction;
extern bool actionsInstantiated;
const int actionGroup = kUpdate::IMIA::gCfg;
/** Wczytuje listê.
Mo¿e byæ wywo³ane tylko gdzies po #IM_UIPREPARE
*/
void loadList();
CStdString serialize();
void unserialize(const CStdString url);
//unloadList();
int actionProc(sUIActionNotify_base * anBase);
};
};