vdr 2.7.6
cDiseqcs Class Reference

#include <diseqc.h>

Public Member Functions

bool Load (const char *FileName, bool AllowComments=false, bool MustExist=false)
const cDiseqcGet (int Device, int Source, int Frequency, char Polarization, const cScr **Scr) const
Public Member Functions inherited from cConfig< cDiseqc >
 cConfig (const char *NeedsLocking=NULL)
virtual ~cConfig () override
const char * FileName (void)
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
bool Save (void) const
Public Member Functions inherited from cList< cDiseqc >
 cList (const char *NeedsLocking=NULL)
const cDiseqcGet (int Index) const
const cDiseqcFirst (void) const
const cDiseqcLast (void) const
const cDiseqcPrev (const cDiseqc *Object) const
const cDiseqcNext (const cDiseqc *Object) const
Public Member Functions inherited from cListBase
virtual ~cListBase ()
bool Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const
void SetSyncStateKey (cStateKey &StateKey)
void SetUseGarbageCollector (void)
void SetExplicitModify (void)
void SetModified (void)
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)
bool Contains (const cListObject *Object) const
const cListObjectGet (int Index) const
cListObjectGet (int Index)
int Count (void) const
void Sort (void)

Additional Inherited Members

Protected Member Functions inherited from cListBase
 cListBase (const char *NeedsLocking=NULL)
Protected Attributes inherited from cListBase
cListObjectobjects
cListObjectlastObject
int count
cStateLock stateLock
const char * needsLocking
bool useGarbageCollector

Detailed Description

Definition at line 138 of file diseqc.h.

Member Function Documentation

◆ Get()

const cDiseqc * cDiseqcs::Get ( int Device,
int Source,
int Frequency,
char Polarization,
const cScr ** Scr ) const

Selects a DiSEqC entry suitable for the given Device and tuning parameters.

If this DiSEqC entry requires SCR and the given *Scr is NULL a free one will be selected from the Scrs and a pointer to that will be returned in Scr. The caller shall memorize that pointer and reuse it in subsequent calls. Scr may be NULL for checking whether there is any DiSEqC entry for the given transponder.

Definition at line 447 of file diseqc.c.

References dsyslog, esyslog, cList< cDiseqc >::First(), IsBitSet, cSource::Matches(), cList< cDiseqc >::Next(), and Scrs.

◆ Load()

bool cDiseqcs::Load ( const char * FileName,
bool AllowComments = false,
bool MustExist = false )

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