diff options
author | Sascha Volkenandt <sascha@akv-soft.de> | 2004-01-02 23:13:00 +0100 |
---|---|---|
committer | Sascha Volkenandt <sascha@akv-soft.de> | 2004-01-02 23:13:00 +0100 |
commit | 4a775c82c82597c65345b3b1fdad71792ef2e486 (patch) | |
tree | d3a5fc2a34e6746f8d7ee51e793ff3645bf3e814 /osdpip.c | |
download | vdr-plugin-osdpip-4a775c82c82597c65345b3b1fdad71792ef2e486.tar.gz vdr-plugin-osdpip-4a775c82c82597c65345b3b1fdad71792ef2e486.tar.bz2 |
Release version 0.0.1v0.0.1
- Initial revision.
Diffstat (limited to 'osdpip.c')
-rw-r--r-- | osdpip.c | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/osdpip.c b/osdpip.c new file mode 100644 index 0000000..afa76d1 --- /dev/null +++ b/osdpip.c @@ -0,0 +1,85 @@ +/* + * osdpip.c: A plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + * $Id$ + */ + +#include "osd.h" +#include "i18n.h" + +#include <vdr/plugin.h> + +static const char *VERSION = "0.0.1"; +static const char *DESCRIPTION = "OSD Picture-in-Picture"; +static const char *MAINMENUENTRY = "Picture-in-Picture"; + +class cPluginOsdpip : public cPlugin { +private: + +public: + cPluginOsdpip(void); + virtual ~cPluginOsdpip(); + 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 Housekeeping(void); + virtual const char *MainMenuEntry(void) { return tr(MAINMENUENTRY); } + virtual cOsdObject *MainMenuAction(void); + virtual cMenuSetupPage *SetupMenu(void); + virtual bool SetupParse(const char *Name, const char *Value); +}; + +cPluginOsdpip::cPluginOsdpip(void) { +} + +cPluginOsdpip::~cPluginOsdpip() { +} + +const char *cPluginOsdpip::CommandLineHelp(void) { + return NULL; +} + +bool cPluginOsdpip::ProcessArgs(int argc, char *argv[]) { + return true; +} + +bool cPluginOsdpip::Initialize(void) { + return true; +} + +bool cPluginOsdpip::Start(void) { + RegisterI18n(Phrases); + return true; +} + +void cPluginOsdpip::Housekeeping(void) { +} + +cOsdObject *cPluginOsdpip::MainMenuAction(void) { + const cChannel *chan; + cDevice *dev; + + chan = cDevice::CurrentChannel() != 0 + ? Channels.GetByNumber(cDevice::CurrentChannel()) : NULL; + if (chan != NULL) { + dev = cDevice::GetDevice(chan, 1); + if (dev) + return new cOsdPipObject(dev, chan); + } + return NULL; +} + +cMenuSetupPage *cPluginOsdpip::SetupMenu(void) { + return NULL; +} + +bool cPluginOsdpip::SetupParse(const char *Name, const char *Value) { + return false; +} + +VDRPLUGINCREATOR(cPluginOsdpip); // Don't touch this! |