Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cStatus Class Reference

#include <status.h>

Inheritance diagram for cStatus:

Inheritance graph
[legend]
Collaboration diagram for cStatus:

Collaboration graph
[legend]

Detailed Description

Status monitoring.

status.h: Status monitoring

See the main source file 'vdr.c' for copyright information and how to reach the author.

Id
status.h 1.5 2002/07/14 10:54:39 kls Exp

Definition at line 20 of file status.h.

Public Methods

 cStatus (void)
virtual ~cStatus ()

Static Public Methods

void MsgChannelSwitch (const cDevice *Device, int ChannelNumber)
void MsgRecording (const cDevice *Device, const char *Name)
void MsgReplaying (const cControl *Control, const char *Name)
void MsgSetVolume (int Volume, bool Absolute)
void MsgOsdClear (void)
void MsgOsdTitle (const char *Title)
void MsgOsdStatusMessage (const char *Message)
void MsgOsdHelpKeys (const char *Red, const char *Green, const char *Yellow, const char *Blue)
void MsgOsdCurrentItem (const char *Text)
void MsgOsdTextItem (const char *Text, bool Scroll=false)
void MsgOsdChannel (const char *Text)
void MsgOsdProgramme (time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle)

Protected Methods

virtual void ChannelSwitch (const cDevice *Device, int ChannelNumber)
virtual void Recording (const cDevice *Device, const char *Name)
virtual void Replaying (const cControl *Control, const char *Name)
virtual void SetVolume (int Volume, bool Absolute)
virtual void OsdClear (void)
virtual void OsdTitle (const char *Title)
virtual void OsdStatusMessage (const char *Message)
virtual void OsdHelpKeys (const char *Red, const char *Green, const char *Yellow, const char *Blue)
virtual void OsdCurrentItem (const char *Text)
virtual void OsdTextItem (const char *Text, bool Scroll)
virtual void OsdChannel (const char *Text)
virtual void OsdProgramme (time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle)

Static Private Attributes

cList< cStatus > statusMonitors


Constructor & Destructor Documentation

cStatus::cStatus void   
 

Definition at line 16 of file status.c.

References cListBase::Add(), and statusMonitors.

cStatus::~cStatus   [virtual]
 

Definition at line 21 of file status.c.

References cListBase::Del(), and statusMonitors.


Member Function Documentation

virtual void cStatus::ChannelSwitch const cDevice   Device,
int    ChannelNumber
[inline, protected, virtual]
 

Indicates a channel switch on the given DVB device. If ChannelNumber is 0, this is before the channel is being switched, otherwise ChannelNumber is the number of the channel that has been switched to.

Reimplemented in cRcuRemote.

Definition at line 36 of file status.h.

Referenced by MsgChannelSwitch().

void cStatus::MsgChannelSwitch const cDevice   Device,
int    ChannelNumber
[static]
 

called when a channel is actually going to be switched or has actually been switched successfully

Definition at line 26 of file status.c.

References ChannelSwitch(), cList< cStatus >::First(), cList< cStatus >::Next(), and statusMonitors.

Referenced by cDevice::SetChannel().

void cStatus::MsgOsdChannel const char *    Text [static]
 

Definition at line 86 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), OsdChannel(), and statusMonitors.

Referenced by cDisplayChannel::DisplayChannel().

void cStatus::MsgOsdClear void    [static]
 

Definition at line 50 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), OsdClear(), and statusMonitors.

Referenced by cInterface::Clear().

void cStatus::MsgOsdCurrentItem const char *    Text [static]
 

Definition at line 74 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), OsdCurrentItem(), and statusMonitors.

Referenced by cOsdMenu::Display(), and cOsdMenu::DisplayCurrent().

void cStatus::MsgOsdHelpKeys const char *    Red,
const char *    Green,
const char *    Yellow,
const char *    Blue
[static]
 

Definition at line 68 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), OsdHelpKeys(), and statusMonitors.

Referenced by cInterface::Help().

void cStatus::MsgOsdProgramme time_t    PresentTime,
const char *    PresentTitle,
const char *    PresentSubtitle,
time_t    FollowingTime,
const char *    FollowingTitle,
const char *    FollowingSubtitle
[static]
 

Definition at line 92 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), OsdProgramme(), and statusMonitors.

Referenced by cDisplayChannel::DisplayInfo().

void cStatus::MsgOsdStatusMessage const char *    Message [static]
 

Definition at line 62 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), OsdStatusMessage(), and statusMonitors.

Referenced by cInterface::Status().

void cStatus::MsgOsdTextItem const char *    Text,
bool    Scroll = false
[static]
 

Definition at line 80 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), OsdTextItem(), and statusMonitors.

Referenced by cMenuTextItem::Display(), cMenuTextItem::ScrollDown(), and cMenuTextItem::ScrollUp().

