From 0b3a801ab463186519e9e1c14ea891924c64dff5 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 2 Jan 2005 15:11:44 +0100 Subject: Implemented audio track menu --- skins.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'skins.h') diff --git a/skins.h b/skins.h index c20dece0..618fd61f 100644 --- a/skins.h +++ b/skins.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skins.h 1.4 2004/12/26 11:57:54 kls Exp $ + * $Id: skins.h 1.5 2005/01/02 14:36:19 kls Exp $ */ #ifndef __SKINS_H @@ -66,8 +66,6 @@ public: Red = Video options Green = Info now Yellow = Info next - Blue = Audio options - AudioOptions VideoOptions */ }; @@ -223,6 +221,14 @@ public: ///< indicator shall be displayed. }; +class cSkinDisplayTracks : public cSkinDisplay { + ///< This class implements the track display. +public: + virtual void SetTrack(int Index, const char * const *Tracks) = 0; + ///< Sets the current track to the one given by Index, which + ///< points into the Tracks array of strings. + }; + class cSkinDisplayMessage : public cSkinDisplay { ///< This class implements a simple message display. public: @@ -275,6 +281,12 @@ public: virtual cSkinDisplayVolume *DisplayVolume(void) = 0; ///< Creates and returns a new object for displaying the current volume. ///< The caller must delete the object after use. + virtual cSkinDisplayTracks *DisplayTracks(const char *Title, int NumTracks, const char * const *Tracks) = 0; + ///< Creates and returns a new object for displaying the available tracks. + ///< NumTracks indicates how many entries in Tracks are available. + ///< Tracks will be valid throughout the entire lifetime of the returned + ///< cSkinDisplayTrack object. + ///< The caller must delete the object after use. virtual cSkinDisplayMessage *DisplayMessage(void) = 0; ///< Creates and returns a new object for displaying a message. ///< The caller must delete the object after use. -- cgit v1.2.3