summaryrefslogtreecommitdiff
path: root/libtemplate/globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtemplate/globals.h')
-rw-r--r--libtemplate/globals.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/libtemplate/globals.h b/libtemplate/globals.h
deleted file mode 100644
index 12ee917..0000000
--- a/libtemplate/globals.h
+++ /dev/null
@@ -1,63 +0,0 @@
-#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:
- time_t customTokenChange;
- time_t lastCustomTokenQuery;
- string language;
- string DoTranslate(string token);
- map <string, tColor> colors;
- map <string, string> fonts;
- map <string, int> intVars;
- map <string, double> doubleVars;
- map <string, string> stringVars;
- map <string, map< string, string > > translations;
- map <string, string> customStringTokens;
- map <string, int> customIntTokens;
-public:
- cGlobals(void);
- virtual ~cGlobals(void) {};
- bool ReadFromXML(void);
- void AddColor(string &name, tColor &col);
- bool GetColor(string &name, tColor &col);
- void AddFont(string &name, string &font);
- bool GetFont(string name, string &font);
- void AddInt(string &name, int value);
- void ReplaceIntVars(string &value);
- bool GetInt(string name, int &val);
- void AddDouble(string &name, string &value);
- void ReplaceDoubleVars(string &value);
- void AddString(string &name, string &value);
- void ReplaceStringVars(string &value);
- bool GetString(string &name, string &value);
- bool AddTranslation(string name, map < string, string > transl);
- bool Translate(string text, string &translation);
- void AddCustomInt(string &name, int value);
- void AddCustomString(string &name, string &value);
- bool GetCustomInt(string name, int &val);
- map <string, string> GetCustomStringTokens(void);
- map <string, int> GetCustomIntTokens(void);
- bool CustomTokenChange(void);
- void ListCustomTokens(void);
- void Debug(void);
-};
-
-#endif //__XMLGLOBALS_H \ No newline at end of file