void cStatus::MsgOsdTitle const char *    Title [static]
 

Definition at line 56 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), OsdTitle(), and statusMonitors.

Referenced by cInterface::Title().

void cStatus::MsgRecording const cDevice   Device,
const char *    Name
[static]
 

Definition at line 32 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), Recording(), and statusMonitors.

Referenced by cRecordControl::cRecordControl(), and cRecordControl::Stop().

void cStatus::MsgReplaying const cControl   Control,
const char *    Name
[static]
 

Definition at line 38 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), Replaying(), and statusMonitors.

Referenced by cReplayControl::cReplayControl(), and cReplayControl::~cReplayControl().

void cStatus::MsgSetVolume int    Volume,
bool    Absolute
[static]
 

Definition at line 44 of file status.c.

References cList< cStatus >::First(), cList< cStatus >::Next(), SetVolume(), and statusMonitors.

Referenced by cDevice::SetVolume().

virtual void cStatus::OsdChannel const char *    Text [inline, protected, virtual]
 

The OSD displays the single line Text with the current channel information.

Definition at line 98 of file status.h.

Referenced by MsgOsdChannel().

virtual void cStatus::OsdClear void    [inline, protected, virtual]
 

The OSD has been cleared.

Definition at line 63 of file status.h.

Referenced by MsgOsdClear().

virtual void cStatus::OsdCurrentItem const char *    Text [inline, protected, virtual]
 

The OSD displays the given single line Text as the current menu item.

Definition at line 84 of file status.h.

Referenced by MsgOsdCurrentItem().

virtual void cStatus::OsdHelpKeys const char *    Red,
const char *    Green,
const char *    Yellow,
const char *    Blue
[inline, protected, virtual]
 

The help keys have been set to the given values (may be NULL).

Definition at line 79 of file status.h.

Referenced by MsgOsdHelpKeys().

virtual void cStatus::OsdProgramme time_t    PresentTime,
const char *    PresentTitle,
const char *    PresentSubtitle,
time_t    FollowingTime,
const char *    FollowingTitle,
const char *    FollowingSubtitle
[inline, protected, virtual]
 

The OSD displays the given programme information.

Definition at line 103 of file status.h.

Referenced by MsgOsdProgramme().

virtual void cStatus::OsdStatusMessage const char *    Message [inline, protected, virtual]
 

Message has been displayed in the status line of the menu. If Message is NULL, the status line has been cleared.

Definition at line 74 of file status.h.

Referenced by MsgOsdStatusMessage().

virtual void cStatus::OsdTextItem const char *    Text,
bool    Scroll
[inline, protected, virtual]
 

The OSD displays the given multi line text. If Text points to an actual string, that text shall be displayed and Scroll has no meaning. If Text is NULL, Scroll defines whether the previously received text shall be scrolled up (true) or down (false) and the text shall be redisplayed with the new offset.

Definition at line 93 of file status.h.

Referenced by MsgOsdTextItem().

virtual void cStatus::OsdTitle const char *    Title [inline, protected, virtual]
 

Title has been displayed in the title line of the menu.

Definition at line 68 of file status.h.

Referenced by MsgOsdTitle().

virtual void cStatus::Recording const cDevice   Device,
const char *    Name
[inline, protected, virtual]
 

The given DVB device has started recording Name. Name is the name of the recording, without any directory path. If Name is NULL, the recording has ended.

Reimplemented in cRcuRemote.

Definition at line 43 of file status.h.

Referenced by MsgRecording().

virtual void cStatus::Replaying const cControl   Control,
const char *    Name
[inline, protected, virtual]
 

The given player control has started replaying Name. Name is the name of the recording, without any directory path. In case of a player that can't provide a name, Name can be a string that identifies the player type (like, e.g., "DVD"). If Name is NULL, the replay has ended.

Definition at line 52 of file status.h.

Referenced by MsgReplaying().

virtual void cStatus::SetVolume int    Volume,
bool    Absolute
[inline, protected, virtual]
 

The volume has been set to the given value, either absolutely or relative to the current volume.

Definition at line 58 of file status.h.

Referenced by MsgSetVolume().


Field Documentation

cList< cStatus > cStatus::statusMonitors [static, private]
 

These functions can be implemented by derived classes to receive status information

Definition at line 14 of file status.c.

Referenced by cStatus(), MsgChannelSwitch(), MsgOsdChannel(), MsgOsdClear(), MsgOsdCurrentItem(), MsgOsdHelpKeys(), MsgOsdProgramme(), MsgOsdStatusMessage(), MsgOsdTextItem(), MsgOsdTitle(), MsgRecording(), MsgReplaying(), MsgSetVolume(), and ~cStatus().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:57 2003 for VDR by doxygen1.3-rc2