Home

Dokumentation

Impressum

Dokumentation VDR
 

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

cChannels Class Reference

#include <channels.h>

Inheritance diagram for cChannels:

Inheritance graph
[legend]
Collaboration diagram for cChannels:

Collaboration graph
[legend]

Detailed Description

Channel configuration (from channel.conf).

Definition at line 196 of file channels.h.

Public Methods

 cChannels (void)
virtual bool Load (const char *FileName, bool AllowComments=false)
int GetNextGroup (int Idx)
int GetPrevGroup (int Idx)
int GetNextNormal (int Idx)
void ReNumber (void)
cChannelGetByNumber (int Number, int SkipGap=0)
cChannelGetByServiceID (int Source, unsigned short ServiceID)
cChannelGetByChannelID (tChannelID ChannelID, bool TryWithoutRid=false)
bool HasUniqueChannelID (cChannel *NewChannel, cChannel *OldChannel=NULL)
bool SwitchTo (int Number)
int MaxNumber (void)

Protected Attributes

int maxNumber


Constructor & Destructor Documentation

cChannels::cChannels void    [inline]
 

Definition at line 200 of file channels.h.


Member Function Documentation

cChannel * cChannels::GetByChannelID tChannelID    ChannelID,
bool    TryWithoutRid = false
 

Definition at line 448 of file channels.c.

References tChannelID::ClrRid(), cList< cChannel >::First(), cChannel::GetChannelID(), cChannel::GroupSep(), and cList< cChannel >::Next().

Referenced by cChannel::Parse().

cChannel * cChannels::GetByNumber int    Number,
int    SkipGap = 0
 

Definition at line 424 of file channels.c.

References cList< cChannel >::First(), cChannel::GroupSep(), cList< cChannel >::Next(), and cChannel::Number().

Referenced by SwitchTo().

cChannel * cChannels::GetByServiceID int    Source,
unsigned short    ServiceID
 

Definition at line 439 of file channels.c.

References cList< cChannel >::First(), cChannel::GroupSep(), cList< cChannel >::Next(), cChannel::Sid(), and cChannel::Source().

int cChannels::GetNextGroup int    Idx
 

Get next channel group

Definition at line 386 of file channels.c.

References cList< cChannel >::Get(), cChannel::GroupSep(), and cChannel::Name().

int cChannels::GetNextNormal int    Idx
 

Get next normal channel (not group)

Definition at line 402 of file channels.c.

References cList< cChannel >::Get(), and cChannel::GroupSep().

int cChannels::GetPrevGroup int    Idx
 

Get previous channel group.

Definition at line 394 of file channels.c.

References cList< cChannel >::Get(), cChannel::GroupSep(), and cChannel::Name().

bool cChannels::HasUniqueChannelID cChannel   NewChannel,
cChannel   OldChannel = NULL
 

Definition at line 464 of file channels.c.

References cList< cChannel >::First(), cChannel::GetChannelID(), cChannel::GroupSep(), and cList< cChannel >::Next().

bool cChannels::Load const char *    FileName,
bool    AllowComments = false
[virtual]
 

Reimplemented from cConfig< cChannel >.

Definition at line 377 of file channels.c.

References cConfig< T >::Load(), and ReNumber().

int cChannels::MaxNumber void    [inline]
 

Definition at line 227 of file channels.h.

void cChannels::ReNumber void   
 

Recalculate 'number' based on channel type

Definition at line 410 of file channels.c.

References cList< cChannel >::First(), cChannel::GroupSep(), maxNumber, cList< cChannel >::Next(), cChannel::Number(), and cChannel::SetNumber().

Referenced by Load().

bool cChannels::SwitchTo int    Number
 

Definition at line 474 of file channels.c.

References GetByNumber(), cDevice::PrimaryDevice(), and cDevice::SwitchChannel().


Field Documentation

int cChannels::maxNumber [protected]
 

Definition at line 198 of file channels.h.

Referenced by ReNumber().


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