summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'player.h')
-rw-r--r--player.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/player.h b/player.h
index 77d00d5..01bc958 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 2.4 2009/03/08 12:29:10 kls Exp $
+ * $Id: player.h 2.6 2012/04/28 13:04:17 kls Exp $
*/
#ifndef __PLAYER_H
@@ -86,13 +86,28 @@ public:
virtual ~cControl();
virtual void Hide(void) = 0;
virtual cOsdObject *GetInfo(void);
+ ///< Returns an OSD object that displays information about the currently
+ ///< played programme. If no such information is available, NULL will be
+ ///< returned.
+ virtual const cRecording *GetRecording(void);
+ ///< Returns the cRecording that is currently being replayed, or NULL if
+ ///< this player is not playing a cRecording.
+ virtual cString GetHeader(void);
+ ///< This can be used by players that don't play a cRecording, but rather
+ ///< do something completely different. The resulting string may be used by
+ ///< skins as a last resort, in case they want to display the state of the
+ ///< current player. The return value is expected to be a short, single line
+ ///< string. The default implementation returns an empty string.
double FramesPerSecond(void) { return player->FramesPerSecond(); }
bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false) { return player->GetIndex(Current, Total, SnapToIFrame); }
bool GetReplayMode(bool &Play, bool &Forward, int &Speed) { return player->GetReplayMode(Play, Forward, Speed); }
static void Launch(cControl *Control);
static void Attach(void);
static void Shutdown(void);
- static cControl *Control(void);
+ static cControl *Control(bool Hidden = false);
+ ///< Returns the current replay control (if any) in case it is currently
+ ///< visible. If Hidden is true, the control will be returned even if it is
+ ///< currently hidden.
};
#endif //__PLAYER_H