neutrino parental_setup: requesting for pincode in parental setup independently of item in settings menu

this fixes also the correct pin request in settings menu for parental-setup, because personalize-PIN was requested

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2031 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: b408d5487b
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-01-01 (Sun, 01 Jan 2012)

Origin message was:
------------------
*neutrino parental_setup: requesting for pincode in parental setup independently of item in settings menu

this fixes also the correct pin request in settings menu for parental-setup, because personalize-PIN was requested

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2031 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
2012-01-01 21:43:06 +00:00
parent c584e288ac
commit 5eafdb64a1
3 changed files with 19 additions and 19 deletions

View File

@@ -31,19 +31,29 @@
#ifndef __parentallock_setup__
#define __parentallock_setup__
#include <gui/widget/menue.h>
#include <global.h>
#include <neutrino.h>
#include <neutrino_menue.h>
#include <gui/widget/menue.h>
#include <driver/screen_max.h>
#include <string>
class CParentalSetup : public CMenuTarget
class CParentalSetup : public CMenuTarget, public CPINProtection
{
private:
int width;
void showParentalSetup();
protected:
virtual CMenuTarget* getParent() { return( NULL);};
public:
CParentalSetup();
CParentalSetup() : CPINProtection(g_settings.parentallock_pincode)
{
width = w_max (40, 10); //%
};
~CParentalSetup();
int exec(CMenuTarget* parent, const std::string & actionKey);
};