vdr
2.2.0
|
#include <channels.h>
Public Member Functions | |
cChannels (void) | |
bool | Load (const char *FileName, bool AllowComments=false, bool MustExist=false) |
void | HashChannel (cChannel *Channel) |
void | UnhashChannel (cChannel *Channel) |
int | GetNextGroup (int Idx) |
int | GetPrevGroup (int Idx) |
int | GetNextNormal (int Idx) |
int | GetPrevNormal (int Idx) |
void | ReNumber (void) |
cChannel * | GetByNumber (int Number, int SkipGap=0) |
cChannel * | GetByServiceID (int Source, int Transponder, unsigned short ServiceID) |
cChannel * | GetByChannelID (tChannelID ChannelID, bool TryWithoutRid=false, bool TryWithoutPolarization=false) |
cChannel * | GetByTransponderID (tChannelID ChannelID) |
int | BeingEdited (void) |
void | IncBeingEdited (void) |
void | DecBeingEdited (void) |
bool | HasUniqueChannelID (cChannel *NewChannel, cChannel *OldChannel=NULL) |
bool | SwitchTo (int Number) |
int | MaxNumber (void) |
int | MaxChannelNameLength (void) |
int | MaxShortChannelNameLength (void) |
void | SetModified (bool ByUser=false) |
int | Modified (void) |
cChannel * | NewChannel (const cChannel *Transponder, const char *Name, const char *ShortName, const char *Provider, int Nid, int Tid, int Sid, int Rid=0) |
void | MarkObsoleteChannels (int Source, int Nid, int Tid) |
![]() | |
cRwLock (bool PreferWriter=false) | |
~cRwLock () | |
bool | Lock (bool Write, int TimeoutMs=0) |
void | Unlock (void) |
![]() | |
cConfig (void) | |
virtual | ~cConfig () |
const char * | FileName (void) |
bool | Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false) |
bool | Save (void) |
![]() | |
cChannel * | Get (int Index) const |
cChannel * | First (void) const |
cChannel * | Last (void) const |
cChannel * | Prev (const cChannel *object) const |
cChannel * | Next (const cChannel *object) const |
![]() | |
virtual | ~cListBase () |
void | Add (cListObject *Object, cListObject *After=NULL) |
void | Ins (cListObject *Object, cListObject *Before=NULL) |
void | Del (cListObject *Object, bool DeleteObject=true) |
virtual void | Move (int From, int To) |
void | Move (cListObject *From, cListObject *To) |
cListObject * | Get (int Index) const |
int | Count (void) const |
void | Sort (void) |
Private Member Functions | |
void | DeleteDuplicateChannels (void) |
Private Attributes | |
int | maxNumber |
int | maxChannelNameLength |
int | maxShortChannelNameLength |
int | modified |
int | beingEdited |
cHash< cChannel > | channelsHashSid |
Additional Inherited Members | |
![]() | |
cListBase (void) | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
Definition at line 228 of file channels.h.
cChannels::cChannels | ( | void | ) |
Definition at line 866 of file channels.c.
References CHANNELSMOD_NONE.
|
inline |
Definition at line 251 of file channels.h.
Referenced by cSVDRP::CmdDELC(), cSVDRP::CmdMODC(), cSVDRP::CmdMOVC(), and main().
|
inline |
Definition at line 253 of file channels.h.
Referenced by cMenuChannels::~cMenuChannels().
|
private |
Definition at line 874 of file channels.c.
References cListBase::Add(), cChannelSorter::channel, cChannelSorter::channelID, dsyslog, cList< T >::First(), cList< T >::Next(), cListBase::Sort(), and cChannel::ToText().
cChannel * cChannels::GetByChannelID | ( | tChannelID | ChannelID, |
bool | TryWithoutRid = false , |
||
bool | TryWithoutPolarization = false |
||
) |
Definition at line 1023 of file channels.c.
References tChannelID::ClrPolarization(), tChannelID::ClrRid(), cList< T >::First(), cChannel::GetChannelID(), cList< T >::Next(), tChannelID::sid, tChannelID::Sid(), and cChannel::Sid().
Referenced by cSchedules::AddSchedule(), cEIT::cEIT(), cSVDRP::CmdCHAN(), cSVDRP::CmdLSTC(), cSVDRP::CmdLSTE(), cMenuEditChanItem::cMenuEditChanItem(), cMenuEvent::cMenuEvent(), cTimer::cTimer(), cSchedule::Dump(), main(), cMenuSchedule::Number(), cTimer::Parse(), cSdtFilter::Process(), cMenuSchedule::ProcessKey(), ReportEpgBugFixStats(), cMenuWhatsOn::SetHelpKeys(), cMenuSchedule::SetHelpKeys(), cMenuWhatsOn::Switch(), and cMenuSchedule::Switch().
cChannel * cChannels::GetByNumber | ( | int | Number, |
int | SkipGap = 0 |
||
) |
Definition at line 995 of file channels.c.
Referenced by cMenuSetupCAM::Activate(), cDisplayChannel::cDisplayChannel(), cSVDRP::CmdCHAN(), cSVDRP::CmdCLRE(), cSVDRP::CmdDELC(), cSVDRP::CmdLSTC(), cSVDRP::CmdLSTE(), cSVDRP::CmdMODC(), cSVDRP::CmdMOVC(), cMenuSchedule::cMenuSchedule(), cTimer::cTimer(), cMenuChannels::Delete(), cSkinLCARSDisplayMenu::Flush(), cDevice::ForceTransferMode(), main(), cMenuChannels::Move(), cMenuSchedule::Number(), cTimer::Parse(), cMenuEditTimer::ProcessKey(), cDisplayChannel::ProcessKey(), cMenuEditChanItem::ProcessKey(), cMenuEditTranItem::ProcessKey(), cMenuEditChanItem::Set(), cDvbHdFfDevice::SetAudioTrackDevice(), SetTrackDescriptions(), cMenuChannels::Setup(), cRecordControls::Start(), cCamSlot::StartActivation(), and cDevice::SwitchChannel().
cChannel * cChannels::GetByServiceID | ( | int | Source, |
int | Transponder, | ||
unsigned short | ServiceID | ||
) |
Definition at line 1010 of file channels.c.
References cList< T >::First(), ISTRANSPONDER, cList< T >::Next(), cChannel::Sid(), cChannel::Source(), and cChannel::Transponder().
Referenced by cPatFilter::Process().
cChannel * cChannels::GetByTransponderID | ( | tChannelID | ChannelID | ) |
Definition at line 1052 of file channels.c.
References tChannelID::nid, tChannelID::Nid(), tChannelID::source, tChannelID::Source(), tChannelID::tid, and tChannelID::Tid().
Referenced by cEIT::cEIT().
int cChannels::GetNextGroup | ( | int | Idx | ) |
Definition at line 913 of file channels.c.
References cChannel::GroupSep(), and cChannel::Name().
Referenced by cDisplayChannel::ProcessKey().
int cChannels::GetNextNormal | ( | int | Idx | ) |
Definition at line 929 of file channels.c.
References cChannel::GroupSep().
Referenced by cSVDRP::CmdDELC(), cMenuChannels::Delete(), and cDisplayChannel::ProcessKey().
int cChannels::GetPrevGroup | ( | int | Idx | ) |
Definition at line 921 of file channels.c.
References cChannel::GroupSep(), and cChannel::Name().
Referenced by cDisplayChannel::ProcessKey().
int cChannels::GetPrevNormal | ( | int | Idx | ) |
Definition at line 937 of file channels.c.
References cChannel::GroupSep().
Referenced by cSVDRP::CmdDELC(), and cMenuChannels::Delete().
void cChannels::HashChannel | ( | cChannel * | Channel | ) |
Definition at line 903 of file channels.c.
References cChannel::Sid().
Referenced by cChannel::SetId().
Definition at line 1064 of file channels.c.
References cChannel::GetChannelID().
Referenced by cSVDRP::CmdMODC(), cSVDRP::CmdNEWC(), and cMenuEditChannel::ProcessKey().
|
inline |
Definition at line 252 of file channels.h.
Referenced by cMenuChannels::cMenuChannels().
bool cChannels::Load | ( | const char * | FileName, |
bool | AllowComments = false , |
||
bool | MustExist = false |
||
) |
Definition at line 893 of file channels.c.
Referenced by main().
void cChannels::MarkObsoleteChannels | ( | int | Source, |
int | Nid, | ||
int | Tid | ||
) |
Definition at line 1134 of file channels.c.
References CHANNELMARKOBSOLETE, CHANNELTIMEOBSOLETE, endswith(), Setup, cSetup::ShowChannelNamesWithSource, and cString::sprintf().
Referenced by cSdtFilter::Process().
int cChannels::MaxChannelNameLength | ( | void | ) |
Definition at line 1080 of file channels.c.
References max(), and Utf8StrLen().
|
inline |
Definition at line 256 of file channels.h.
References Channels, ChannelString(), tChannelID::Nid(), tChannelID::Rid(), tChannelID::Sid(), tChannelID::Source(), and tChannelID::Tid().
Referenced by cSVDRP::CmdCHAN(), cSVDRP::CmdCLRE(), cSVDRP::CmdLSTC(), and cDisplayChannel::ProcessKey().
int cChannels::MaxShortChannelNameLength | ( | void | ) |
Definition at line 1091 of file channels.c.
References max(), and Utf8StrLen().
int cChannels::Modified | ( | void | ) |
Returns 0 if no channels have been modified, 1 if an automatic modification has been made, and 2 if the user has made a modification.
Calling this function resets the 'modified' flag to 0.
Definition at line 1108 of file channels.c.
References CHANNELSMOD_NONE.
Referenced by main().
cChannel * cChannels::NewChannel | ( | const cChannel * | Transponder, |
const char * | Name, | ||
const char * | ShortName, | ||
const char * | Provider, | ||
int | Nid, | ||
int | Tid, | ||
int | Sid, | ||
int | Rid = 0 |
||
) |
Definition at line 1115 of file channels.c.
References cChannel::CopyTransponderData(), dsyslog, tChannelID::Nid(), tChannelID::Rid(), tChannelID::Sid(), cChannel::Source(), tChannelID::Tid(), cSource::ToString(), and cChannel::Transponder().
Referenced by cEIT::cEIT(), and cSdtFilter::Process().
void cChannels::ReNumber | ( | void | ) |
Definition at line 945 of file channels.c.
References cVector< T >::Append(), LCN_OVERFLOW_OFFSET, Setup, cVector< T >::Size(), STANDARD_NORDIG, and cSetup::StandardCompliance.
Referenced by cSVDRP::CmdDELC(), cSVDRP::CmdMODC(), cSVDRP::CmdMOVC(), cSVDRP::CmdNEWC(), main(), cMenuEditChannel::ProcessKey(), cMenuSetupDVB::ProcessKey(), and cMenuChannels::Propagate().
void cChannels::SetModified | ( | bool | ByUser = false | ) |
Definition at line 1102 of file channels.c.
References CHANNELSMOD_AUTO, and CHANNELSMOD_USER.
Referenced by cSVDRP::CmdDELC(), cSVDRP::CmdMODC(), cSVDRP::CmdMOVC(), cSVDRP::CmdNEWC(), cMenuChannels::Delete(), cMenuChannels::Move(), cMenuEditChannel::ProcessKey(), cMenuChannels::Propagate(), cChannel::SetCaDescriptors(), cChannel::SetCaIds(), cChannel::SetId(), cChannel::SetName(), cChannel::SetPids(), cChannel::SetPortalName(), cChannel::SetTeletextSubtitlePages(), and cChannel::SetTransponderData().
bool cChannels::SwitchTo | ( | int | Number | ) |
Definition at line 1074 of file channels.c.
References cDevice::PrimaryDevice(), and cDevice::SwitchChannel().
Referenced by cEITScanner::Activity(), cSVDRP::CmdDELC(), cSVDRP::CmdMOVC(), cMenuChannels::Delete(), main(), cMenuChannels::Move(), cDisplayChannel::ProcessKey(), and cMenuSchedule::Switch().
void cChannels::UnhashChannel | ( | cChannel * | Channel | ) |
Definition at line 908 of file channels.c.
References cChannel::Sid().
Referenced by cChannel::SetId().
|
private |
Definition at line 234 of file channels.h.
Definition at line 235 of file channels.h.
|
private |
Definition at line 231 of file channels.h.
|
private |
Definition at line 230 of file channels.h.
|
private |
Definition at line 232 of file channels.h.
|
private |
Definition at line 233 of file channels.h.