diff options
author | louis <louis.braun@gmx.de> | 2015-03-12 17:28:35 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-03-12 17:28:35 +0100 |
commit | 44680b6ce80221e91cb14dca9ca7fad7015f1297 (patch) | |
tree | 8af805db50568ba41ebb461309d5724320295441 /skindesclient-0.0.1/skindesclient.c | |
parent | 45cb6c1663d66ebc22bed8dbc8cdbacdc82ad4a8 (diff) | |
download | vdr-plugin-skindesigner-0.3.0.tar.gz vdr-plugin-skindesigner-0.3.0.tar.bz2 |
version 0.3.00.3.0
Diffstat (limited to 'skindesclient-0.0.1/skindesclient.c')
-rw-r--r-- | skindesclient-0.0.1/skindesclient.c | 147 |
1 files changed, 0 insertions, 147 deletions
diff --git a/skindesclient-0.0.1/skindesclient.c b/skindesclient-0.0.1/skindesclient.c deleted file mode 100644 index 01bff96..0000000 --- a/skindesclient-0.0.1/skindesclient.c +++ /dev/null @@ -1,147 +0,0 @@ -/* - * skindesclient.c: A plugin for the Video Disk Recorder - * - * See the README file for copyright information and how to reach the author. - * - * $Id$ - */ - -#include <vdr/plugin.h> -#include "osdmenu.c" -#include "libskindesigner/services.h" - -static const char *VERSION = "0.0.1"; -static const char *DESCRIPTION = "SkinDesigner Test Client"; -static const char *MAINMENUENTRY = "Skindesclient"; - -class cPluginSkindesclient : public cPlugin { -private: - // Add any member variables or functions you may need here. -public: - cPluginSkindesclient(void); - virtual ~cPluginSkindesclient(); - virtual const char *Version(void) { return VERSION; } - virtual const char *Description(void) { return DESCRIPTION; } - virtual const char *CommandLineHelp(void); - virtual bool ProcessArgs(int argc, char *argv[]); - virtual bool Initialize(void); - virtual bool Start(void); - virtual void Stop(void); - virtual void Housekeeping(void); - virtual void MainThreadHook(void); - virtual cString Active(void); - virtual time_t WakeupTime(void); - virtual const char *MainMenuEntry(void) { return MAINMENUENTRY; } - virtual cOsdObject *MainMenuAction(void); - virtual cMenuSetupPage *SetupMenu(void); - virtual bool SetupParse(const char *Name, const char *Value); - virtual bool Service(const char *Id, void *Data = NULL); - virtual const char **SVDRPHelpPages(void); - virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode); - }; - -cPluginSkindesclient::cPluginSkindesclient(void) -{ - -} - -cPluginSkindesclient::~cPluginSkindesclient() -{ -} - -const char *cPluginSkindesclient::CommandLineHelp(void) -{ - return NULL; -} - -bool cPluginSkindesclient::ProcessArgs(int argc, char *argv[]) -{ - return true; -} - -bool cPluginSkindesclient::Initialize(void) -{ - return true; -} - -bool cPluginSkindesclient::Start(void) -{ - RegisterPlugin reg; - reg.name = "skindesclient"; - reg.SetMenu(meListMain, "menulistmain.xml"); - reg.SetMenu(meListSub, "menulistsub.xml"); - reg.SetMenu(meDetail, "menudetail.xml"); - static cPlugin *pSkinDesigner = cPluginManager::GetPlugin("skindesigner"); - if (pSkinDesigner) { - bool ok = pSkinDesigner->Service("RegisterPlugin", ®); - } else { - esyslog("skindesclient: skindesigner not available"); - } - return true; -} - -void cPluginSkindesclient::Stop(void) -{ - // Stop any background activities the plugin is performing. -} - -void cPluginSkindesclient::Housekeeping(void) -{ - // Perform any cleanup or other regular tasks. -} - -void cPluginSkindesclient::MainThreadHook(void) -{ - // Perform actions in the context of the main program thread. - // WARNING: Use with great care - see PLUGINS.html! -} - -cString cPluginSkindesclient::Active(void) -{ - // Return a message string if shutdown should be postponed - return NULL; -} - -time_t cPluginSkindesclient::WakeupTime(void) -{ - // Return custom wakeup time for shutdown script - return 0; -} - -cOsdObject *cPluginSkindesclient::MainMenuAction(void) -{ - cOsdObject *menu = new cPlugOsdMenu(); - return menu; -} - -cMenuSetupPage *cPluginSkindesclient::SetupMenu(void) -{ - // Return a setup menu in case the plugin supports one. - return NULL; -} - -bool cPluginSkindesclient::SetupParse(const char *Name, const char *Value) -{ - // Parse your own setup parameters and store their values. - return false; -} - -bool cPluginSkindesclient::Service(const char *Id, void *Data) -{ - // Handle custom service requests from other plugins - return false; -} - -const char **cPluginSkindesclient::SVDRPHelpPages(void) -{ - // Return help text for SVDRP commands this plugin implements - return NULL; -} - -cString cPluginSkindesclient::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode) -{ - // Process SVDRP commands this plugin implements - return NULL; -} - -VDRPLUGINCREATOR(cPluginSkindesclient); // Don't touch this! |