summaryrefslogtreecommitdiff
path: root/control.h
diff options
context:
space:
mode:
Diffstat (limited to 'control.h')
-rw-r--r--control.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/control.h b/control.h
new file mode 100644
index 0000000..8029c52
--- /dev/null
+++ b/control.h
@@ -0,0 +1,39 @@
+/**
+ * based on control.h,v 1.2 2007/06/18 17:58:52 lordjaxom
+ *
+ * version by Midas
+ *
+ */
+
+#ifndef VDR_BLOCK_CONTROL_H
+#define VDR_BLOCK_CONTROL_H
+
+#include <stdint.h>
+#include <vdr/player.h>
+
+class cControlBlock : public cControl {
+private:
+ static bool mRequested;
+
+ int mLastChannel;
+ const cChannel *mChannel;
+ const cEvent *mPresent;
+ const cEvent *mFollowing;
+ uint64_t mStart;
+ bool mSwitch;
+ cSkinDisplayChannel *mOsd;
+
+protected:
+ virtual void Show(void);
+ virtual void Hide(void) {}
+
+public:
+ cControlBlock(int Direction, const cChannel *Channel, const cEvent *Present, const cEvent *Following);
+ ~cControlBlock();
+
+ virtual eOSState ProcessKey(eKeys Key);
+
+ static bool IsRequested(void) { bool r = mRequested; mRequested = false; return r; }
+};
+
+#endif // VDR_BLOCK_CONTROL_H