2014-09-27 09:25:14 +02:00
|
|
|
#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;
|
2014-10-10 15:32:38 +02:00
|
|
|
map <string, double> doubleVars;
|
2014-09-27 09:25:14 +02:00
|
|
|
map <string, string> stringVars;
|
|
|
|
map <string, string> fonts;
|
|
|
|
map <string, map< string, string > > translations;
|
2014-12-19 15:39:21 +01:00
|
|
|
map <string, string> customStringTokens;
|
|
|
|
map <string, int> customIntTokens;
|
2014-09-27 09:25:14 +02:00
|
|
|
bool ReadFromXML(void);
|
|
|
|
bool Translate(string text, string &translation);
|
|
|
|
void Debug(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__XMLGLOBALS_H
|