summaryrefslogtreecommitdiff
path: root/myreplaycontrol.c
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2007-02-04 23:31:11 +0100
committerAndreas Mair <andreas@vdr-developer.org>2007-02-04 23:31:11 +0100
commit8adfaaf81b104b8e981026da593e40f9d780c251 (patch)
tree0a72c71d85e1d5bbac8729cefa9e41ec9e58758b /myreplaycontrol.c
parent074a396ce9f5c5239dd790c6566e0f19dff45f59 (diff)
downloadvdr-plugin-extrecmenu-8adfaaf81b104b8e981026da593e40f9d780c251.tar.gz
vdr-plugin-extrecmenu-8adfaaf81b104b8e981026da593e40f9d780c251.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 'myreplaycontrol.c')
-rw-r--r--myreplaycontrol.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/myreplaycontrol.c b/myreplaycontrol.c
index bdfb123..5305746 100644
--- a/myreplaycontrol.c
+++ b/myreplaycontrol.c
@@ -4,18 +4,35 @@
#include <vdr/interface.h>
#include <vdr/status.h>
+#include <vdr/menu.h>
#include "myreplaycontrol.h"
#include "mymenusetup.h"
+using namespace std;
+
+char *myReplayControl::Cut=NULL;
+char *myReplayControl::Cutted=NULL;
+
myReplayControl::~myReplayControl()
{
- cRemote::CallPlugin("extrecmenu");
+ if(mysetup.ReturnToPlugin)
+ cRemote::CallPlugin("extrecmenu");
}
eOSState myReplayControl::ProcessKey(eKeys Key)
{
- if(Key==kBack)
- return osEnd;
+ if(Key==kBack)
+ return osEnd;
+
+ if(Key==kEditCut)
+ {
+ free(Cut);
+ Cut=strdup(LastReplayed());
- return cReplayControl::ProcessKey(Key);
+ cRecording recording(LastReplayed());
+ free(Cutted);
+ Cutted=strdup(recording.PrefixFileName('%'));
+ }
+
+ return cReplayControl::ProcessKey(Key);
}