summaryrefslogtreecommitdiff
path: root/dummy_player.h
diff options
context:
space:
mode:
Diffstat (limited to 'dummy_player.h')
-rw-r--r--dummy_player.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/dummy_player.h b/dummy_player.h
new file mode 100644
index 00000000..9af28ba7
--- /dev/null
+++ b/dummy_player.h
@@ -0,0 +1,39 @@
+/*
+ * dummy_player.h: Player that does nothing (saves CPU time)
+ *
+ * See the main source file 'xineliboutput.c' for copyright information and
+ * how to reach the author.
+ *
+ * $Id: dummy_player.h,v 1.1 2006-06-03 09:50:54 phintuka Exp $
+ *
+ */
+
+#ifndef __DUMMY_PLAYER_H
+#define __DUMMY_PLAYER_H
+
+#include <vdr/player.h>
+
+class cDummyPlayer;
+
+class cDummyPlayerControl : public cControl
+{
+ private:
+ static cDummyPlayer *m_Player;
+ static cMutex m_Lock;
+
+ static cDummyPlayer *OpenPlayer(void);
+
+ public:
+ cDummyPlayerControl(void);
+ virtual ~cDummyPlayerControl();
+
+ virtual void Show(void) {};
+ virtual void Hide(void) {};
+ virtual eOSState ProcessKey(eKeys Key);
+
+ static void Close(void);
+ static bool IsOpen(void) {return m_Player != NULL;};
+};
+
+#endif //__DUMMY_PLAYER_H
+