diff options
author | Martin Prochnow <nordlicht@martins-kabuff.de> | 2007-02-04 23:31:11 +0100 |
---|---|---|
committer | Andreas Mair <andreas@vdr-developer.org> | 2007-02-04 23:31:11 +0100 |
commit | 8adfaaf81b104b8e981026da593e40f9d780c251 (patch) | |
tree | 0a72c71d85e1d5bbac8729cefa9e41ec9e58758b /extrecmenu.c | |
parent | 074a396ce9f5c5239dd790c6566e0f19dff45f59 (diff) | |
download | vdr-plugin-extrecmenu-0.13.tar.gz vdr-plugin-extrecmenu-0.13.tar.bz2 |
Version 0.13v0.13
- added two setup option to adjust the plugin behaviour to whose of VDR's recording menu (jumping to last replayed recording, call plugin after replay ends)
- only editing of cutting recordings is prevented now
- moving recordings between filesystems is now possible; includes:
* check for enough free disk space on target filesystem
* switch to limit bandwith (a.t.m. 2MBytes/sec)
* prevent editing of recordings that are moved
* marker for recordings, that are moved
- added marker for cutting and moving recording entries
- added marker to title bar for cutting and moving recordings
- recording info menu shows additional informations (name, path, channel, size, lifetime, priority)
- added setup option to select between plugin's and VDR's recording info menu
- dvd.vdr is ignored, as long as a 001.vdr is present
- fixed following issue (again): if there are more then one recording with the same name, only one of it is shown if all recording details are hidden
Diffstat (limited to 'extrecmenu.c')
-rw-r--r-- | extrecmenu.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/extrecmenu.c b/extrecmenu.c index 87c0321..0b900a8 100644 --- a/extrecmenu.c +++ b/extrecmenu.c @@ -2,13 +2,16 @@ * See the README file for copyright information and how to reach the author. */ +#include <string> #include <vdr/plugin.h> #include "mymenusetup.h" #include "mymenurecordings.h" #include "i18n.h" #include "tools.h" -static const char *VERSION = "0.12c"; +using namespace std; + +static const char *VERSION = "0.13"; static const char *DESCRIPTION = "Extended recordings menu"; static const char *MAINMENUENTRY = "ExtRecMenu"; @@ -29,6 +32,7 @@ class cPluginExtrecmenu:public cPlugin virtual bool Start(void); virtual void Stop(void); virtual void Housekeeping(void); + virtual cString Active(void); virtual const char *MainMenuEntry(void){return mysetup.HideMainMenuEntry?NULL:MAINMENUENTRY;} virtual cOsdObject *MainMenuAction(void); virtual cMenuSetupPage *SetupMenu(void); @@ -80,6 +84,13 @@ void cPluginExtrecmenu::Housekeeping(void) { } +cString cPluginExtrecmenu::Active(void) +{ + if(MoveThread.Active()) + return tr("Move recordings in progress"); + return NULL; +} + cOsdObject *cPluginExtrecmenu::MainMenuAction(void) { return new myMenuRecordings(); @@ -111,6 +122,14 @@ bool cPluginExtrecmenu::SetupParse(const char *Name,const char *Value) mysetup.ShowNewRecs=atoi(Value); else if(!strcasecmp(Name,"DescendSorting")) mysetup.DescendSorting=atoi(Value); + else if(!strcasecmp(Name,"GoLastReplayed")) + mysetup.GoLastReplayed=atoi(Value); + else if(!strcasecmp(Name,"ReturnToPlugin")) + mysetup.ReturnToPlugin=atoi(Value); + else if(!strcasecmp(Name,"LimitBandwidth")) + mysetup.LimitBandwidth=atoi(Value); + else if(!strcasecmp(Name,"UseVDRsRecInfoMenu")) + mysetup.UseVDRsRecInfoMenu=atoi(Value); else return false; return true; |