summaryrefslogtreecommitdiff
path: root/myreplaycontrol.h
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2006-03-11 19:58:00 +0100
committerAndreas Mair <andreas@vdr-developer.org>2006-03-11 19:58:00 +0100
commitbabfdd26f9d2fbe164205951413d74aa6d21ef23 (patch)
treeabdcb04fadc2894e23ac028aa76835ecb55d991e /myreplaycontrol.h
parent93372f4ecc69a079c0e5c5af9169f39222983667 (diff)
downloadvdr-plugin-extrecmenu-babfdd26f9d2fbe164205951413d74aa6d21ef23.tar.gz
vdr-plugin-extrecmenu-babfdd26f9d2fbe164205951413d74aa6d21ef23.tar.bz2
Version 0.2v0.2
- implemented own dvbplayercontrol-class so that people who haved patch their vdr with the jumpplay-patch can compile the plugin - 'Info' while replaying opens recording info - option 'Info' added to recordings list to schow the description of a recording - details (date and time) of recordings are shown now
Diffstat (limited to 'myreplaycontrol.h')
-rw-r--r--myreplaycontrol.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/myreplaycontrol.h b/myreplaycontrol.h
new file mode 100644
index 0000000..25c5f45
--- /dev/null
+++ b/myreplaycontrol.h
@@ -0,0 +1,58 @@
+#include <vdr/cutter.h>
+#include <vdr/status.h>
+#include <vdr/interface.h>
+#include "mydvbplayer.h"
+
+#define MODETIMEOUT 3 // seconds
+
+// --- myReplayControls -------------------------------------------------------
+class myReplayControl : public myDvbPlayerControl {
+private:
+ cSkinDisplayReplay *displayReplay;
+ cMarks marks;
+ bool visible, modeOnly, shown, displayFrames;
+ int lastCurrent, lastTotal;
+ bool lastPlay, lastForward;
+ int lastSpeed;
+ time_t timeoutShow;
+ bool timeSearchActive, timeSearchHide;
+ int timeSearchTime, timeSearchPos;
+ void TimeSearchDisplay(void);
+ void TimeSearchProcess(eKeys Key);
+ void TimeSearch(void);
+ void ShowTimed(int Seconds = 0);
+ static char *fileName;
+ static char *title;
+ void ShowMode(void);
+ bool ShowProgress(bool Initial);
+ void MarkToggle(void);
+ void MarkJump(bool Forward);
+ void MarkMove(bool Forward);
+ void EditCut(void);
+ void EditTest(void);
+public:
+ myReplayControl(void);
+ virtual ~myReplayControl();
+ virtual cOsdObject *GetInfo(void);
+ virtual eOSState ProcessKey(eKeys Key);
+ virtual void Show(void);
+ virtual void Hide(void);
+ bool Visible(void) { return visible; }
+ static void SetRecording(const char *FileName, const char *Title);
+ static const char *LastReplayed(void);
+ static void ClearLastReplayed(const char *FileName);
+ };
+
+// --- myMenuRecordingInfo ----------------------------------------------------
+class myMenuRecordingInfo:public cOsdMenu
+{
+ private:
+ const cRecording *recording;
+ bool withButtons;
+ eOSState Play();
+ eOSState Rewind();
+ public:
+ myMenuRecordingInfo(const cRecording *Recording,bool WithButtons = false);
+ virtual void Display(void);
+ virtual eOSState ProcessKey(eKeys Key);
+};