4 // #include <lib/system/nconfig.h>
7 #include <lib/base/estring.h>
9 class eConfig
// : public NConfig
11 static eConfig
*instance
;
14 std::map
<eString
, int> keys_int
;
15 std::map
<eString
, eString
> keys_string
;
16 std::map
<eString
, unsigned int> keys_uint
;
17 std::map
<eString
, double> keys_double
;
21 static eConfig
*getInstance() { return instance
; }
22 void setParentalPin( int pin
)
25 setKey("/elitedvb/pins/parentallock", ppin
);
27 int getParentalPin() { return ppin
; }
30 int tmp
= ppin
&& locked
;
34 if (eConfig::getInstance()->getKey("/elitedvb/hidelocked", hidelocked
))
43 int getKey(const char *, int &);
44 int getKey(const char *, unsigned int &);
45 int getKey(const char *, double &);
46 int getKey(const char *, char * &string
);
48 int setKey(const char *, const int &);
49 int setKey(const char *, const unsigned int &);
50 int setKey(const char *, const double &);
51 int setKey(const char *, const char *);
53 void delKey(const char *);
61 class eSimpleConfigFile
64 std::map
<eString
, eString
> config
;
67 eSimpleConfigFile(const char *filename
);
68 eString
getInfo(const char *info
);
69 void setInfo(const char *info
, const char* value
);
70 void Save(const char *filename
);