summaryrefslogtreecommitdiff
path: root/skinnopacity.c
diff options
context:
space:
mode:
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!