summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-06-23 11:23:34 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-06-23 11:23:34 +0200
commitcd030554e53f8161b4944d14da78756f908de6c4 (patch)
tree206e1649d3d0ff6752dd13c485a004ca1fcb5d47 /player.h
parent0bb9a1a77b866b79b73fc71e9863e7da5fc57c56 (diff)
downloadvdr-cd030554e53f8161b4944d14da78756f908de6c4.tar.gz
vdr-cd030554e53f8161b4944d14da78756f908de6c4.tar.bz2
Switched VDR's own player to the new cPlayer/cControl structures
Diffstat (limited to 'player.h')
-rw-r--r--player.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/player.h b/player.h
index f4b976b7..ce0cb441 100644
--- a/player.h
+++ b/player.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: player.h 1.2 2002/06/22 14:47:25 kls Exp $
+ * $Id: player.h 1.3 2002/06/23 11:20:23 kls Exp $
*/
#ifndef __PLAYER_H
@@ -40,13 +40,23 @@ protected:
public:
cPlayer(void);
virtual ~cPlayer();
+ bool IsAttached(void) { return device != NULL; }
};
class cControl : public cOsdObject {
+private:
+ static cControl *control;
+ bool attached;
+protected:
+ cPlayer *player;
public:
- cControl(void);
+ cControl(cPlayer *Player);
virtual ~cControl();
virtual void Hide(void) = 0;
+ static void Launch(cControl *Control);
+ static void Attach(void);
+ static void Shutdown(void);
+ static cControl *Control(void) { return control; }
};
#endif //__PLAYER_H