SASC
DVBSoftCAM

cChannels Class Reference

#include <channels.h>

Inheritance diagram for cChannels:

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)
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)
int BeingEdited (void)
void IncBeingEdited (void)
void DecBeingEdited (void)
bool HasUniqueChannelID (cChannel *NewChannel, cChannel *OldChannel=NULL)
bool SwitchTo (int Number)
int MaxNumber (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)

Detailed Description

Definition at line 222 of file channels.h.


Constructor & Destructor Documentation

cChannels::cChannels ( void  )

Definition at line 54 of file vdrcompat.cpp.

                     {
}

Member Function Documentation

int cChannels::BeingEdited ( void  ) [inline]

Definition at line 242 of file channels.h.

{ return beingEdited; }
void cChannels::DecBeingEdited ( void  ) [inline]

Definition at line 244 of file channels.h.

{ beingEdited--; }
cChannel* cChannels::GetByChannelID ( tChannelID  ChannelID,
bool  TryWithoutRid = false,
bool  TryWithoutPolarization = false 
)
cChannel * cChannels::GetByNumber ( int  Number,
int  SkipGap = 0 
)

Definition at line 25 of file misc.cpp.

References cChannel::SetId().

                                             {
  cChannel *ch = new cChannel;
  ch->SetId(0,0,a);
  return ch;
}
cChannel* cChannels::GetByServiceID ( int  Source,
int  Transponder,
unsigned short  ServiceID 
)
int cChannels::GetNextGroup ( int  Idx)
int cChannels::GetNextNormal ( int  Idx)
int cChannels::GetPrevGroup ( int  Idx)
int cChannels::GetPrevNormal ( int  Idx)
void cChannels::HashChannel ( cChannel *  Channel)
bool cChannels::HasUniqueChannelID ( cChannel *  NewChannel,
cChannel *  OldChannel = NULL 
)
void cChannels::IncBeingEdited ( void  ) [inline]

Definition at line 243 of file channels.h.

{ beingEdited++; }
bool cChannels::Load ( const char *  FileName,
bool  AllowComments = false,
bool  MustExist = false 
)

Reimplemented from cConfig< cChannel >.

int cChannels::MaxNumber ( void  ) [inline]

Definition at line 247 of file channels.h.

{ return 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.

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

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines