vdr 2.6.1
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)
 
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)
 
 cConfig (const char *NeedsLocking=NULL)
 
virtual ~cConfig ()
 
virtual ~cConfig ()
 
const char * FileName (void)
 
const char * FileName (void)
 
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
 
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
 
bool Save (void) const
 
bool Save (void) const
 
- Public Member Functions inherited from cList< cScr >
 cList (const char *NeedsLocking=NULL)
 
 cList (const char *NeedsLocking=NULL)
 
const cScrGet (int Index) const
 
cScrGet (int Index)
 
const cScrGet (int Index) const
 
cScrGet (int Index)
 
const cScrFirst (void) const
 
cScrFirst (void)
 
const cScrFirst (void) const
 
cScrFirst (void)
 
const cScrLast (void) const
 
cScrLast (void)
 
const cScrLast (void) const
 
cScrLast (void)
 
const cScrPrev (const cScr *Object) const
 
cScrPrev (const cScr *Object)
 
const cScrPrev (const cScr *Object) const
 
cScrPrev (const cScr *Object)
 
const cScrNext (const cScr *Object) const
 
cScrNext (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)
 
virtual void Clear (void)
 
bool Contains (const cListObject *Object) const
 
const cListObjectGet (int Index) const
 
cListObjectGet (int Index)
 
int Count (void) const
 
void Sort (void)
 
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)
 
virtual void Clear (void)
 
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)
 
 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() [1/2]

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().

◆ GetUnused() [2/2]

cScr * cScrs::GetUnused ( int  Device)

◆ Load() [1/2]

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().

◆ Load() [2/2]

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

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: