diff options
author | louis <louis.braun@gmx.de> | 2016-02-14 15:54:36 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2016-02-14 15:54:36 +0100 |
commit | 2a9b9bb8fa3226558dcba732d841c46713104688 (patch) | |
tree | 1c7d87fd3bdeb93b6d27b8e65f453efad54a72d0 /coreengine | |
parent | 210dc8d8ccabe8d038404a2cedfd033d92589b0b (diff) | |
download | vdr-plugin-skindesigner-2a9b9bb8fa3226558dcba732d841c46713104688.tar.gz vdr-plugin-skindesigner-2a9b9bb8fa3226558dcba732d841c46713104688.tar.bz2 |
added isEncrypted Token to displaymenuchannels
Diffstat (limited to 'coreengine')
-rw-r--r-- | coreengine/definitions.h | 2 | ||||
-rw-r--r-- | coreengine/listelements.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/coreengine/definitions.h b/coreengine/definitions.h index cb8e8a2..7178ecf 100644 --- a/coreengine/definitions.h +++ b/coreengine/definitions.h @@ -803,6 +803,7 @@ enum class eLeMenuChannelsIT { isCable, isSat, isTerr, + isEncrypted, count }; @@ -845,6 +846,7 @@ enum class eCeMenuChannelsIT { isCable, isSat, isTerr, + isEncrypted, presenteventduration, presenteventdurationhours, presenteventelapsed, diff --git a/coreengine/listelements.c b/coreengine/listelements.c index f0b6a00..a22a752 100644 --- a/coreengine/listelements.c +++ b/coreengine/listelements.c @@ -819,6 +819,7 @@ void cLeMenuChannels::SetTokenContainer(void) { tokenContainer->DefineIntToken("{isCable}", (int)eLeMenuChannelsIT::isCable); tokenContainer->DefineIntToken("{isSat}", (int)eLeMenuChannelsIT::isSat); tokenContainer->DefineIntToken("{isTerr}", (int)eLeMenuChannelsIT::isTerr); + tokenContainer->DefineIntToken("{isEncrypted}", (int)eLeMenuChannelsIT::isEncrypted); InheritTokenContainer(); } @@ -845,6 +846,7 @@ bool cLeMenuChannels::Parse(bool forced) { tokenContainer->AddIntToken((int)eLeMenuChannelsIT::number, channel->Number()); tokenContainer->AddIntToken((int)eLeMenuChannelsIT::transponder, channel->Transponder()); tokenContainer->AddIntToken((int)eLeMenuChannelsIT::frequency, channel->Frequency()); + tokenContainer->AddIntToken((int)eLeMenuChannelsIT::isEncrypted, channel->Ca()); tokenContainer->AddStringToken((int)eLeMenuChannelsST::name, channel->Name()); cString channelID = channel->GetChannelID().ToString(); @@ -934,6 +936,7 @@ void cCeMenuChannels::SetTokenContainer(void) { tokenContainer->DefineIntToken("{isCable}", (int)eCeMenuChannelsIT::isCable); tokenContainer->DefineIntToken("{isSat}", (int)eCeMenuChannelsIT::isSat); tokenContainer->DefineIntToken("{isTerr}", (int)eCeMenuChannelsIT::isTerr); + tokenContainer->DefineIntToken("{isEncrypted}", (int)eCeMenuChannelsIT::isEncrypted); tokenContainer->DefineIntToken("{presenteventelapsed}", (int)eCeMenuChannelsIT::presenteventelapsed); tokenContainer->DefineIntToken("{presenteventduration}", (int)eCeMenuChannelsIT::presenteventduration); tokenContainer->DefineIntToken("{presenteventdurationhours}", (int)eCeMenuChannelsIT::presenteventdurationhours); @@ -969,6 +972,7 @@ bool cCeMenuChannels::Parse(bool forced) { tokenContainer->AddIntToken((int)eCeMenuChannelsIT::number, channel->Number()); tokenContainer->AddIntToken((int)eCeMenuChannelsIT::transponder, channel->Transponder()); tokenContainer->AddIntToken((int)eCeMenuChannelsIT::frequency, channel->Frequency()); + tokenContainer->AddIntToken((int)eCeMenuChannelsIT::isEncrypted, channel->Ca()); tokenContainer->AddStringToken((int)eCeMenuChannelsST::name, channel->Name()); cString channelID = channel->GetChannelID().ToString(); |