summaryrefslogtreecommitdiff
path: root/skinnopacity.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-04-07 10:39:42 +0200
committerlouis <louis.braun@gmx.de>2013-04-07 10:39:42 +0200
commitfba3191de71867e91eb51cde93136fcdda64c0ab (patch)
treee99221ec2c9a7dc612b7e818c4b544a0c1e65a1d /skinnopacity.c
parent518e7e87332e2b53e9f3e5f9fc853abaec2b360f (diff)
downloadskin-nopacity-fba3191de71867e91eb51cde93136fcdda64c0ab.tar.gz
skin-nopacity-fba3191de71867e91eb51cde93136fcdda64c0ab.tar.bz2
Added RSS Feed support
Diffstat (limited to 'skinnopacity.c')
-rw-r--r--skinnopacity.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/skinnopacity.c b/skinnopacity.c
index de87064..0ca03ea 100644
--- a/skinnopacity.c
+++ b/skinnopacity.c
@@ -21,6 +21,7 @@ static const char *MAINMENUENTRY = "nOpacity";
class cPluginNopacity : public cPlugin {
private:
+ cNopacity *nopacity;
public:
cPluginNopacity(void);
virtual ~cPluginNopacity();
@@ -46,6 +47,7 @@ public:
cPluginNopacity::cPluginNopacity(void)
{
+ nopacity = NULL;
}
cPluginNopacity::~cPluginNopacity()
@@ -107,7 +109,8 @@ bool cPluginNopacity::Start(void)
return false;
} else
dsyslog("nopacity: TrueColor OSD found");
- return new cNopacity;
+ nopacity = new cNopacity;
+ return nopacity;
}
void cPluginNopacity::Stop(void)
@@ -157,9 +160,18 @@ const char **cPluginNopacity::SVDRPHelpPages(void)
return NULL;
}
-cString cPluginNopacity::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode)
-{
- return NULL;
+cString cPluginNopacity::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode) {
+ if (!strcasecmp(Command, "NEXTMESG")) {
+ ReplyCode = 250;
+ nopacity->svdrpSwitchMessage();
+ return "Switched to next RSS Message";
+ } else if (!strcasecmp(Command, "NEXTFEED")) {
+ ReplyCode = 250;
+ nopacity->svdrpSwitchRss();
+ return "Switched to next RSS Feed";
+ }
+ ReplyCode = 502;
+ return NULL;
}
VDRPLUGINCREATOR(cPluginNopacity); // Don't touch this!