vdr
1.7.31
|
#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) |
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) |
![]() | |
cRwLock (bool PreferWriter=false) | |
~cRwLock () | |
bool | Lock (bool Write, int TimeoutMs=0) |
void | Unlock (void) |
cRwLock (bool PreferWriter=false) | |
~cRwLock () | |
bool | Lock (bool Write, int TimeoutMs=0) |
void | Unlock (void) |
![]() | |
cConfig (void) | |
cConfig (void) | |
virtual | ~cConfig () |
virtual | ~cConfig () |
const char * | FileName (void) |
const char * | FileName (void) |
bool | Save (void) |
bool | Save (void) |
![]() | |
cChannel * | Get (int Index) const |
cChannel * | Get (int Index) const |
cChannel * | First (void) const |
cChannel * | First (void) const |
cChannel * | Last (void) const |
cChannel * | Last (void) const |
cChannel * | Prev (const cChannel *object) const |
cChannel * | Prev (const cChannel *object) const |
cChannel * | Next (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) |
virtual void | Clear (void) |
int | Count (void) const |
void | Sort (void) |
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) |
virtual void | Clear (void) |
int | Count (void) const |
void | Sort (void) |
Private Member Functions | |
void | DeleteDuplicateChannels (void) |
void | DeleteDuplicateChannels (void) |
Private Attributes | |
int | maxNumber |
int | maxChannelNameLength |
int | maxShortChannelNameLength |
int | modified |
int | beingEdited |
cHash< cChannel > | channelsHashSid |
Additional Inherited Members | |
![]() | |
cListBase (void) | |
cListBase (void) | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
Definition at line 219 of file channels.h.
cChannels::cChannels | ( | void | ) |
Definition at line 845 of file channels.c.
References CHANNELSMOD_NONE, maxChannelNameLength, maxNumber, maxShortChannelNameLength, and modified.
cChannels::cChannels | ( | void | ) |
|
inline |
Definition at line 242 of file channels.h.
References beingEdited.
Referenced by cSVDRP::CmdDELC(), cSVDRP::CmdMODC(), cSVDRP::CmdMOVC(), and main().
|
inline |
Definition at line 242 of file include/vdr/channels.h.
References beingEdited.
|
inline |
Definition at line 244 of file channels.h.
References beingEdited.
Referenced by cMenuChannels::~cMenuChannels().
|
inline |
Definition at line 244 of file include/vdr/channels.h.
References beingEdited.
|
private |
Definition at line 853 of file channels.c.
References cListBase::Add(), cChannelSorter::channel, cChannelSorter::channelID, cListBase::Del(), dsyslog, cList< T >::First(), cList< cChannel >::First(), cList< cChannel >::Next(), cList< T >::Next(), cListBase::Sort(), and cChannel::ToText().
Referenced by Load().
|
private |
cChannel* cChannels::GetByChannelID | ( | tChannelID | ChannelID, |
bool | TryWithoutRid = false , |
||
bool | TryWithoutPolarization = false |
||
) |
cChannel * cChannels::GetByChannelID | ( | tChannelID | ChannelID, |
bool | TryWithoutRid = false , |
||
bool | TryWithoutPolarization = false |
||
) |
Definition at line 970 of file channels.c.
References channelsHashSid, tChannelID::ClrPolarization(), tChannelID::ClrRid(), cList< T >::First(), cChannel::GetChannelID(), cHashBase::GetList(), cList< T >::Next(), tChannelID::Sid(), and cChannel::Sid().
Referenced by cSchedules::AddSchedule(), cEIT::cEIT(), cSVDRP::CmdCHAN(), cSVDRP::CmdLSTC(), cSVDRP::CmdLSTE(), cMenuEditChanItem::cMenuEditChanItem(), cMenuEditRecording::cMenuEditRecording(), cMenuEvent::cMenuEvent(), cTimer::cTimer(), cSchedule::Dump(), main(), cMenuSchedule::Number(), cTimer::Parse(), cSdtFilter::Process(), cMenuSchedule::ProcessKey(), ReportEpgBugFixStats(), and cMenuWhatsOn::Switch().
cChannel* cChannels::GetByNumber | ( | int | Number, |
int | SkipGap = 0 |
||
) |
cChannel * cChannels::GetByNumber | ( | int | Number, |
int | SkipGap = 0 |
||
) |
Definition at line 942 of file channels.c.
References cList< cChannel >::First(), and cList< cChannel >::Next().
Referenced by 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(), cDevice::SwitchChannel(), and SwitchTo().
cChannel* cChannels::GetByServiceID | ( | int | Source, |
int | Transponder, | ||
unsigned short | ServiceID | ||
) |
cChannel * cChannels::GetByServiceID | ( | int | Source, |
int | Transponder, | ||
unsigned short | ServiceID | ||
) |
Definition at line 957 of file channels.c.
References channelsHashSid, cList< T >::First(), cHashBase::GetList(), ISTRANSPONDER, cList< T >::Next(), cChannel::Sid(), cChannel::Source(), and cChannel::Transponder().
Referenced by cPatFilter::Process().
cChannel* cChannels::GetByTransponderID | ( | tChannelID | ChannelID | ) |
cChannel * cChannels::GetByTransponderID | ( | tChannelID | ChannelID | ) |
Definition at line 999 of file channels.c.
References cList< cChannel >::First(), cList< cChannel >::Next(), tChannelID::Nid(), tChannelID::Source(), and tChannelID::Tid().
Referenced by cEIT::cEIT().
int cChannels::GetNextGroup | ( | int | Idx | ) |
Definition at line 892 of file channels.c.
References cList< cChannel >::Get(), cChannel::GroupSep(), and cChannel::Name().
Referenced by cDisplayChannel::ProcessKey().
int cChannels::GetNextGroup | ( | int | Idx | ) |
int cChannels::GetNextNormal | ( | int | Idx | ) |
Definition at line 908 of file channels.c.
References cList< cChannel >::Get(), and cChannel::GroupSep().
Referenced by cSVDRP::CmdDELC(), cMenuChannels::Delete(), and cDisplayChannel::ProcessKey().
int cChannels::GetNextNormal | ( | int | Idx | ) |
int cChannels::GetPrevGroup | ( | int | Idx | ) |
Definition at line 900 of file channels.c.
References cList< cChannel >::Get(), cChannel::GroupSep(), and cChannel::Name().
Referenced by cDisplayChannel::ProcessKey().
int cChannels::GetPrevGroup | ( | int | Idx | ) |
int cChannels::GetPrevNormal | ( | int | Idx | ) |
int cChannels::GetPrevNormal | ( | int | Idx | ) |
Definition at line 916 of file channels.c.
References cList< cChannel >::Get(), and cChannel::GroupSep().
Referenced by cSVDRP::CmdDELC(), and cMenuChannels::Delete().
void cChannels::HashChannel | ( | cChannel * | Channel | ) |
Definition at line 882 of file channels.c.
References cHashBase::Add(), channelsHashSid, and cChannel::Sid().
Referenced by ReNumber(), and cChannel::SetId().
void cChannels::HashChannel | ( | cChannel * | Channel | ) |
Definition at line 1011 of file channels.c.
References cList< cChannel >::First(), cChannel::GetChannelID(), and cList< cChannel >::Next().
Referenced by cSVDRP::CmdMODC(), cSVDRP::CmdNEWC(), and cMenuEditChannel::ProcessKey().
|
inline |
Definition at line 243 of file include/vdr/channels.h.
References beingEdited.
|
inline |
Definition at line 243 of file channels.h.
References beingEdited.
Referenced by cMenuChannels::cMenuChannels().
bool cChannels::Load | ( | const char * | FileName, |
bool | AllowComments = false , |
||
bool | MustExist = false |
||
) |
Reimplemented from cConfig< cChannel >.
Definition at line 872 of file channels.c.
References DeleteDuplicateChannels(), and ReNumber().
Referenced by main().
bool cChannels::Load | ( | const char * | FileName, |
bool | AllowComments = false , |
||
bool | MustExist = false |
||
) |
Reimplemented from cConfig< cChannel >.
int cChannels::MaxChannelNameLength | ( | void | ) |
Definition at line 1027 of file channels.c.
References cList< cChannel >::First(), max(), maxChannelNameLength, cList< cChannel >::Next(), and Utf8StrLen().
int cChannels::MaxChannelNameLength | ( | void | ) |
|
inline |
Definition at line 247 of file channels.h.
References maxNumber.
Referenced by cSVDRP::CmdCHAN(), cSVDRP::CmdCLRE(), cSVDRP::CmdLSTC(), and cDisplayChannel::ProcessKey().
|
inline |
Definition at line 247 of file include/vdr/channels.h.
References maxNumber.
int cChannels::MaxShortChannelNameLength | ( | void | ) |
Definition at line 1038 of file channels.c.
References cList< cChannel >::First(), max(), maxShortChannelNameLength, cList< cChannel >::Next(), and Utf8StrLen().
int cChannels::MaxShortChannelNameLength | ( | void | ) |
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.
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 1055 of file channels.c.
References CHANNELSMOD_NONE, and modified.
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 1062 of file channels.c.
References cListBase::Add(), cChannel::CopyTransponderData(), dsyslog, ReNumber(), cChannel::Source(), cSource::ToString(), and cChannel::Transponder().
Referenced by cEIT::cEIT(), and cSdtFilter::Process().
cChannel* cChannels::NewChannel | ( | const cChannel * | Transponder, |
const char * | Name, | ||
const char * | ShortName, | ||
const char * | Provider, | ||
int | Nid, | ||
int | Tid, | ||
int | Sid, | ||
int | Rid = 0 |
||
) |
void cChannels::ReNumber | ( | void | ) |
Definition at line 924 of file channels.c.
References channelsHashSid, cHashBase::Clear(), cList< cChannel >::First(), HashChannel(), maxNumber, and cList< cChannel >::Next().
Referenced by cSVDRP::CmdDELC(), cSVDRP::CmdMODC(), cSVDRP::CmdMOVC(), cSVDRP::CmdNEWC(), Load(), NewChannel(), cMenuEditChannel::ProcessKey(), and cMenuChannels::Propagate().
void cChannels::ReNumber | ( | void | ) |
void cChannels::SetModified | ( | bool | ByUser = false | ) |
Definition at line 1049 of file channels.c.
References CHANNELSMOD_AUTO, CHANNELSMOD_USER, maxChannelNameLength, maxShortChannelNameLength, and modified.
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().
void cChannels::SetModified | ( | bool | ByUser = false | ) |
bool cChannels::SwitchTo | ( | int | Number | ) |
bool cChannels::SwitchTo | ( | int | Number | ) |
Definition at line 1021 of file channels.c.
References GetByNumber(), 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 887 of file channels.c.
References channelsHashSid, cHashBase::Del(), and cChannel::Sid().
Referenced by cChannel::SetId().
void cChannels::UnhashChannel | ( | cChannel * | Channel | ) |
|
private |
Definition at line 225 of file channels.h.
Referenced by BeingEdited(), DecBeingEdited(), and IncBeingEdited().
Definition at line 226 of file channels.h.
Referenced by GetByChannelID(), GetByServiceID(), HashChannel(), ReNumber(), and UnhashChannel().
|
private |
Definition at line 222 of file channels.h.
Referenced by cChannels(), MaxChannelNameLength(), and SetModified().
|
private |
Definition at line 221 of file channels.h.
Referenced by cChannels(), MaxNumber(), and ReNumber().
|
private |
Definition at line 223 of file channels.h.
Referenced by cChannels(), MaxShortChannelNameLength(), and SetModified().
|
private |
Definition at line 224 of file channels.h.
Referenced by cChannels(), Modified(), and SetModified().