*neutrino menu classes: show NEUTRINO_ICON_SCRAMBLED if a PIN code request is necessary

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1439 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
thilo
2011-05-06 18:16:17 +00:00
parent dc50d8ea01
commit 59259b3d43

View File

@@ -469,10 +469,19 @@ class CLockedMenuForwarder : public CMenuForwarder, public CPINProtection
public:
CLockedMenuForwarder(const neutrino_locale_t Text, char* _validPIN, bool ask=true, const bool Active=true, char *Option=NULL,
CMenuTarget* Target=NULL, const char * const ActionKey = NULL,
neutrino_msg_t DirectKey = CRCInput::RC_nokey, const char * const IconName = NULL)
neutrino_msg_t DirectKey = CRCInput::RC_nokey, const char * const IconName = NULL, const char * const IconName_Info_right = NULL)
: CMenuForwarder(Text, Active, Option, Target, ActionKey, DirectKey, IconName) ,
CPINProtection(_validPIN){Ask = ask;};
: CMenuForwarder(Text, Active, Option, Target, ActionKey, DirectKey, IconName, IconName_Info_right) ,CPINProtection(_validPIN)
{
Ask = ask;
//if we in ask mode then show NEUTRINO_ICON_SCRAMBLED as default info icon or no icon,
//but use always an info icon if defined in parameter 'IconName_Info_right'
if (IconName_Info_right || ask)
iconName_Info_right = IconName_Info_right ? IconName_Info_right : NEUTRINO_ICON_SCRAMBLED;
else
iconName_Info_right = "";
};
virtual int exec(CMenuTarget* parent);
};