2015-01-19 09:23:15 +01:00
|
|
|
#ifndef __SKINSETUP_H
|
|
|
|
#define __SKINSETUP_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
|
|
|
#include <set>
|
|
|
|
#include <sstream>
|
|
|
|
#include <vdr/plugin.h>
|
|
|
|
#include <libxml/xmlstring.h>
|
2015-01-19 10:50:22 +01:00
|
|
|
#include "../libtemplate/globals.h"
|
2015-01-19 09:23:15 +01:00
|
|
|
#include "skinsetupparameter.h"
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
// --- cSkinSetup -----------------------------------------------------------
|
|
|
|
|
|
|
|
class cSkinSetup {
|
|
|
|
private:
|
|
|
|
string skin;
|
2015-01-19 10:50:22 +01:00
|
|
|
map <string, cSkinSetupParameter> parameters;
|
|
|
|
map <string, map< string, string > > translations;
|
2015-01-19 09:23:15 +01:00
|
|
|
public:
|
|
|
|
cSkinSetup(string skin);
|
|
|
|
virtual ~cSkinSetup(void) {};
|
2015-01-19 10:50:22 +01:00
|
|
|
bool ReadFromXML(void);
|
2015-01-19 09:23:15 +01:00
|
|
|
void SetParameter(xmlChar *type, xmlChar *name, xmlChar* displayText, xmlChar *min, xmlChar *max, xmlChar *value);
|
2015-01-19 10:50:22 +01:00
|
|
|
void SetTranslation(string translationToken, map < string, string > transl);
|
|
|
|
void AddToGlobals(cGlobals *globals);
|
2015-01-19 09:23:15 +01:00
|
|
|
void Debug(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__SKINSETUP_H
|