From 82bfd4c15949019ede37b2b04be79659c5c65dbe Mon Sep 17 00:00:00 2001 From: Martin Prochnow Date: Tue, 11 Apr 2006 19:12:01 +0200 Subject: Version 0.9 - removed myDvbPlayer, use VDR's cDvbPlayer instead - made adjustments to work with BigPatch-VDRs (JumpPlay-patch) - added option for sort recordings - moved editing of priority and lifetime to its own submenu - removed option to select alternative dvd marker, the icon is now default - added default values for setup options - moved content of patches/ and tools/ to contrib/ and added a small README - new version of 'dvdarchive.sh'; thanks to vejoun from vdr-portal.de - fixed problem with archive dvd recordings at the base dir; thanks to Mase from vdr-portal.de for reporting --- extrecmenu.c | 44 ++++++++++++++------------------------------ 1 file changed, 14 insertions(+), 30 deletions(-) (limited to 'extrecmenu.c') diff --git a/extrecmenu.c b/extrecmenu.c index 622042b..c37ea64 100644 --- a/extrecmenu.c +++ b/extrecmenu.c @@ -10,63 +10,50 @@ cPluginExtrecmenu::cPluginExtrecmenu(void) { - // Initialize any member variables here. - // DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL - // VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT! } cPluginExtrecmenu::~cPluginExtrecmenu() { - // Clean up after yourself! } const char *cPluginExtrecmenu::CommandLineHelp(void) { - // Return a string that describes all known command line options. - return NULL; + return NULL; } bool cPluginExtrecmenu::ProcessArgs(int argc, char *argv[]) { - // Implement command line argument processing here if applicable. - return true; + return true; } bool cPluginExtrecmenu::Initialize(void) { RegisterI18n(Phrases); - mysetup.wasdvd=false; - return true; } bool cPluginExtrecmenu::Start(void) { - // Start any background activities the plugin shall perform. - return true; + return true; } void cPluginExtrecmenu::Stop(void) { - // Stop any background activities the plugin shall perform. } void cPluginExtrecmenu::Housekeeping(void) { - // Perform any cleanup or other regular tasks. } cOsdObject *cPluginExtrecmenu::MainMenuAction(void) { - // Perform the action when selected from the main VDR menu. - return new myMenuRecordings(); + return new myMenuRecordings(); } cMenuSetupPage *cPluginExtrecmenu::SetupMenu(void) { - // Return a setup menu in case the plugin supports one. - return new myMenuSetup(); + return new myMenuSetup(); } bool cPluginExtrecmenu::SetupParse(const char *Name, const char *Value) @@ -92,14 +79,14 @@ bool cPluginExtrecmenu::SetupParse(const char *Name, const char *Value) if(!strcasecmp(Name,"PatchNew")) mysetup.PatchNew=atoi(Value); else - if(!strcasecmp(Name,"PatchDvd")) - mysetup.PatchDvd=atoi(Value); + if(!strcasecmp(Name,"ShowDvdNr")) + mysetup.ShowDvdNr=atoi(Value); else - if(!strcasecmp(Name,"ShowDvdNr")) - mysetup.ShowDvdNr=atoi(Value); + if(!strcasecmp(Name,"ShowNewRecs")) + mysetup.ShowNewRecs=atoi(Value); else - if(!strcasecmp(Name,"ShowNewRecs")) - mysetup.ShowNewRecs=atoi(Value); + if(!strcasecmp(Name,"SortRecords")) + mysetup.SortRecords=atoi(Value); else return false; return true; @@ -107,20 +94,17 @@ bool cPluginExtrecmenu::SetupParse(const char *Name, const char *Value) bool cPluginExtrecmenu::Service(const char *Id, void *Data) { - // Handle custom service requests from other plugins - return false; + return false; } const char **cPluginExtrecmenu::SVDRPHelpPages(void) { - // Return help text for SVDRP commands this plugin implements - return NULL; + return NULL; } cString cPluginExtrecmenu::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode) { - // Process SVDRP commands this plugin implements - return NULL; + return NULL; } VDRPLUGINCREATOR(cPluginExtrecmenu); // Don't touch this! -- cgit v1.2.3