vdr
2.2.0
|
#include <sources.h>
Public Types | |
enum | eSourceType { stNone = 0x00000000, stAtsc = ('A' << 24), stCable = ('C' << 24), stSat = ('S' << 24), stTerr = ('T' << 24), st_Mask = 0xFF000000, st_Pos = 0x0000FFFF, st_Any = 0x00000E10 } |
Public Member Functions | |
cSource (void) | |
cSource (char Source, const char *Description) | |
~cSource () | |
int | Code (void) const |
int | Position (void) |
const char * | Description (void) const |
bool | Parse (const char *s) |
![]() | |
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 |
Static Public Member Functions | |
static bool | Matches (int Code1, int Code2) |
static int | Position (int Code) |
static char | ToChar (int Code) |
static cString | ToString (int Code) |
static int | FromString (const char *s) |
static int | FromData (eSourceType SourceType, int Position=0, bool East=false) |
static bool | IsAtsc (int Code) |
static bool | IsCable (int Code) |
static bool | IsSat (int Code) |
static bool | IsTerr (int Code) |
static bool | IsType (int Code, char Source) |
Private Attributes | |
int | code |
char * | description |
enum cSource::eSourceType |
cSource::cSource | ( | void | ) |
Definition at line 14 of file sources.c.
References code, description, and stNone.
cSource::cSource | ( | char | Source, |
const char * | Description | ||
) |
Definition at line 20 of file sources.c.
References code, and description.
cSource::~cSource | ( | ) |
Definition at line 26 of file sources.c.
References description.
|
inline |
Definition at line 34 of file sources.h.
References code.
Referenced by Description(), cSources::Get(), cMenuEditSrcItem::ProcessKey(), and cMenuEditSrcItem::Set().
|
inline |
Definition at line 44 of file sources.h.
References Code(), description, Matches(), Parse(), and Position().
Referenced by cMenuEditSrcItem::Set().
|
static |
Definition at line 104 of file sources.c.
References code, Position(), st_Pos, and stSat.
Referenced by cNitFilter::Process(), and ToChar().
|
static |
Definition at line 68 of file sources.c.
References code, esyslog, isempty(), st_Pos, stNone, and stSat.
Referenced by tChannelID::FromString(), Parse(), cDiseqc::Parse(), cChannel::Parse(), cSetup::Parse(), and ToChar().
|
inlinestatic |
Definition at line 55 of file sources.h.
References st_Mask, and stAtsc.
Referenced by cChannel::IsAtsc().
|
inlinestatic |
Definition at line 56 of file sources.h.
References st_Mask, and stCable.
Referenced by cChannel::IsCable(), and cSdtFilter::Process().
|
inlinestatic |
Definition at line 57 of file sources.h.
References st_Mask, and stSat.
Referenced by cChannel::IsSat(), Matches(), cNitFilter::Process(), and cDvbDevice::ProvidesTransponder().
|
inlinestatic |
Definition at line 58 of file sources.h.
References st_Mask, and stTerr.
Referenced by cChannel::IsTerr(), and cChannel::TransponderDataToString().
|
inlinestatic |
Definition at line 59 of file sources.h.
References st_Mask.
Referenced by cChannel::IsSourceType().
|
static |
Returns true if Code2 matches Code1.
This is simply a check whether the two codes are equal, except for the special case that Code1 is stSat|st_Any, in which case it matches any Code2 that is stSat.
Definition at line 40 of file sources.c.
References IsSat(), st_Any, and stSat.
Referenced by Description(), and cDiseqcs::Get().
bool cSource::Parse | ( | const char * | s | ) |
Definition at line 31 of file sources.c.
References code, description, FromString(), and stNone.
Referenced by Description().
|
inline |
Returns the orbital position of the satellite in case this is a DVB-S source (zero otherwise).
The returned value is in the range -1800...+1800, except for the special value 3600, which indicates "any position". This is used with positioners that can move the dish to any requested satellite within their range. A positive sign indicates a position east of Greenwich, while western positions have a negative sign. The absolute value is in "degrees * 10", which allows for a resolution of 1/10 of a degree.
Definition at line 35 of file sources.h.
References Position().
Referenced by Description(), cDvbTuner::ExecuteDiseqc(), FromData(), Position(), and ToString().
|
static |
|
inlinestatic |
Definition at line 51 of file sources.h.
References FromData(), FromString(), st_Mask, and ToString().
Referenced by cSources::ContainsSourceType(), cChannel::Name(), cNitFilter::Process(), and cChannel::ShortName().
|
static |
Definition at line 55 of file sources.c.
References Position(), and st_Mask.
Referenced by cSkinLCARSDisplayMenu::DrawLive(), cChannels::NewChannel(), cSetup::Save(), cMenuEditSrcItem::Set(), cSkinLCARSDisplayChannel::SetChannel(), cMenuEditChannel::Setup(), ToChar(), tChannelID::ToString(), cChannel::ToText(), and cChannel::TransponderDataToString().
|
private |
Definition at line 28 of file sources.h.
Referenced by Code(), cSource(), FromData(), FromString(), and Parse().
|
private |
Definition at line 29 of file sources.h.
Referenced by cSource(), Description(), Parse(), and ~cSource().