summaryrefslogtreecommitdiff
path: root/libtemplate/globals.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-09-27 09:25:14 +0200
committerlouis <louis.braun@gmx.de>2014-09-27 09:25:14 +0200
commitb0509b5182b6e0d04f05e6b3d5676b0d21f51966 (patch)
tree22b302342f22843e0815eb5f516c85f1478cbf0b /libtemplate/globals.h
downloadvdr-plugin-skindesigner-0.0.1.tar.gz
vdr-plugin-skindesigner-0.0.1.tar.bz2
initial commit version 0.0.10.0.1
Diffstat (limited to 'libtemplate/globals.h')
-rw-r--r--libtemplate/globals.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/libtemplate/globals.h b/libtemplate/globals.h
new file mode 100644
index 0000000..f7a959e
--- /dev/null
+++ b/libtemplate/globals.h
@@ -0,0 +1,38 @@
+#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, string> stringVars;
+ map <string, string> fonts;
+ map <string, map< string, string > > translations;
+ bool ReadFromXML(void);
+ bool Translate(string text, string &translation);
+ void Debug(void);
+};
+
+#endif //__XMLGLOBALS_H \ No newline at end of file