aboutsummaryrefslogtreecommitdiff
path: root/lib/base/econfig.h
blob: d9f3becda1e84f54bc6aeffd861cd67e7271efcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __econfig_h
#define __econfig_h

#include <lib/base/nconfig.h>

class eConfig: public NConfig
{
	static eConfig *instance;
	int ppin;
public:
	int locked;
	static eConfig *getInstance() { return instance; }
	void setParentalPin( int pin )
	{
		 ppin = pin;
		 setKey("/elitedvb/pins/parentallock", ppin );
	}
	int getParentalPin() { return ppin; }
	bool pLockActive()
	{
		return ppin && locked;
	}
	eConfig();
	~eConfig();
};

#endif