cSource Class Reference

#include <sources.h>

Inheritance diagram for cSource:

Inheritance graph
[legend]
Collaboration diagram for cSource:

Collaboration graph
[legend]

List of all members.

Public Types

enum  eSourceType {
  stNone = 0x0000, stCable = 0x4000, stSat = 0x8000, stTerr = 0xC000,
  st_Mask = 0xC000, st_Neg = 0x0800, st_Pos = 0x07FF
}

Public Member Functions

 cSource (void)
 ~cSource ()
int Code (void) const
const char * Description (void) const
bool Parse (const char *s)

Static Public Member Functions

static cString ToString (int Code)
static int FromString (const char *s)
static int FromData (eSourceType SourceType, int Position=0, bool East=false)
static bool IsCable (int Code)
static bool IsSat (int Code)
static bool IsTerr (int Code)

Private Attributes

int code
char * description


Detailed Description

Definition at line 15 of file sources.h.


Member Enumeration Documentation

enum cSource::eSourceType

Enumerator:
stNone 
stCable 
stSat 
stTerr 
st_Mask 
st_Neg 
st_Pos 

Definition at line 17 of file sources.h.


Constructor & Destructor Documentation

cSource::cSource ( void   ) 

Definition at line 15 of file sources.c.

References code, description, and stNone.

cSource::~cSource (  ) 

Definition at line 21 of file sources.c.

References description.


Member Function Documentation

int cSource::Code ( void   )  const [inline]

Definition at line 32 of file sources.h.

References code.

Referenced by cMenuEditSrcItem::ProcessKey(), and cMenuEditSrcItem::Set().

const char* cSource::Description ( void   )  const [inline]

Definition at line 33 of file sources.h.

References description.

Referenced by cMenuEditSrcItem::Set().

bool cSource::Parse ( const char *  s  ) 

Definition at line 26 of file sources.c.

References code, description, FromString(), and stNone.

Here is the call graph for this function:

cString cSource::ToString ( int  Code  )  [static]

Definition at line 35 of file sources.c.

References st_Mask, st_Neg, stCable, stSat, and stTerr.

Referenced by cChannels::NewChannel(), cChannel::ParametersToString(), cSetup::Save(), cMenuEditSrcItem::Set(), cChannel::SetCableTransponderData(), cChannel::SetSatTransponderData(), cChannel::SetTerrTransponderData(), cMenuEditChannel::Setup(), tChannelID::ToString(), and cChannel::ToText().

int cSource::FromString ( const char *  s  )  [static]

Definition at line 55 of file sources.c.

References code, esyslog, st_Neg, stCable, stNone, stSat, and stTerr.

Referenced by cDigiboxDevice::cDigiboxDevice(), tChannelID::FromString(), Parse(), cDiseqc::Parse(), cSetup::Parse(), and cChannel::Parse().

int cSource::FromData ( eSourceType  SourceType,
int  Position = 0,
bool  East = false 
) [static]

Definition at line 93 of file sources.c.

References code, st_Neg, st_Pos, and stSat.

Referenced by cNitFilter::Process().

static bool cSource::IsCable ( int  Code  )  [inline, static]

Definition at line 38 of file sources.h.

References st_Mask, and stCable.

Referenced by cChannel::IsCable(), and cSdtFilter::Process().

static bool cSource::IsSat ( int  Code  )  [inline, static]

Definition at line 39 of file sources.h.

References st_Mask, and stSat.

Referenced by cChannel::IsSat(), and cDvbDevice::ProvidesTransponder().

static bool cSource::IsTerr ( int  Code  )  [inline, static]

Definition at line 40 of file sources.h.

References st_Mask, and stTerr.

Referenced by cChannel::IsTerr().


Member Data Documentation

int cSource::code [private]

Definition at line 27 of file sources.h.

Referenced by Code(), cSource(), FromData(), FromString(), and Parse().

char* cSource::description [private]

Definition at line 28 of file sources.h.

Referenced by cSource(), Description(), Parse(), and ~cSource().


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 20:29:03 2007 for VDR by  doxygen 1.5.3-20071008