cChannel Class Reference

#include <channels.h>

Inheritance diagram for cChannel:

Inheritance graph
[legend]
Collaboration diagram for cChannel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cChannel (void)
 cChannel (const cChannel &Channel)
 ~cChannel ()
cChanneloperator= (const cChannel &Channel)
cString ToText (void) const
bool Parse (const char *s)
bool Save (FILE *f)
const char * Name (void) const
const char * ShortName (bool OrName=false) const
const char * Provider (void) const
const char * PortalName (void) const
int Frequency (void) const
 Returns the actual frequency, as given in 'channels.conf'.
int Transponder (void) const
 Returns the transponder frequency in MHz, plus the polarization in case of sat.
int Source (void) const
int Srate (void) const
int Vpid (void) const
int Ppid (void) const
int Vtype (void) const
const int * Apids (void) const
const int * Dpids (void) const
const int * Spids (void) const
int Apid (int i) const
int Dpid (int i) const
int Spid (int i) const
const char * Alang (int i) const
const char * Dlang (int i) const
const char * Slang (int i) const
int Tpid (void) const
const int * Caids (void) const
int Ca (int Index=0) const
int Nid (void) const
int Tid (void) const
int Sid (void) const
int Rid (void) const
int Number (void) const
void SetNumber (int Number)
bool GroupSep (void) const
char Polarization (void) const
int Inversion (void) const
int Bandwidth (void) const
int CoderateH (void) const
int CoderateL (void) const
int Modulation (void) const
int System (void) const
int Transmission (void) const
int Guard (void) const
int Hierarchy (void) const
int RollOff (void) const
const cLinkChannelsLinkChannels (void) const
const cChannelRefChannel (void) const
bool IsCable (void) const
bool IsSat (void) const
bool IsTerr (void) const
tChannelID GetChannelID (void) const
bool HasTimer (void) const
int Modification (int Mask=CHANNELMOD_ALL)
void CopyTransponderData (const cChannel *Channel)
bool SetSatTransponderData (int Source, int Frequency, char Polarization, int Srate, int CoderateH, int Modulation, int System, int RollOff)
bool SetCableTransponderData (int Source, int Frequency, int Modulation, int Srate, int CoderateH)
bool SetTerrTransponderData (int Source, int Frequency, int Bandwidth, int Modulation, int Hierarchy, int CodeRateH, int CodeRateL, int Guard, int Transmission)
void SetId (int Nid, int Tid, int Sid, int Rid=0)
void SetName (const char *Name, const char *ShortName, const char *Provider)
void SetPortalName (const char *PortalName)
void SetPids (int Vpid, int Ppid, int Vtype, int *Apids, char ALangs[][MAXLANGCODE2], int *Dpids, char DLangs[][MAXLANGCODE2], int *Spids, char SLangs[][MAXLANGCODE2], int Tpid)
void SetCaIds (const int *CaIds)
void SetCaDescriptors (int Level)
void SetLinkChannels (cLinkChannels *LinkChannels)
void SetRefChannel (cChannel *RefChannel)

Static Public Member Functions

static int Transponder (int Frequency, char Polarization)
 builds the transponder from the given Frequency and Polarization

Private Member Functions

cString TransponderDataToString (void) const
cString ParametersToString (void) const
bool StringToParameters (const char *s)

Static Private Member Functions

static cString ToText (const cChannel *Channel)

Private Attributes

char * name
char * shortName
char * provider
char * portalName
int __BeginData__
int frequency
int source
int srate
int vpid
int ppid
int vtype
int apids [MAXAPIDS+1]
char alangs [MAXAPIDS][MAXLANGCODE2]
int dpids [MAXDPIDS+1]
char dlangs [MAXDPIDS][MAXLANGCODE2]
int spids [MAXSPIDS+1]
char slangs [MAXSPIDS][MAXLANGCODE2]
int tpid
int caids [MAXCAIDS+1]
int nid
int tid
int sid
int rid
int number
bool groupSep
char polarization
int inversion
int bandwidth
int coderateH
int coderateL
int modulation
int system
int transmission
int guard
int hierarchy
int rollOff
int __EndData__
int modification
const cScheduleschedule
cLinkChannelslinkChannels
cChannelrefChannel

Friends

class cSchedules
class cMenuEditChannel


Detailed Description

Definition at line 110 of file channels.h.


Constructor & Destructor Documentation

cChannel::cChannel ( void   ) 

cChannel::cChannel ( const cChannel Channel  ) 

Definition at line 208 of file channels.c.

References linkChannels, name, portalName, provider, refChannel, schedule, and shortName.

cChannel::~cChannel (  ) 

Definition at line 220 of file channels.c.

References Channels, cListBase::Del(), cList< T >::First(), linkChannels, name, cList< T >::Next(), portalName, provider, and shortName.

Here is the call graph for this function:


Member Function Documentation

cString cChannel::ToText ( const cChannel Channel  )  [static, private]

cString cChannel::TransponderDataToString ( void   )  const [private]

Definition at line 622 of file channels.c.

References frequency, cSource::IsTerr(), ParametersToString(), source, cString::sprintf(), srate, and cSource::ToString().

Referenced by SetCableTransponderData(), SetSatTransponderData(), and SetTerrTransponderData().

Here is the call graph for this function:

cString cChannel::ParametersToString ( void   )  const [private]

Definition at line 629 of file channels.c.

References bandwidth, coderateH, coderateL, guard, hierarchy, inversion, MapToUser(), modulation, polarization, PrintParameter(), rollOff, source, ST, system, cSource::ToString(), and transmission.

Referenced by ToText(), and TransponderDataToString().

Here is the call graph for this function:

bool cChannel::StringToParameters ( const char *  s  )  [private]

Definition at line 675 of file channels.c.

References bandwidth, coderateH, coderateL, esyslog, guard, hierarchy, inversion, modulation, ParseParameter(), polarization, rollOff, SkipDigits(), system, and transmission.

Referenced by Parse().

Here is the call graph for this function:

cChannel & cChannel::operator= ( const cChannel Channel  ) 

Definition at line 244 of file channels.c.

References __BeginData__, __EndData__, name, portalName, provider, shortName, and strcpyrealloc().

Here is the call graph for this function:

cString cChannel::ToText ( void   )  const

Definition at line 748 of file channels.c.

Referenced by Save().

bool cChannel::Parse ( const char *  s  ) 

bool cChannel::Save ( FILE *  f  ) 

Definition at line 908 of file channels.c.

References ToText().

Here is the call graph for this function:

const char* cChannel::Name ( void   )  const [inline]

const char* cChannel::ShortName ( bool  OrName = false  )  const [inline]

Definition at line 168 of file channels.h.

References isempty(), name, and shortName.

Referenced by cMenuEditTimer::ProcessKey(), and cMenuScheduleItem::Update().

Here is the call graph for this function:

const char* cChannel::Provider ( void   )  const [inline]

Definition at line 169 of file channels.h.

References provider.

Referenced by cMenuChannelItem::Compare(), and cMenuChannelItem::Set().

const char* cChannel::PortalName ( void   )  const [inline]

Definition at line 170 of file channels.h.

References portalName.

int cChannel::Frequency ( void   )  const [inline]

Returns the actual frequency, as given in 'channels.conf'.

Definition at line 171 of file channels.h.

References frequency.

Referenced by cDvbDevice::ProvidesTransponder(), and cDvbTuner::SetFrontend().

int cChannel::Transponder ( void   )  const

int cChannel::Transponder ( int  Frequency,
char  Polarization 
) [static]

builds the transponder from the given Frequency and Polarization

Definition at line 254 of file channels.c.

int cChannel::Source ( void   )  const [inline]

int cChannel::Srate ( void   )  const [inline]

Definition at line 175 of file channels.h.

References srate.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Vpid ( void   )  const [inline]

int cChannel::Ppid ( void   )  const [inline]

Definition at line 177 of file channels.h.

References ppid.

Referenced by cDvbDevice::SetChannelDevice().

int cChannel::Vtype ( void   )  const [inline]

Definition at line 178 of file channels.h.

References vtype.

Referenced by cRecorder::cRecorder(), and cPatPmtGenerator::GeneratePmt().

const int* cChannel::Apids ( void   )  const [inline]

const int* cChannel::Dpids ( void   )  const [inline]

const int* cChannel::Spids ( void   )  const [inline]

Definition at line 181 of file channels.h.

References spids.

Referenced by cRecordControl::cRecordControl(), cDevice::SetChannel(), and cDvbDevice::SetChannelDevice().

int cChannel::Apid ( int  i  )  const [inline]

int cChannel::Dpid ( int  i  )  const [inline]

int cChannel::Spid ( int  i  )  const [inline]

Definition at line 184 of file channels.h.

References MAXSPIDS, and spids.

Referenced by cPatPmtGenerator::GeneratePmt(), and cDevice::SetChannel().

const char* cChannel::Alang ( int  i  )  const [inline]

Definition at line 185 of file channels.h.

References alangs, and MAXAPIDS.

Referenced by cRecordingInfo::cRecordingInfo(), cPatPmtGenerator::GeneratePmt(), and cDevice::SetChannel().

const char* cChannel::Dlang ( int  i  )  const [inline]

Definition at line 186 of file channels.h.

References dlangs, and MAXDPIDS.

Referenced by cRecordingInfo::cRecordingInfo(), cPatPmtGenerator::GeneratePmt(), and cDevice::SetChannel().

const char* cChannel::Slang ( int  i  )  const [inline]

Definition at line 187 of file channels.h.

References MAXSPIDS, and slangs.

Referenced by cRecordingInfo::cRecordingInfo(), cPatPmtGenerator::GeneratePmt(), and cDevice::SetChannel().

int cChannel::Tpid ( void   )  const [inline]

Definition at line 188 of file channels.h.

References tpid.

Referenced by cSkinSTTNGDisplayChannel::SetChannel(), and cDvbDevice::SetChannelDevice().

const int* cChannel::Caids ( void   )  const [inline]

Definition at line 189 of file channels.h.

References caids.

Referenced by cDevice::GetDevice().

int cChannel::Ca ( int  Index = 0  )  const [inline]

int cChannel::Nid ( void   )  const [inline]

Definition at line 191 of file channels.h.

References nid.

Referenced by cEIT::cEIT(), and cNitFilter::Process().

int cChannel::Tid ( void   )  const [inline]

Definition at line 192 of file channels.h.

References tid.

Referenced by cEIT::cEIT(), and cNitFilter::Process().

int cChannel::Sid ( void   )  const [inline]

int cChannel::Rid ( void   )  const [inline]

Definition at line 194 of file channels.h.

References rid.

int cChannel::Number ( void   )  const [inline]

void cChannel::SetNumber ( int  Number  )  [inline]

Definition at line 196 of file channels.h.

References number.

bool cChannel::GroupSep ( void   )  const [inline]

char cChannel::Polarization ( void   )  const [inline]

Definition at line 198 of file channels.h.

References polarization.

Referenced by cDvbDevice::ProvidesTransponder(), and cDvbTuner::SetFrontend().

int cChannel::Inversion ( void   )  const [inline]

Definition at line 199 of file channels.h.

References inversion.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Bandwidth ( void   )  const [inline]

Definition at line 200 of file channels.h.

References bandwidth.

Referenced by cDvbTuner::SetFrontend().

int cChannel::CoderateH ( void   )  const [inline]

Definition at line 201 of file channels.h.

References coderateH.

Referenced by cDvbTuner::SetFrontend().

int cChannel::CoderateL ( void   )  const [inline]

Definition at line 202 of file channels.h.

References coderateL.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Modulation ( void   )  const [inline]

Definition at line 203 of file channels.h.

References modulation.

Referenced by cDvbTuner::SetFrontend().

int cChannel::System ( void   )  const [inline]

Definition at line 204 of file channels.h.

References system.

Referenced by cDvbDevice::ProvidesTransponder(), and cDvbTuner::SetFrontend().

int cChannel::Transmission ( void   )  const [inline]

Definition at line 205 of file channels.h.

References transmission.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Guard ( void   )  const [inline]

Definition at line 206 of file channels.h.

References guard.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Hierarchy ( void   )  const [inline]

Definition at line 207 of file channels.h.

References hierarchy.

Referenced by cDvbTuner::SetFrontend().

int cChannel::RollOff ( void   )  const [inline]

Definition at line 208 of file channels.h.

References rollOff.

Referenced by cDvbTuner::SetFrontend().

const cLinkChannels* cChannel::LinkChannels ( void   )  const [inline]

Definition at line 209 of file channels.h.

References linkChannels.

const cChannel* cChannel::RefChannel ( void   )  const [inline]

Definition at line 210 of file channels.h.

References refChannel.

bool cChannel::IsCable ( void   )  const [inline]

Definition at line 211 of file channels.h.

References cSource::IsCable(), and source.

Here is the call graph for this function:

bool cChannel::IsSat ( void   )  const [inline]

Definition at line 212 of file channels.h.

References cSource::IsSat(), and source.

Referenced by Transponder().

Here is the call graph for this function:

bool cChannel::IsTerr ( void   )  const [inline]

Definition at line 213 of file channels.h.

References cSource::IsTerr(), and source.

Here is the call graph for this function:

tChannelID cChannel::GetChannelID ( void   )  const [inline]

bool cChannel::HasTimer ( void   )  const

Definition at line 276 of file channels.c.

References cList< T >::First(), cList< T >::Next(), and Timers.

Referenced by cMenuChannels::Delete(), and cEvent::SetRunningStatus().

Here is the call graph for this function:

int cChannel::Modification ( int  Mask = CHANNELMOD_ALL  ) 

Definition at line 285 of file channels.c.

References CHANNELMOD_NONE, and modification.

void cChannel::CopyTransponderData ( const cChannel Channel  ) 

bool cChannel::SetSatTransponderData ( int  Source,
int  Frequency,
char  Polarization,
int  Srate,
int  CoderateH,
int  Modulation,
int  System,
int  RollOff 
)

bool cChannel::SetCableTransponderData ( int  Source,
int  Frequency,
int  Modulation,
int  Srate,
int  CoderateH 
)

Definition at line 346 of file channels.c.

References CHANNELMOD_TRANSP, Channels, coderateH, dsyslog, frequency, modification, modulation, Number(), schedule, cChannels::SetModified(), source, srate, and TransponderDataToString().

Referenced by cNitFilter::Process().

Here is the call graph for this function:

bool cChannel::SetTerrTransponderData ( int  Source,
int  Frequency,
int  Bandwidth,
int  Modulation,
int  Hierarchy,
int  CodeRateH,
int  CodeRateL,
int  Guard,
int  Transmission 
)

void cChannel::SetId ( int  Nid,
int  Tid,
int  Sid,
int  Rid = 0 
)

Definition at line 388 of file channels.c.

References CHANNELMOD_ID, Channels, dsyslog, cChannels::HashChannel(), modification, nid, Number(), rid, schedule, cChannels::SetModified(), sid, tid, and cChannels::UnhashChannel().

Referenced by cSdtFilter::Process(), and cNitFilter::Process().

Here is the call graph for this function:

void cChannel::SetName ( const char *  Name,
const char *  ShortName,
const char *  Provider 
)

Definition at line 407 of file channels.c.

References CHANNELMOD_NAME, Channels, dsyslog, isempty(), modification, name, Number(), provider, cChannels::SetModified(), shortName, and strcpyrealloc().

Referenced by cEIT::cEIT(), and cSdtFilter::Process().

Here is the call graph for this function:

void cChannel::SetPortalName ( const char *  PortalName  ) 

Definition at line 429 of file channels.c.

References CHANNELMOD_NAME, Channels, dsyslog, isempty(), modification, Number(), portalName, cChannels::SetModified(), and strcpyrealloc().

Referenced by cEIT::cEIT().

Here is the call graph for this function:

void cChannel::SetPids ( int  Vpid,
int  Ppid,
int  Vtype,
int *  Apids,
char  ALangs[][MAXLANGCODE2],
int *  Dpids,
char  DLangs[][MAXLANGCODE2],
int *  Spids,
char  SLangs[][MAXLANGCODE2],
int  Tpid 
)

void cChannel::SetCaIds ( const int *  CaIds  ) 

Definition at line 536 of file channels.c.

References caids, CHANNELMOD_CA, Channels, dsyslog, IntArraysDiffer(), IntArrayToString(), MAXCAIDS, modification, Number(), and cChannels::SetModified().

Referenced by cPatFilter::Process().

Here is the call graph for this function:

void cChannel::SetCaDescriptors ( int  Level  ) 

Definition at line 556 of file channels.c.

References CHANNELMOD_CA, Channels, dsyslog, modification, Number(), and cChannels::SetModified().

Referenced by cPatFilter::Process().

Here is the call graph for this function:

void cChannel::SetLinkChannels ( cLinkChannels LinkChannels  ) 

Definition at line 566 of file channels.c.

References cLinkChannel::Channel(), cListBase::Count(), dsyslog, cList< T >::First(), linkChannels, cList< T >::Next(), and Number().

Referenced by cEIT::cEIT(), and cSdtFilter::Process().

Here is the call graph for this function:

void cChannel::SetRefChannel ( cChannel RefChannel  ) 

Definition at line 612 of file channels.c.

References refChannel.


Friends And Related Function Documentation

friend class cSchedules [friend]

Definition at line 111 of file channels.h.

friend class cMenuEditChannel [friend]

Definition at line 112 of file channels.h.


Member Data Documentation

char* cChannel::name [private]

char* cChannel::shortName [private]

Definition at line 116 of file channels.h.

Referenced by cChannel(), operator=(), Parse(), SetName(), ShortName(), ToText(), and ~cChannel().

char* cChannel::provider [private]

Definition at line 117 of file channels.h.

Referenced by cChannel(), operator=(), Parse(), Provider(), SetName(), ToText(), and ~cChannel().

