vdr  1.7.27
Public Member Functions | Private Member Functions | Private Attributes
cChannels Class Reference

#include <channels.h>

List of all members.

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)
cChannelGetByNumber (int Number, int SkipGap=0)
cChannelGetByServiceID (int Source, int Transponder, unsigned short ServiceID)
cChannelGetByChannelID (tChannelID ChannelID, bool TryWithoutRid=false, bool TryWithoutPolarization=false)
cChannelGetByTransponderID (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)
cChannelNewChannel (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)
cChannelGetByNumber (int Number, int SkipGap=0)
cChannelGetByServiceID (int Source, int Transponder, unsigned short ServiceID)
cChannelGetByChannelID (tChannelID ChannelID, bool TryWithoutRid=false, bool TryWithoutPolarization=false)
cChannelGetByTransponderID (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)
cChannelNewChannel (const cChannel *Transponder, const char *Name, const char *ShortName, const char *Provider, int Nid, int Tid, int Sid, int Rid=0)

Private Member Functions

void DeleteDuplicateChannels (void)
void DeleteDuplicateChannels (void)

Private Attributes

int maxNumber
int maxChannelNameLength
int maxShortChannelNameLength
int modified
int beingEdited
cHash< cChannelchannelsHashSid

Detailed Description

Definition at line 217 of file channels.h.


Constructor & Destructor Documentation


Member Function Documentation

int cChannels::BeingEdited ( void  ) [inline]

Definition at line 240 of file channels.h.

References beingEdited.

Referenced by cSVDRP::CmdDELC(), cSVDRP::CmdMODC(), cSVDRP::CmdMOVC(), and main().

int cChannels::BeingEdited ( void  ) [inline]

Definition at line 240 of file include/vdr/channels.h.

References beingEdited.

void cChannels::DecBeingEdited ( void  ) [inline]

Definition at line 242 of file channels.h.

References beingEdited.

Referenced by cMenuChannels::~cMenuChannels().

void cChannels::DecBeingEdited ( void  ) [inline]

Definition at line 242 of file include/vdr/channels.h.

References beingEdited.

void cChannels::DeleteDuplicateChannels ( void  ) [private]
void cChannels::DeleteDuplicateChannels ( void  ) [private]
cChannel* cChannels::GetByChannelID ( tChannelID  ChannelID,
bool  TryWithoutRid = false,
bool  TryWithoutPolarization = false 
)
cChannel * cChannels::GetByChannelID ( tChannelID  ChannelID,
bool  TryWithoutRid = false,
bool  TryWithoutPolarization = false 
)
cChannel* cChannels::GetByNumber ( int  Number,
int  SkipGap = 0 
)
cChannel * cChannels::GetByNumber ( int  Number,
int  SkipGap = 0 
)
cChannel* cChannels::GetByServiceID ( int  Source,
int  Transponder,
unsigned short  ServiceID 
)
cChannel * cChannels::GetByServiceID ( int  Source,
int  Transponder,
unsigned short  ServiceID 
)
int cChannels::GetNextGroup ( int  Idx)

Definition at line 860 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)
int cChannels::GetNextNormal ( int  Idx)
int cChannels::GetPrevGroup ( int  Idx)

Definition at line 868 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 884 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 850 of file channels.c.

References cHashBase::Add(), channelsHashSid, and cChannel::Sid().

Referenced by ReNumber(), and cChannel::SetId().

void cChannels::HashChannel ( cChannel Channel)
bool cChannels::HasUniqueChannelID ( cChannel NewChannel,
cChannel OldChannel = NULL 
)
bool cChannels::HasUniqueChannelID ( cChannel NewChannel,
cChannel OldChannel = NULL 
)
void cChannels::IncBeingEdited ( void  ) [inline]

Definition at line 241 of file include/vdr/channels.h.

References beingEdited.

void cChannels::IncBeingEdited ( void  ) [inline]

Definition at line 241 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 840 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::MaxNumber ( void  ) [inline]

Definition at line 245 of file channels.h.

References maxNumber.

Referenced by cSVDRP::CmdCHAN(), cSVDRP::CmdCLRE(), cSVDRP::CmdLSTC(), and cDisplayChannel::ProcessKey().

int cChannels::MaxNumber ( void  ) [inline]

Definition at line 245 of file include/vdr/channels.h.

References maxNumber.

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 1023 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 
)
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  )
void cChannels::ReNumber ( void  )
void cChannels::SetModified ( bool  ByUser = false)
void cChannels::SetModified ( bool  ByUser = false)
bool cChannels::SwitchTo ( int  Number)
bool cChannels::SwitchTo ( int  Number)
void cChannels::UnhashChannel ( cChannel Channel)

Definition at line 855 of file channels.c.

References channelsHashSid, cHashBase::Del(), and cChannel::Sid().

Referenced by cChannel::SetId().

void cChannels::UnhashChannel ( cChannel Channel)

Member Data Documentation

int cChannels::beingEdited [private]

Definition at line 223 of file channels.h.

Referenced by BeingEdited(), DecBeingEdited(), and IncBeingEdited().

Definition at line 224 of file channels.h.

Referenced by GetByChannelID(), GetByServiceID(), HashChannel(), ReNumber(), and UnhashChannel().

Definition at line 220 of file channels.h.

Referenced by cChannels(), MaxChannelNameLength(), and SetModified().

int cChannels::maxNumber [private]

Definition at line 219 of file channels.h.

Referenced by cChannels(), MaxNumber(), and ReNumber().

Definition at line 221 of file channels.h.

Referenced by cChannels(), MaxShortChannelNameLength(), and SetModified().

int cChannels::modified [private]

Definition at line 222 of file channels.h.

Referenced by cChannels(), Modified(), and SetModified().


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