Home

Dokumentation

Impressum

Dokumentation VDR
 

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

cChannel Class Reference

#include <channels.h>

Inheritance diagram for cChannel:

Inheritance graph
[legend]
Collaboration diagram for cChannel:

Collaboration graph
[legend]

Detailed Description

??? Configure channel menu, for display of channel data

Definition at line 57 of file channels.h.

Public Methods

 cChannel (void)
cChannel & operator= (const cChannel &Channel)
const char * ToText (void)
bool Parse (const char *s, bool AllowNonUniqueID=false)
bool Save (FILE *f)
const char * Name (void) const
int Frequency (void) const
int Source (void) const
int Srate (void) const
int Vpid (void) const
int Apid1 (void) const
int Apid2 (void) const
int Dpid1 (void) const
int Dpid2 (void) const
int Tpid (void) const
int Ca (void) const
int Sid (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 Transmission (void) const
int Guard (void) const
int Hierarchy (void) const
bool IsCable (void)
bool IsSat (void)
bool IsTerr (void)
tChannelID GetChannelID (void) const

Private Types

enum  { MaxChannelName = 32 }

Private Methods

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

Static Private Methods

const char * ToText (cChannel *Channel)

Private Attributes

int __BeginData__
char name [MaxChannelName]
int frequency
int source
int srate
int vpid
int apid1
int apid2
int dpid1
int dpid2
int tpid
int ca
int tid
int sid
int rid
int number
bool groupSep
char polarization
int nid
int inversion
int bandwidth
int coderateH
int coderateL
int modulation
int transmission
int guard
int hierarchy
int __EndData__

Static Private Attributes

char * buffer = NULL

Friends

class cMenuEditChannel


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
MaxChannelName 

Definition at line 62 of file channels.h.


Constructor & Destructor Documentation

cChannel::cChannel void   
 

Definition at line 160 of file channels.c.

References apid1, apid2, bandwidth, ca, coderateH, coderateL, dpid1, dpid2, frequency, cSource::FromString(), groupSep, guard, hierarchy, inversion, modulation, nid, number, polarization, rid, sid, source, srate, tid, tpid, transmission, and vpid.


Member Function Documentation

int cChannel::Apid1 void    const [inline]
 

Definition at line 169 of file channels.h.

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

int cChannel::Apid2 void    const [inline]
 

Definition at line 170 of file channels.h.

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

int cChannel::Bandwidth void    const [inline]
 

Definition at line 181 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Ca void    const [inline]
 

Definition at line 174 of file channels.h.

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

int cChannel::CoderateH void    const [inline]
 

Definition at line 182 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

int cChannel::CoderateL void    const [inline]
 

Definition at line 183 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Dpid1 void    const [inline]
 

Definition at line 171 of file channels.h.

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

int cChannel::Dpid2 void    const [inline]
 

Definition at line 172 of file channels.h.

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

int cChannel::Frequency void    const [inline]
 

Definition at line 165 of file channels.h.

Referenced by cMenuEditTranItem::cMenuEditTranItem(), cDvbTuner::IsTunedTo(), cMenuEditTranItem::ProcessKey(), cDvbDevice::SetChannelDevice(), cDvbTuner::SetFrontend(), and cEITScanner::TransponderScanned().

tChannelID cChannel::GetChannelID void    const
 

Definition at line 203 of file channels.c.

References MHz().

Referenced by cSchedule::Dump(), cChannels::GetByChannelID(), cRecordControl::GetEventInfo(), cChannels::HasUniqueChannelID(), Parse(), cMenuSchedule::PrepareSchedule(), and cDevice::SetChannel().

bool cChannel::GroupSep void    const [inline]
 

Definition at line 178 of file channels.h.

Referenced by cMenuChannelItem::cMenuChannelItem(), cMenuChannels::cMenuChannels(), cMenuEditTranItem::cMenuEditTranItem(), cDisplayChannel::DisplayChannel(), cChannels::GetByChannelID(), cChannels::GetByNumber(), cChannels::GetByServiceID(), cChannels::GetNextGroup(), cChannels::GetNextNormal(), cChannels::GetPrevGroup(), cChannels::HasUniqueChannelID(), cDisplayChannel::ProcessKey(), cChannels::ReNumber(), and cMenuChannelItem::Set().

int cChannel::Guard void    const [inline]
 

Definition at line 186 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Hierarchy void    const [inline]
 

Definition at line 187 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Inversion void    const [inline]
 

Definition at line 180 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

bool cChannel::IsCable void    [inline]
 

Definition at line 188 of file channels.h.

References cSource::st_Mask, and cSource::stCable.

bool cChannel::IsSat void    [inline]
 

Definition at line 189 of file channels.h.

References cSource::st_Mask, and cSource::stSat.

bool cChannel::IsTerr void    [inline]
 

Definition at line 190 of file channels.h.

References cSource::st_Mask, and cSource::stTerr.

int cChannel::Modulation void    const [inline]
 

Definition at line 184 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

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

Definition at line 164 of file channels.h.

Referenced by cSVDRP::CmdCHAN(), cSVDRP::CmdLSTC(), cMenuChannels::cMenuChannels(), cMenuEvent::cMenuEvent(), cMenuWhatsOnItem::cMenuWhatsOnItem(), cRecordControl::cRecordControl(), cRecording::cRecording(), cTimer::cTimer(), cDisplayChannel::DisplayChannel(), cSchedule::Dump(), cChannels::GetNextGroup(), cChannels::GetPrevGroup(), cMenuSchedule::PrepareSchedule(), cMenuEditTimer::ProcessKey(), ReportEpgBugFixStats(), cMenuChannelItem::Set(), and cMenuEditChanItem::Set().

int cChannel::Number void    const [inline]
 

Definition at line 176 of file channels.h.

Referenced by cSVDRP::CmdCHAN(), cSVDRP::CmdLSTC(), cSVDRP::CmdMODC(), cSVDRP::CmdNEWC(), cMenuEditTimer::cMenuEditTimer(), cMenuEditTranItem::cMenuEditTranItem(), cMenuSchedule::cMenuSchedule(), cMenuWhatsOn::cMenuWhatsOn(), cMenuChannels::Delete(), cDisplayChannel::DisplayChannel(), cChannels::GetByNumber(), main(), cEITScanner::Process(), cMenuSchedule::ProcessKey(), cMenuEditChannel::ProcessKey(), cMenuEditChanItem::ProcessKey(), cChannels::ReNumber(), cMenuTimerItem::Set(), cMenuChannelItem::Set(), cDevice::SetChannel(), cDvbDevice::SetChannelDevice(), cDvbTuner::SetFrontend(), cRecordControls::Start(), and cDevice::SwitchChannel().

cChannel & cChannel::operator= const cChannel &    Channel
 

Definition at line 190 of file channels.c.

References __BeginData__, and __EndData__.

const char * cChannel::ParametersToString void    [private]
 

Definition at line 213 of file channels.c.

References buffer, MapToUser(), PrintParameter(), and cSource::ToString().

Referenced by ToText().

bool cChannel::Parse const char *    s,
bool    AllowNonUniqueID = false
 

Definition at line 309 of file channels.c.

References apid1, apid2, ca, Channels, dpid1, dpid2, esyslog, cSource::FromString(), cChannels::GetByChannelID(), GetChannelID(), groupSep, number, sid, skipspace(), source, StringToParameters(), strn0cpy(), strreplace(), and tpid.

Referenced by cSVDRP::CmdMODC(), and cSVDRP::CmdNEWC().

char cChannel::Polarization void    const [inline]
 

Definition at line 179 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

bool cChannel::Save FILE *    f
 

Definition at line 368 of file channels.c.

References ToText().

void cChannel::SetNumber int    Number [inline]
 

Definition at line 177 of file channels.h.

Referenced by cChannels::ReNumber().

int cChannel::Sid void    const [inline]
 

Definition at line 175 of file channels.h.

Referenced by cChannels::GetByServiceID(), and cEITScanner::Process().

int cChannel::Source void    const [inline]
 

Definition at line 166 of file channels.h.

Referenced by cChannels::GetByServiceID(), cDvbTuner::IsTunedTo(), cDvbDevice::ProvidesChannel(), cDvbDevice::SetChannelDevice(), and cDvbTuner::SetFrontend().

int cChannel::Srate void    const [inline]
 

Definition at line 167 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

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

Definition at line 250 of file channels.c.

References esyslog, ParseParameter(), and polarization.

Referenced by Parse().

const char * cChannel::ToText void   
 

Definition at line 304 of file channels.c.

Referenced by Save().

const char * cChannel::ToText cChannel *    Channel [static, private]
 

Definition at line 273 of file channels.c.

References apid1, apid2, buffer, ca, dpid1, dpid2, frequency, groupSep, MaxChannelName, name, nid, number, ParametersToString(), rid, sid, source, srate, strreplace(), tid, cSource::ToString(), tpid, and vpid.

Referenced by cSVDRP::CmdLSTC(), cSVDRP::CmdMODC(), and cSVDRP::CmdNEWC().

int cChannel::Tpid void    const [inline]
 

Definition at line 173 of file channels.h.

Referenced by cDvbDevice::SetChannelDevice().

int cChannel::Transmission void    const [inline]
 

Definition at line 185 of file channels.h.

Referenced by cDvbTuner::SetFrontend().

int cChannel::Vpid void    const [inline]
 

Definition at line 168 of file channels.h.

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


Friends And Related Function Documentation

friend class cMenuEditChannel [friend]
 

Definition at line 58 of file channels.h.


Field Documentation

int cChannel::__BeginData__ [private]
 

Definition at line 63 of file channels.h.

Referenced by operator=().

int cChannel::__EndData__ [private]
 

Definition at line 155 of file channels.h.

Referenced by operator=().

int cChannel::apid1 [private]
 

The audio PID

Definition at line 96 of file channels.h.

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

int cChannel::apid2 [private]
 

The audio PID

Definition at line 96 of file channels.h.

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

int cChannel::bandwidth [private]
 

bandwith

Definition at line 148 of file channels.h.

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

char * cChannel::buffer = NULL [static, private]
 

Definition at line 158 of file channels.c.

Referenced by ParametersToString(), and ToText().

int cChannel::ca [private]
 

Conditional access

Definition at line 107 of file channels.h.

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

int cChannel::coderateH [private]
 

Definition at line 149 of file channels.h.

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

int cChannel::coderateL [private]
 

Definition at line 150 of file channels.h.

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

int cChannel::dpid1 [private]
 

Definition at line 97 of file channels.h.

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

int cChannel::dpid2 [private]
 

Definition at line 97 of file channels.h.

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

int cChannel::frequency [private]
 

The transponder frequency (as an integer). For DVB-S this value is in MHz. For DVB-C and DVB-T it can be given either in MHz, kHz or Hz (the actual value given will be multiplied by 1000 until it is larger than 1000000).

Definition at line 71 of file channels.h.

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

bool cChannel::groupSep [private]
 

Definition at line 130 of file channels.h.

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

int cChannel::guard [private]
 

Definition at line 153 of file channels.h.

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

int cChannel::hierarchy [private]
 

Definition at line 154 of file channels.h.

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

int cChannel::inversion [private]
 

Definition at line 143 of file channels.h.

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

int cChannel::modulation [private]
 

Definition at line 151 of file channels.h.

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

char cChannel::name[MaxChannelName] [private]
 

Definition at line 64 of file channels.h.

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

int cChannel::nid [private]
 

The Network ID of this channel (for future use, currently always 0).

Definition at line 142 of file channels.h.

Referenced by cChannel(), and ToText().

int cChannel::number [private]
 

Sequence number assigned on load

Definition at line 129 of file channels.h.

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

char cChannel::polarization [private]
 

The polarization parameters have no integer numbers following them. This is for compatibility with files from older versions and also to keep the DVB-S entries as simple as possible.

Definition at line 137 of file channels.h.

Referenced by cChannel(), cMenuEditChannel::Setup(), and StringToParameters().

int cChannel::rid [private]
 

The Radio ID of this channel (typically 0, may be used to distinguish channels where NID, TID and SID are all equal).

Definition at line 124 of file channels.h.

Referenced by cChannel(), and ToText().

int cChannel::sid [private]
 

The Service ID of this channel.

Definition at line 118 of file channels.h.

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

int cChannel::source [private]
 

The signal source of a channel, as defined in the file sources.conf. For compatibility with files from older versions numeric values will be accepted and also written back correctly, but they will have no meaning for the DiSEqC settings. You should replace the numerical values with the proper source identifiers defined in sources.conf.

Definition at line 80 of file channels.h.

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

int cChannel::srate [private]
 

The symbol rate of this channel (DVB-S and DVB-C only).

Definition at line 85 of file channels.h.

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

int cChannel::tid [private]
 

The Transport stream ID of this channel (for future use, currently always 0).

Definition at line 113 of file channels.h.

Referenced by cChannel(), and ToText().

int cChannel::tpid [private]
 

The teletext PID.

Definition at line 102 of file channels.h.

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

int cChannel::transmission [private]
 

Definition at line 152 of file channels.h.

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

int cChannel::vpid [private]
 

The video PID (set to '0' for radio channels, '1' for encrypted radio channels).

Definition at line 91 of file channels.h.

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


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