summaryrefslogtreecommitdiff
path: root/block/control.h
diff options
context:
space:
mode:
authorMidas <vdrportal_midas@gmx.de>2010-04-22 01:06:40 +0200
committerMidas <vdrportal_midas@gmx.de>2010-04-22 01:06:40 +0200
commit4921cf32c8bda089a21dc4a14ce191ed477f80ff (patch)
treeff9debb648949a2ad43ee7759fb667fb03a78b73 /block/control.h
downloadvdr-plugin-block-4921cf32c8bda089a21dc4a14ce191ed477f80ff.tar.gz
vdr-plugin-block-4921cf32c8bda089a21dc4a14ce191ed477f80ff.tar.bz2
Initial release. Version 0.0.1b. Fork of the taste plugin 0.0.2d by LordJaxom.
Patches for the taste plugin by tomg and mapovi were added permanently to the source of the block plugin. For more information, feature list und bugfixes read HISTORY and README please.
Diffstat (limited to 'block/control.h')
-rw-r--r--block/control.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/block/control.h b/block/control.h
new file mode 100644
index 0000000..8029c52
--- /dev/null
+++ b/block/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