mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added {newmails} Token in displaychannel statusinfo
This commit is contained in:
parent
c53e9e3a05
commit
5d715edba1
2
HISTORY
2
HISTORY
@ -84,3 +84,5 @@ Version 0.0.5
|
||||
- added {channelnumber} and {channelname} Tokens in displaymenudetailepg
|
||||
detailheader
|
||||
- fixed {hasicon} Token in displaymenu header
|
||||
- added {newmails} Token in displaychannel statusinfo, mailbox plugin
|
||||
has to be installed
|
||||
|
@ -90,6 +90,7 @@
|
||||
{isDolby} true if a dolby audio track is available
|
||||
{isEncrypted} true if channel is encrypted
|
||||
{isRecording} true if currently a recording is running on this channel
|
||||
{newmails} true if mailbox plugin is installed and new mails are available
|
||||
-->
|
||||
<statusinfo>
|
||||
<area x="22%" y="94%" width="76%" height="6%" layer="2">
|
||||
|
@ -57,6 +57,7 @@
|
||||
{isDolby} true if a dolby audio track is available
|
||||
{isEncrypted} true if channel is encrypted
|
||||
{isRecording} true if currently a recording is running on this channel
|
||||
{newmails} true if mailbox plugin is installed and new mails are available
|
||||
-->
|
||||
<statusinfo>
|
||||
</statusinfo>
|
||||
|
@ -212,6 +212,7 @@ void cDisplayChannelView::DrawStatusIcons(const cChannel *Channel) {
|
||||
intTokens.insert(pair<string,int>("isDolby", isDolby));
|
||||
intTokens.insert(pair<string,int>("isEncrypted", isEncrypted));
|
||||
intTokens.insert(pair<string,int>("isRecording", isRecording));
|
||||
intTokens.insert(pair<string,int>("newmails", CheckNewMails()));
|
||||
|
||||
DrawViewElement(veStatusInfo, &stringTokens, &intTokens);
|
||||
}
|
||||
|
@ -155,3 +155,16 @@ bool cViewHelpers::SetDevices(bool initial, map<string,int> *intTokens, vector<m
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
bool cViewHelpers::CheckNewMails(void) {
|
||||
static cPlugin *pMailbox = cPluginManager::GetPlugin("mailbox");
|
||||
if (!pMailbox) {
|
||||
return false;
|
||||
}
|
||||
bool newMail = false;
|
||||
if (pMailbox->Service("MailBox-HasNewMail-1.0", &newMail)) {
|
||||
return newMail;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,7 @@ private:
|
||||
protected:
|
||||
void InitDevices(void);
|
||||
bool SetDevices(bool initial, map<string,int> *intTokens, vector<map<string,string> > *devices);
|
||||
bool CheckNewMails(void);
|
||||
public:
|
||||
cViewHelpers(void);
|
||||
virtual ~cViewHelpers(void);
|
||||
|
Loading…
Reference in New Issue
Block a user