vdr  2.2.0
Public Member Functions | Private Attributes | List of all members
cSkinDisplayChannel Class Referenceabstract

#include <skins.h>

Public Member Functions

 cSkinDisplayChannel (void)
 
virtual void SetChannel (const cChannel *Channel, int Number)=0
 
virtual void SetEvents (const cEvent *Present, const cEvent *Following)=0
 
virtual void SetMessage (eMessageType Type, const char *Text)=0
 
virtual void SetPositioner (const cPositioner *Positioner)
 
- Public Member Functions inherited from cSkinDisplay
 cSkinDisplay (void)
 
virtual ~cSkinDisplay ()
 
int EditableWidth (void)
 
void SetEditableWidth (int Width)
 
virtual void SetButtons (const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL)
 
virtual void Flush (void)
 

Private Attributes

const cPositionerpositioner
 

Additional Inherited Members

- Static Public Member Functions inherited from cSkinDisplay
static int AvgCharWidth (void)
 
static cSkinDisplayCurrent (void)
 

Detailed Description

Definition at line 52 of file skins.h.

Constructor & Destructor Documentation

cSkinDisplayChannel::cSkinDisplayChannel ( void  )

Definition at line 68 of file skins.c.

Member Function Documentation

virtual void cSkinDisplayChannel::SetChannel ( const cChannel Channel,
int  Number 
)
pure virtual

Sets the current channel to Channel.

If Number is not 0, the user is in the process of entering a channel number, which must be displayed accordingly.

Implemented in cSkinLCARSDisplayChannel, cSkinCursesDisplayChannel, cSkinSTTNGDisplayChannel, and cSkinClassicDisplayChannel.

Referenced by cDisplayChannel::DisplayChannel().

virtual void cSkinDisplayChannel::SetEvents ( const cEvent Present,
const cEvent Following 
)
pure virtual

Sets the Present and Following EPG events.

If either of these is not available, NULL will be given.

Implemented in cSkinLCARSDisplayChannel, cSkinCursesDisplayChannel, cSkinSTTNGDisplayChannel, and cSkinClassicDisplayChannel.

Referenced by cDisplayChannel::DisplayInfo(), and cDisplayChannel::Refresh().

virtual void cSkinDisplayChannel::SetMessage ( eMessageType  Type,
const char *  Text 
)
pure virtual

Sets a one line message Text, with the given Type.

Type can be used to determine, e.g., the colors for displaying the Text. If Text is NULL, any previously displayed message must be removed, and any previous contents overwritten by the message must be restored.

Reimplemented from cSkinDisplay.

Implemented in cSkinLCARSDisplayChannel, cSkinCursesDisplayChannel, cSkinSTTNGDisplayChannel, and cSkinClassicDisplayChannel.

void cSkinDisplayChannel::SetPositioner ( const cPositioner Positioner)
virtual

Sets the Positioner used to move the satellite dish.

The skin may use the data provided by Positioner to implement some form of progress display, since moving the dish may take a while. This function will only be called if the device receiving the current live channel actually uses a positioner, and it will be called with NULL once the dish has reached its target position (or the user switches to a channel that doesn't require positioning the dish). While the dish is moving, SetPositioner() is called repeatedly, so the skin has a chance to update the progress display. The default implementation calls SetMessage() with a text that indicates that the dish is being moved to a new position.

Reimplemented in cSkinLCARSDisplayChannel.

Definition at line 73 of file skins.c.

References mtInfo, cString::sprintf(), and tr.

Referenced by cDisplayChannel::ProcessKey().

Member Data Documentation

const cPositioner* cSkinDisplayChannel::positioner
private

< This class is used to display the current channel, together with the present and following EPG event.

How and to what extent this is done is totally up to the derived class.

Definition at line 57 of file skins.h.


The documentation for this class was generated from the following files: