vdr  2.2.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
cChannel Class Reference

#include <channels.h>

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
 
int Transponder (void) const
 
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 Atype (int i) const
 
int Dtype (int i) const
 
uchar SubtitlingType (int i) const
 
uint16_t CompositionPageId (int i) const
 
uint16_t AncillaryPageId (int i) const
 
int Tpid (void) const
 
const tTeletextSubtitlePageTeletextSubtitlePages () const
 
int TotalTeletextSubtitlePages () 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 Lcn (void) const
 
int Number (void) const
 
void SetNumber (int Number)
 
bool GroupSep (void) const
 
const char * Parameters (void) const
 
const cLinkChannelsLinkChannels (void) const
 
const cChannelRefChannel (void) const
 
bool IsAtsc (void) const
 
bool IsCable (void) const
 
bool IsSat (void) const
 
bool IsTerr (void) const
 
bool IsSourceType (char Source) const
 
tChannelID GetChannelID (void) const
 
bool HasTimer (void) const
 
int Modification (int Mask=CHANNELMOD_ALL)
 
time_t Seen (void)
 
void CopyTransponderData (const cChannel *Channel)
 
bool SetTransponderData (int Source, int Frequency, int Srate, const char *Parameters, bool Quiet=false)
 
void SetId (int Nid, int Tid, int Sid, int Rid=0)
 
void SetLcn (int Lcn)
 
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, int *Atypes, char ALangs[][MAXLANGCODE2], int *Dpids, int *Dtypes, char DLangs[][MAXLANGCODE2], int *Spids, char SLangs[][MAXLANGCODE2], int Tpid)
 
void SetTeletextSubtitlePages (tTeletextSubtitlePage pages[], int numberOfPages)
 
void SetCaIds (const int *CaIds)
 
void SetCaDescriptors (int Level)
 
void SetLinkChannels (cLinkChannels *LinkChannels)
 
void SetRefChannel (cChannel *RefChannel)
 
void SetSubtitlingDescriptors (uchar *SubtitlingTypes, uint16_t *CompositionPageIds, uint16_t *AncillaryPageIds)
 
void SetSeen (void)
 
- Public Member Functions inherited from cListObject
 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
 
cListObjectPrev (void) const
 
cListObjectNext (void) const
 

Static Public Member Functions

static int Transponder (int Frequency, char Polarization)
 

Private Member Functions

cString TransponderDataToString (void) const
 

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]
 
int atypes [MAXAPIDS+1]
 
char alangs [MAXAPIDS][MAXLANGCODE2]
 
int dpids [MAXDPIDS+1]
 
int dtypes [MAXAPIDS+1]
 
char dlangs [MAXDPIDS][MAXLANGCODE2]
 
int spids [MAXSPIDS+1]
 
char slangs [MAXSPIDS][MAXLANGCODE2]
 
uchar subtitlingTypes [MAXSPIDS]
 
uint16_t compositionPageIds [MAXSPIDS]
 
uint16_t ancillaryPageIds [MAXSPIDS]
 
int tpid
 
int fixedTtxtSubtitlePages
 
int totalTtxtSubtitlePages
 
tTeletextSubtitlePage teletextSubtitlePages [MAXTXTPAGES]
 
int caids [MAXCAIDS+1]
 
int nid
 
int tid
 
int sid
 
int rid
 
int lcn
 
int number
 
bool groupSep
 
int __EndData__
 
cString nameSource
 
cString shortNameSource
 
cString parameters
 
int modification
 
time_t seen
 
const cScheduleschedule
 
cLinkChannelslinkChannels
 
cChannelrefChannel
 

Friends

class cSchedules
 
class cMenuEditChannel
 
class cDvbSourceParam
 

Detailed Description

Definition at line 103 of file channels.h.

Constructor & Destructor Documentation

cChannel::cChannel ( void  )

Definition at line 59 of file channels.c.

References CHANNELMOD_NONE.

cChannel::cChannel ( const cChannel Channel)

Definition at line 74 of file channels.c.

cChannel::~cChannel ( )

Definition at line 86 of file channels.c.

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

Member Function Documentation

const char* cChannel::Alang ( int  i) const
inline
uint16_t cChannel::AncillaryPageId ( int  i) const
inline

Definition at line 186 of file channels.h.

References MAXSPIDS.

Referenced by cPatPmtGenerator::GeneratePmt().

int cChannel::Apid ( int  i) const
inline
const int* cChannel::Apids ( void  ) const
inline
int cChannel::Atype ( int  i) const
inline

Definition at line 182 of file channels.h.

References MAXAPIDS.

Referenced by cPatPmtGenerator::GeneratePmt(), and cDvbHdFfDevice::SetAudioTrackDevice().

int cChannel::Ca ( int  Index = 0) const
inline
const int* cChannel::Caids ( void  ) const
inline

Definition at line 190 of file channels.h.

Referenced by cDevice::GetDevice().

uint16_t cChannel::CompositionPageId ( int  i) const
inline

Definition at line 185 of file channels.h.

References MAXSPIDS.

Referenced by cPatPmtGenerator::GeneratePmt().

void cChannel::CopyTransponderData ( const cChannel Channel)

Definition at line 187 of file channels.c.

References frequency, parameters, tChannelID::source, source, and srate.

Referenced by cChannels::NewChannel().

const char* cChannel::Dlang ( int  i) const
inline
int cChannel::Dpid ( int  i) const
inline
const int* cChannel::Dpids ( void  ) const
inline
int cChannel::Dtype ( int  i) const
inline
int cChannel::Frequency ( void  ) const
inline

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

Definition at line 165 of file channels.h.

Referenced by cDvbTuner::GetBondingParams(), cDvbSourceParam::GetData(), cNitFilter::Process(), and cDvbDevice::ProvidesTransponder().

tChannelID cChannel::GetChannelID ( void  ) const
inline
bool cChannel::GroupSep ( void  ) const
inline
bool cChannel::HasTimer ( void  ) const

Definition at line 171 of file channels.c.

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

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

bool cChannel::IsAtsc ( void  ) const
inline

Definition at line 203 of file channels.h.

References cSource::IsAtsc().

Referenced by GetRequiredDeliverySystem().

bool cChannel::IsCable ( void  ) const
inline

Definition at line 204 of file channels.h.

References cSource::IsCable().

Referenced by GetRequiredDeliverySystem().

bool cChannel::IsSat ( void  ) const
inline

Definition at line 205 of file channels.h.

References cSource::IsSat().

Referenced by GetRequiredDeliverySystem().

bool cChannel::IsSourceType ( char  Source) const
inline

Definition at line 207 of file channels.h.

References cSource::IsType().

bool cChannel::IsTerr ( void  ) const
inline

Definition at line 206 of file channels.h.

References cSource::IsTerr().

Referenced by GetRequiredDeliverySystem().

int cChannel::Lcn ( void  ) const
inline

Definition at line 196 of file channels.h.

Referenced by cNitFilter::Process().

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

Definition at line 201 of file channels.h.

int cChannel::Modification ( int  Mask = CHANNELMOD_ALL)

Definition at line 180 of file channels.c.

References CHANNELMOD_NONE.

const char * cChannel::Name ( void  ) const
int cChannel::Nid ( void  ) const
inline

Definition at line 192 of file channels.h.

References tChannelID::nid.

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

int cChannel::Number ( void  ) const
inline
cChannel & cChannel::operator= ( const cChannel Channel)

Definition at line 110 of file channels.c.

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

const char* cChannel::Parameters ( void  ) const
inline
bool cChannel::Parse ( const char *  s)
const char* cChannel::PortalName ( void  ) const
inline

Definition at line 164 of file channels.h.

int cChannel::Ppid ( void  ) const
inline
const char* cChannel::Provider ( void  ) const
inline

Definition at line 163 of file channels.h.

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

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

Definition at line 202 of file channels.h.

int cChannel::Rid ( void  ) const
inline

Definition at line 195 of file channels.h.

References tChannelID::rid.

bool cChannel::Save ( FILE *  f)

Definition at line 841 of file channels.c.

time_t cChannel::Seen ( void  )
inline
void cChannel::SetCaDescriptors ( int  Level)

Definition at line 471 of file channels.c.

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

Referenced by cPatFilter::Process().

void cChannel::SetCaIds ( const int *  CaIds)
void cChannel::SetId ( int  Nid,
int  Tid,
int  Sid,
int  Rid = 0 
)
void cChannel::SetLcn ( int  Lcn)

Definition at line 252 of file channels.c.

References dsyslog.

Referenced by cNitFilter::Process().

void cChannel::SetLinkChannels ( cLinkChannels LinkChannels)
void cChannel::SetName ( const char *  Name,
const char *  ShortName,
const char *  Provider 
)
void cChannel::SetNumber ( int  Number)
inline

Definition at line 198 of file channels.h.

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

Definition at line 287 of file channels.c.

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

Referenced by cEIT::cEIT().

void cChannel::SetRefChannel ( cChannel RefChannel)

Definition at line 528 of file channels.c.

void cChannel::SetSeen ( void  )

Definition at line 445 of file channels.c.

Referenced by cSdtFilter::Process().

void cChannel::SetSubtitlingDescriptors ( uchar SubtitlingTypes,
uint16_t *  CompositionPageIds,
uint16_t *  AncillaryPageIds 
)

Definition at line 409 of file channels.c.

References MAXSPIDS.

Referenced by cPatFilter::Process().

void cChannel::SetTeletextSubtitlePages ( tTeletextSubtitlePage  pages[],
int  numberOfPages 
)

Definition at line 425 of file channels.c.

References CHANNELMOD_NONE, CHANNELMOD_PIDS, Channels, MAXTXTPAGES, and cChannels::SetModified().

Referenced by cPatFilter::Process().

bool cChannel::SetTransponderData ( int  Source,
int  Frequency,
int  Srate,
const char *  Parameters,
bool  Quiet = false 
)
const char * cChannel::ShortName ( bool  OrName = false) const
int cChannel::Sid ( void  ) const
inline
const char* cChannel::Slang ( int  i) const
inline
int cChannel::Source ( void  ) const
inline
int cChannel::Spid ( int  i) const
inline

Definition at line 178 of file channels.h.

References MAXSPIDS.

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

const int* cChannel::Spids ( void  ) const
inline
int cChannel::Srate ( void  ) const
inline

Definition at line 169 of file channels.h.

References cDvbSourceParam::srate.

Referenced by cNitFilter::Process(), and cDvbSourceParam::SetData().

uchar cChannel::SubtitlingType ( int  i) const
inline

Definition at line 184 of file channels.h.

References MAXSPIDS.

Referenced by cPatPmtGenerator::GeneratePmt().

const tTeletextSubtitlePage* cChannel::TeletextSubtitlePages ( ) const
inline

Definition at line 188 of file channels.h.

Referenced by cPatPmtGenerator::GeneratePmt().

int cChannel::Tid ( void  ) const
inline

Definition at line 193 of file channels.h.

References tChannelID::tid.

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

int cChannel::TotalTeletextSubtitlePages ( ) const
inline

Definition at line 189 of file channels.h.

Referenced by cPatPmtGenerator::GeneratePmt().

cString cChannel::ToText ( const cChannel Channel)
staticprivate
cString cChannel::ToText ( void  ) const

Definition at line 604 of file channels.c.

int cChannel::Tpid ( void  ) const
inline
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 145 of file channels.c.

References esyslog.

cString cChannel::TransponderDataToString ( void  ) const
private
int cChannel::Vpid ( void  ) const
inline
int cChannel::Vtype ( void  ) const
inline

Friends And Related Function Documentation

friend class cDvbSourceParam
friend

Definition at line 106 of file channels.h.

friend class cMenuEditChannel
friend

Definition at line 105 of file channels.h.

friend class cSchedules
friend

Definition at line 104 of file channels.h.

Member Data Documentation

int cChannel::__BeginData__
private

Definition at line 113 of file channels.h.

Referenced by operator=().

int cChannel::__EndData__
private

Definition at line 143 of file channels.h.

Referenced by operator=().

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

Definition at line 122 of file channels.h.

Referenced by ToText().

uint16_t cChannel::ancillaryPageIds[MAXSPIDS]
private

Definition at line 130 of file channels.h.

int cChannel::apids[MAXAPIDS+1]
private

Definition at line 120 of file channels.h.

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

int cChannel::atypes[MAXAPIDS+1]
private

Definition at line 121 of file channels.h.

Referenced by ToText().

int cChannel::caids[MAXCAIDS+1]
private

Definition at line 135 of file channels.h.

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

uint16_t cChannel::compositionPageIds[MAXSPIDS]
private

Definition at line 129 of file channels.h.

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

Definition at line 125 of file channels.h.

Referenced by ToText().

int cChannel::dpids[MAXDPIDS+1]
private

Definition at line 123 of file channels.h.

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

int cChannel::dtypes[MAXAPIDS+1]
private

Definition at line 124 of file channels.h.

Referenced by ToText().

int cChannel::fixedTtxtSubtitlePages
private

Definition at line 132 of file channels.h.

Referenced by ToText().

int cChannel::frequency
private

Definition at line 114 of file channels.h.

Referenced by CopyTransponderData(), cMenuEditChannel::Setup(), and ToText().

bool cChannel::groupSep
private

Definition at line 142 of file channels.h.

Referenced by ToText().

int cChannel::lcn
private

Definition at line 140 of file channels.h.

cLinkChannels* cChannel::linkChannels
private

Definition at line 150 of file channels.h.

int cChannel::modification
private

Definition at line 147 of file channels.h.

char* cChannel::name
private
cString cChannel::nameSource
mutableprivate

Definition at line 144 of file channels.h.

int cChannel::nid
private

Definition at line 136 of file channels.h.

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

int cChannel::number
private

Definition at line 141 of file channels.h.

Referenced by ToText().

cString cChannel::parameters
private

Definition at line 146 of file channels.h.

Referenced by CopyTransponderData(), operator=(), and ToText().

char* cChannel::portalName
private

Definition at line 112 of file channels.h.

Referenced by cMenuEditChannel::cMenuEditChannel(), and operator=().

int cChannel::ppid
private

Definition at line 118 of file channels.h.

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

char* cChannel::provider
private

Definition at line 111 of file channels.h.

Referenced by cMenuEditChannel::cMenuEditChannel(), operator=(), and ToText().

cChannel* cChannel::refChannel
private

Definition at line 151 of file channels.h.

int cChannel::rid
private

Definition at line 139 of file channels.h.

Referenced by cMenuEditChannel::cMenuEditChannel(), and ToText().

const cSchedule* cChannel::schedule
mutableprivate

Definition at line 149 of file channels.h.

Referenced by cSchedules::AddSchedule(), and cSchedules::GetSchedule().

time_t cChannel::seen
private

Definition at line 148 of file channels.h.

char* cChannel::shortName
private

Definition at line 110 of file channels.h.

Referenced by cMenuEditChannel::cMenuEditChannel(), operator=(), and ToText().

cString cChannel::shortNameSource
mutableprivate

Definition at line 145 of file channels.h.

int cChannel::sid
private

Definition at line 138 of file channels.h.

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

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

Definition at line 127 of file channels.h.

Referenced by ToText().

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

Definition at line 126 of file channels.h.

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

int cChannel::srate
private

Definition at line 116 of file channels.h.

Referenced by CopyTransponderData(), and ToText().

uchar cChannel::subtitlingTypes[MAXSPIDS]
private

Definition at line 128 of file channels.h.

tTeletextSubtitlePage cChannel::teletextSubtitlePages[MAXTXTPAGES]
private

Definition at line 134 of file channels.h.

Referenced by ToText().

int cChannel::tid
private

Definition at line 137 of file channels.h.

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

int cChannel::totalTtxtSubtitlePages
private

Definition at line 133 of file channels.h.

int cChannel::tpid
private

Definition at line 131 of file channels.h.

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

int cChannel::vpid
private

Definition at line 117 of file channels.h.

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

int cChannel::vtype
private

Definition at line 119 of file channels.h.

Referenced by ToText().


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