blob: 17f5242126fefc6459b01ab4d92126f667f42f45 (
plain)
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
|
#ifndef __XMLGLOBALS_H
#define __XMLGLOBALS_H
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <sstream>
#include <vdr/plugin.h>
using namespace std;
typedef uint32_t tColor;
// --- cGlobals -------------------------------------------------------------
class cGlobals {
private:
string language;
string DoTranslate(string token);
public:
cGlobals(void);
virtual ~cGlobals(void) {};
map <string, tColor> colors;
map <string, int> intVars;
map <string, double> doubleVars;
map <string, string> stringVars;
map <string, string> fonts;
map <string, map< string, string > > translations;
map <string, string> customStringTokens;
map <string, int> customIntTokens;
bool ReadFromXML(void);
bool Translate(string text, string &translation);
void Debug(void);
};
#endif //__XMLGLOBALS_H
|