vdr  2.4.0
Public Member Functions | Private Attributes | List of all members
cScrs Class Reference

#include <diseqc.h>

Public Member Functions

bool Load (const char *FileName, bool AllowComments=false, bool MustExist=false)
 
cScrGetUnused (int Device)
 
- Public Member Functions inherited from cConfig< cScr >
 cConfig (const char *NeedsLocking=NULL)
 
virtual ~cConfig ()
 
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< cScr >
 cList (const char *NeedsLocking=NULL)
 
const cScrGet (int Index) const
 
cScrGet (int Index)
 
const cScrFirst (void) const
 
cScrFirst (void)
 
const cScrLast (void) const
 
cScrLast (void)
 
const cScrPrev (const cScr *Object) const
 
cScrPrev (const cScr *Object)
 
const cScrNext (const cScr *Object) const
 
cScrNext (const cScr *Object)
 
- 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)
 

Private Attributes

cMutex mutex
 

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 52 of file diseqc.h.

Member Function Documentation

◆ GetUnused()

cScr * cScrs::GetUnused ( int  Device)

Definition at line 190 of file diseqc.c.

References cList< cScr >::First(), IsBitSet, mutex, and cList< cScr >::Next().

Referenced by cDiseqcs::Get().

◆ Load()

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

Definition at line 184 of file diseqc.c.

References ALL_DEVICES, CurrentDevices, cConfig< cScr >::FileName(), and cConfig< T >::Load().

Referenced by main().

Member Data Documentation

◆ mutex

cMutex cScrs::mutex
private

Definition at line 54 of file diseqc.h.

Referenced by GetUnused().


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