Home

Dokumentation

Impressum

Dokumentation VDR
 

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

cSource Class Reference

#include <sources.h>

Inheritance diagram for cSource:

Inheritance graph
[legend]
Collaboration diagram for cSource:

Collaboration graph
[legend]

Detailed Description

Sources handling.

sources.h: Source handling

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

Id
sources.h 1.1 2002/10/04 14:25:03 kls Exp

Definition at line 17 of file sources.h.

Public Types

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

Public Methods

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

Static Public Methods

const char * ToString (int Code)
int FromString (const char *s)

Private Attributes

int code
char * description


Member Enumeration Documentation

enum cSource::eSourceType
 

Enumeration values:
stNone  No source
stCable  Source: cable
stSat  Source: satellite
stTerr  Source: terrestrial
st_Mask 
st_Neg 

Definition at line 19 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.


Member Function Documentation

int cSource::Code void    const [inline]
 

Definition at line 49 of file sources.h.

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

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

Definition at line 50 of file sources.h.

Referenced by cMenuEditSrcItem::Set().

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 cChannel::cChannel(), tChannelID::FromString(), Parse(), cDiseqc::Parse(), and cChannel::Parse().

bool cSource::Parse const char *    s
 

Definition at line 26 of file sources.c.

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

const char * cSource::ToString int    Code [static]
 

Definition at line 35 of file sources.c.

References st_Mask, stCable, stSat, and stTerr.

Referenced by cChannel::ParametersToString(), cMenuEditChannel::Setup(), and cChannel::ToText().


Field Documentation

int cSource::code [private]
 

Definition at line 44 of file sources.h.

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

char* cSource::description [private]
 

Definition at line 45 of file sources.h.

Referenced by cSource(), and Parse().


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