diff options
author | louis <louis.braun@gmx.de> | 2013-04-07 10:39:42 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-04-07 10:39:42 +0200 |
commit | fba3191de71867e91eb51cde93136fcdda64c0ab (patch) | |
tree | e99221ec2c9a7dc612b7e818c4b544a0c1e65a1d /nopacity.c | |
parent | 518e7e87332e2b53e9f3e5f9fc853abaec2b360f (diff) | |
download | skin-nopacity-fba3191de71867e91eb51cde93136fcdda64c0ab.tar.gz skin-nopacity-fba3191de71867e91eb51cde93136fcdda64c0ab.tar.bz2 |
Added RSS Feed support
Diffstat (limited to 'nopacity.c')
-rw-r--r-- | nopacity.c | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -2,6 +2,7 @@ #include <vdr/menu.h> static cTheme Theme; +static bool menuActive = false; //COMMON #define CLR_TRANSBLACK 0xDD000000 @@ -131,6 +132,7 @@ cNopacityConfig config; #include "imageloader.c" #include "nopacity.h" #include "helpers.c" +#include "rssreader.c" #include "displaychannel.c" #include "textwindow.c" #include "timers.c" @@ -143,8 +145,12 @@ cNopacityConfig config; #include "displaytracks.c" #include "displaymessage.c" + + cNopacity::cNopacity(void) : cSkin("nOpacity", &::Theme) { + displayMenu = NULL; config.setDynamicValues(); + config.loadRssFeeds(); } const char *cNopacity::Description(void) { @@ -156,7 +162,10 @@ cSkinDisplayChannel *cNopacity::DisplayChannel(bool WithInfo) { } cSkinDisplayMenu *cNopacity::DisplayMenu(void) { - return new cNopacityDisplayMenu; + cNopacityDisplayMenu *menu = new cNopacityDisplayMenu; + displayMenu = menu; + menuActive = true; + return menu; } cSkinDisplayReplay *cNopacity::DisplayReplay(bool ModeOnly) { @@ -175,3 +184,14 @@ cSkinDisplayMessage *cNopacity::DisplayMessage(void) { return new cNopacityDisplayMessage; } +void cNopacity::svdrpSwitchRss(void) { + if (menuActive) { + displayMenu->SwitchNextRssFeed(); + } +} + +void cNopacity::svdrpSwitchMessage(void) { + if (menuActive) { + displayMenu->SwitchNextRssMessage(); + } +}
\ No newline at end of file |