vdr 2.6.1
Public Member Functions | List of all members
cKeys Class Reference

#include <keys.h>

Public Member Functions

bool KnowsRemote (const char *Remote)
 
eKeys Get (const char *Remote, const char *Code)
 
const char * GetSetup (const char *Remote)
 
void PutSetup (const char *Remote, const char *Setup)
 
bool KnowsRemote (const char *Remote)
 
eKeys Get (const char *Remote, const char *Code)
 
const char * GetSetup (const char *Remote)
 
void PutSetup (const char *Remote, const char *Setup)
 
- Public Member Functions inherited from cConfig< cKey >
 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< cKey >
 cList (const char *NeedsLocking=NULL)
 
 cList (const char *NeedsLocking=NULL)
 
const cKey * Get (int Index) const
 
cKey * Get (int Index)
 
const cKey * Get (int Index) const
 
cKey * Get (int Index)
 
const cKey * First (void) const
 
cKey * First (void)
 
const cKey * First (void) const
 
cKey * First (void)
 
const cKey * Last (void) const
 
cKey * Last (void)
 
const cKey * Last (void) const
 
cKey * Last (void)
 
const cKey * Prev (const cKey *Object) const
 
cKey * Prev (const cKey *Object)
 
const cKey * Prev (const cKey *Object) const
 
cKey * Prev (const cKey *Object)
 
const cKey * Next (const cKey *Object) const
 
cKey * Next (const cKey *Object)
 
const cKey * Next (const cKey *Object) const
 
cKey * Next (const cKey *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 cListObject * Get (int Index) const
 
cListObject * Get (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 cListObject * Get (int Index) const
 
cListObject * Get (int Index)
 
int Count (void) const
 
void Sort (void)
 

Additional Inherited Members

- Protected Member Functions inherited from cListBase
 cListBase (const char *NeedsLocking=NULL)
 
 cListBase (const char *NeedsLocking=NULL)
 
- Protected Attributes inherited from cListBase
cListObject * objects
 
cListObject * lastObject
 
int count
 
cStateLock stateLock
 
const char * needsLocking
 
bool useGarbageCollector
 

Detailed Description

Definition at line 110 of file include/vdr/keys.h.

Member Function Documentation

◆ Get() [1/2]

eKeys cKeys::Get ( const char *  Remote,
const char *  Code 
)

Definition at line 169 of file keys.c.

References cList< cKey >::First(), kNone, and cList< cKey >::Next().

Referenced by cRemote::Put().

◆ Get() [2/2]

eKeys cKeys::Get ( const char *  Remote,
const char *  Code 
)

◆ GetSetup() [1/2]

const char * cKeys::GetSetup ( const char *  Remote)

Definition at line 180 of file keys.c.

References cList< cKey >::First(), k_Setup, and cList< cKey >::Next().

Referenced by cRemote::GetSetup(), and PutSetup().

◆ GetSetup() [2/2]

const char * cKeys::GetSetup ( const char *  Remote)

◆ KnowsRemote() [1/2]

bool cKeys::KnowsRemote ( const char *  Remote)

Definition at line 158 of file keys.c.

References cList< cKey >::First(), and cList< cKey >::Next().

Referenced by cInterface::LearnKeys().

◆ KnowsRemote() [2/2]

bool cKeys::KnowsRemote ( const char *  Remote)

◆ PutSetup() [1/2]

void cKeys::PutSetup ( const char *  Remote,
const char *  Setup 
)

Definition at line 191 of file keys.c.

References cListBase::Add(), esyslog, GetSetup(), k_Setup, and Setup.

Referenced by cRemote::PutSetup().

◆ PutSetup() [2/2]

void cKeys::PutSetup ( const char *  Remote,
const char *  Setup 
)

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