*neutrino personalize: rework pin access

PIN access of  personalize setup now managed with an own pin management.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2105 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
thilo
2012-02-15 18:21:52 +00:00
parent 36a1030a72
commit 3e4f90c194
7 changed files with 61 additions and 8 deletions

View File

@@ -74,6 +74,16 @@ class CUserMenuNotifier : public CChangeObserver
bool changeNotify(const neutrino_locale_t = NONEXISTANT_LOCALE, void *data = NULL);
};
//helper class to enable/disable pin setup
class CPinSetupNotifier : public CChangeObserver
{
private:
CMenuItem* toDisable;
public:
CPinSetupNotifier( CMenuItem*);
bool changeNotify(const neutrino_locale_t = NONEXISTANT_LOCALE, void *data = NULL);
};
//some required typedefs
typedef struct mn_widget_t
@@ -122,10 +132,14 @@ typedef struct personalize_settings_t
} personalize_settings_struct_t;
class CPersonalizeGui : public CMenuTarget, public CChangeObserver
class CPersonalizeGui : public CMenuTarget, public CChangeObserver, public CPINProtection
{
protected:
virtual CMenuTarget* getParent() { return( NULL);};
private:
CUserMenuNotifier *user_menu_notifier;
CPinSetupNotifier *pin_setup_notifier;
CMenuWidget* fkeyMenu;
CMenuWidget* plMenu;
CMenuWidget* tmpW;