neutrino pin check: add possibility to manipulate head title and hint text

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


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

Origin message was:
------------------
*neutrino pin check: add possibility to manipulate head title and hint text

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


------------------
This commit was generated by Migit
This commit is contained in:
2012-01-01 21:43:12 +00:00
parent b580fe3541
commit 9f5614c442
2 changed files with 17 additions and 8 deletions

View File

@@ -479,9 +479,17 @@ class CPINProtection
char* validPIN;
bool check();
virtual CMenuTarget* getParent() = 0;
neutrino_locale_t title, hint;
public:
CPINProtection( char* validpin){ validPIN = validpin;};
CPINProtection( char* validpin)
{
validPIN = validpin;
hint = NONEXISTANT_LOCALE;
title = LOCALE_PINPROTECTION_HEAD;
};
virtual ~CPINProtection(){}
virtual void setTitle(neutrino_locale_t Title){title = Title;};
virtual void setHint(neutrino_locale_t Hint){ hint = Hint;};
};
class CZapProtection : public CPINProtection
@@ -491,7 +499,11 @@ class CZapProtection : public CPINProtection
public:
int fsk;
CZapProtection( char* validpin, int FSK ) : CPINProtection(validpin){ fsk= FSK; };
CZapProtection( char* validpin, int FSK ) : CPINProtection(validpin)
{
fsk = FSK;
title = LOCALE_PARENTALLOCK_HEAD;
};
bool check();
};