vdr
2.2.0
|
#include <sourceparams.h>
Public Member Functions | |
cSourceParam (char Source, const char *Description) | |
char | Source (void) const |
virtual void | SetData (cChannel *Channel)=0 |
virtual void | GetData (cChannel *Channel)=0 |
virtual cOsdItem * | GetOsdItem (void)=0 |
![]() | |
cListObject (void) | |
virtual | ~cListObject () |
virtual int | Compare (const cListObject &ListObject) const |
void | Append (cListObject *Object) |
void | Insert (cListObject *Object) |
void | Unlink (void) |
int | Index (void) const |
cListObject * | Prev (void) const |
cListObject * | Next (void) const |
Private Attributes | |
char | source |
Definition at line 17 of file sourceparams.h.
cSourceParam::cSourceParam | ( | char | Source, |
const char * | Description | ||
) |
Sets up a parameter handler for the given Source.
Source must be in the range 'A'...'Z', and there can only be one cSourceParam for any given source. Description contains a short, one line description of this source. If a plugin sets up a new cSourceParam, this will also trigger defining the appropriate cSource automatically. Objects of cSourceParam shall only be created on the heap, and shall never be deleted (they will be deleted automatically when the program ends).
Definition at line 15 of file sourceparams.c.
References cListBase::Add(), cSources::ContainsSourceType(), dsyslog, esyslog, cSourceParams::Get(), source, Source(), SourceParams, and Sources.
|
pure virtual |
Copies all source specific parameters to the given Channel.
Implemented in cDvbSourceParam.
Referenced by cMenuEditChannel::ProcessKey(), and Source().
|
pure virtual |
Returns all the OSD items necessary for editing the source specific parameters of the channel that was given in the last call to SetData().
Each call to GetOsdItem() returns exactly one such item. After all items have been fetched, any further calls to GetOsdItem() return NULL. After another call to SetData(), the OSD items can be fetched again.
Implemented in cDvbSourceParam.
Referenced by cMenuEditChannel::Setup(), and Source().
|
pure virtual |
Sets all source specific parameters to those of the given Channel.
Must also reset a counter to use with later calls to GetOsdItem().
Implemented in cDvbSourceParam.
Referenced by cMenuEditChannel::Setup(), and Source().
|
inline |
Definition at line 31 of file sourceparams.h.
References GetData(), GetOsdItem(), SetData(), and source.
Referenced by cSourceParam(), cSourceParams::Get(), cDvbSourceParam::GetData(), and cDvbSourceParam::GetOsdItem().
|
private |
Definition at line 19 of file sourceparams.h.
Referenced by cSourceParam(), and Source().