char* cChannel::portalName [private]

Definition at line 118 of file channels.h.

Referenced by cChannel(), operator=(), PortalName(), SetPortalName(), and ~cChannel().

int cChannel::__BeginData__ [private]

Definition at line 119 of file channels.h.

Referenced by cChannel(), and operator=().

int cChannel::frequency [private]

int cChannel::source [private]

int cChannel::srate [private]

int cChannel::vpid [private]

Definition at line 123 of file channels.h.

Referenced by Parse(), SetPids(), cMenuEditChannel::Setup(), ToText(), and Vpid().

int cChannel::ppid [private]

Definition at line 124 of file channels.h.

Referenced by Parse(), Ppid(), SetPids(), cMenuEditChannel::Setup(), and ToText().

int cChannel::vtype [private]

Definition at line 125 of file channels.h.

Referenced by Parse(), SetPids(), ToText(), and Vtype().

int cChannel::apids[MAXAPIDS+1] [private]

Definition at line 126 of file channels.h.

Referenced by Apid(), Apids(), Parse(), SetPids(), cMenuEditChannel::Setup(), and ToText().

char cChannel::alangs[MAXAPIDS][MAXLANGCODE2] [private]

Definition at line 127 of file channels.h.

Referenced by Alang(), Parse(), SetPids(), and ToText().

int cChannel::dpids[MAXDPIDS+1] [private]

Definition at line 128 of file channels.h.

Referenced by Dpid(), Dpids(), Parse(), SetPids(), cMenuEditChannel::Setup(), and ToText().

char cChannel::dlangs[MAXDPIDS][MAXLANGCODE2] [private]

Definition at line 129 of file channels.h.

Referenced by Dlang(), Parse(), SetPids(), and ToText().

int cChannel::spids[MAXSPIDS+1] [private]

Definition at line 130 of file channels.h.

Referenced by SetPids(), cMenuEditChannel::Setup(), Spid(), and Spids().

char cChannel::slangs[MAXSPIDS][MAXLANGCODE2] [private]

Definition at line 131 of file channels.h.

Referenced by SetPids(), and Slang().

int cChannel::tpid [private]

Definition at line 132 of file channels.h.

Referenced by Parse(), SetPids(), cMenuEditChannel::Setup(), ToText(), and Tpid().

int cChannel::caids[MAXCAIDS+1] [private]

Definition at line 133 of file channels.h.

Referenced by Ca(), Caids(), Parse(), SetCaIds(), cMenuEditChannel::Setup(), and ToText().

int cChannel::nid [private]

Definition at line 134 of file channels.h.

Referenced by cMenuEditChannel::cMenuEditChannel(), GetChannelID(), Nid(), Parse(), SetId(), and ToText().

int cChannel::tid [private]

Definition at line 135 of file channels.h.

Referenced by cMenuEditChannel::cMenuEditChannel(), GetChannelID(), Parse(), SetId(), Tid(), and ToText().

int cChannel::sid [private]

Definition at line 136 of file channels.h.

Referenced by GetChannelID(), Parse(), SetId(), cMenuEditChannel::Setup(), Sid(), and ToText().

int cChannel::rid [private]

Definition at line 137 of file channels.h.

Referenced by cMenuEditChannel::cMenuEditChannel(), GetChannelID(), Parse(), Rid(), SetId(), and ToText().

int cChannel::number [private]

Definition at line 138 of file channels.h.

Referenced by Number(), Parse(), SetNumber(), and ToText().

bool cChannel::groupSep [private]

Definition at line 139 of file channels.h.

Referenced by GroupSep(), Parse(), and ToText().

char cChannel::polarization [private]

int cChannel::inversion [private]

int cChannel::bandwidth [private]

int cChannel::coderateH [private]

int cChannel::coderateL [private]

int cChannel::modulation [private]

int cChannel::system [private]

int cChannel::transmission [private]

int cChannel::guard [private]

int cChannel::hierarchy [private]

int cChannel::rollOff [private]

int cChannel::__EndData__ [private]

Definition at line 151 of file channels.h.

Referenced by cChannel(), and operator=().

int cChannel::modification [private]

const cSchedule* cChannel::schedule [mutable, private]

Definition at line 154 of file channels.h.

Referenced by cChannel(), LinkChannels(), SetLinkChannels(), and ~cChannel().

Definition at line 155 of file channels.h.

Referenced by cChannel(), RefChannel(), and SetRefChannel().


The documentation for this class was generated from the following files:

Generated on Tue Jan 13 14:27:24 2009 for VDR by  doxygen 1.5.6