added cardsystem name to ecm info

This commit is contained in:
louis 2015-04-29 18:22:17 +02:00
parent e7d8a193a7
commit 72f445fc57
5 changed files with 7 additions and 1 deletions

View File

@ -302,4 +302,6 @@ Version 0.4.3
- added tokens for progressbars in displamenudefault
- implemented dvbapi service interface, added viewelement ecminfo
in displaychannel
- added cardsystem name to ecm info

View File

@ -9,6 +9,7 @@ struct sDVBAPIEcmInfo {
uint16_t pid;
uint32_t prid;
uint32_t ecmtime;
cString cardsystem;
cString reader;
cString from;
cString protocol;

View File

@ -135,6 +135,7 @@
<!-- Available Variables ecminfo:
{caid} id of currently used CA
{cardsystem} name of currently used CA
{pid} pID
{prid} provider ID
{ecmtime} ecm time in ms
@ -146,7 +147,7 @@
<ecminfo>
<area x="60%" y="95%" width="24%" height="5%" layer="4">
<drawtext x="0" y="5%" font="{semibold}" fontsize="40%" color="{clrWhite}" text="CAID: {caid} Reader: {reader}" />
<drawtext x="0" y="5%" font="{semibold}" fontsize="40%" color="{clrWhite}" text="{cardsystem} Reader: {reader}" />
<drawtext x="0" y="50%" font="{semibold}" fontsize="40%" color="{clrWhite}" text="ECM Time: {ecmtime} ms" />
</area>
</ecminfo>

View File

@ -73,6 +73,7 @@
<!-- Available Variables ecminfo:
{caid} id of currently used CA
{cardsystem} name of currently used CA
{pid} pID
{prid} provider ID
{ecmtime} ecm time in ms

View File

@ -884,6 +884,7 @@ bool cViewHelpers::SetEcmInfos(int channelSid, map < string, string > &stringTok
intTokens.insert(pair<string,int>("ecmtime", ecmInfo.ecmtime));
intTokens.insert(pair<string,int>("hops", ecmInfo.hops));
stringTokens.insert(pair<string,string>("cardsystem", *ecmInfo.cardsystem ? *ecmInfo.cardsystem : ""));
stringTokens.insert(pair<string,string>("reader", *ecmInfo.reader ? *ecmInfo.reader : ""));
stringTokens.insert(pair<string,string>("from", *ecmInfo.from ? *ecmInfo.from : ""));
stringTokens.insert(pair<string,string>("protocol", *ecmInfo.protocol ? *ecmInfo.protocol : ""));