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

#include <ci.h>

Public Member Functions

 cChannelCamRelations (void)
 
void Reset (int CamSlotNumber)
 
bool CamChecked (tChannelID ChannelID, int CamSlotNumber)
 
bool CamDecrypt (tChannelID ChannelID, int CamSlotNumber)
 
void SetChecked (tChannelID ChannelID, int CamSlotNumber)
 
void SetDecrypt (tChannelID ChannelID, int CamSlotNumber)
 
void ClrChecked (tChannelID ChannelID, int CamSlotNumber)
 
void ClrDecrypt (tChannelID ChannelID, int CamSlotNumber)
 
void Load (const char *FileName)
 
void Save (void)
 
- Public Member Functions inherited from cList< cChannelCamRelation >
 cList (const char *NeedsLocking=NULL)
 
const cChannelCamRelationGet (int Index) const
 
cChannelCamRelationGet (int Index)
 
const cChannelCamRelationFirst (void) const
 
cChannelCamRelationFirst (void)
 
const cChannelCamRelationLast (void) const
 
cChannelCamRelationLast (void)
 
const cChannelCamRelationPrev (const cChannelCamRelation *Object) const
 
cChannelCamRelationPrev (const cChannelCamRelation *Object)
 
const cChannelCamRelationNext (const cChannelCamRelation *Object) const
 
cChannelCamRelationNext (const cChannelCamRelation *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)
 

Private Member Functions

cChannelCamRelationGetEntry (tChannelID ChannelID)
 
cChannelCamRelationAddEntry (tChannelID ChannelID)
 
void Cleanup (void)
 

Private Attributes

cMutex mutex
 
cString fileName
 
time_t lastCleanup
 

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 509 of file ci.h.

Constructor & Destructor Documentation

cChannelCamRelations::cChannelCamRelations ( void  )

Definition at line 2866 of file ci.c.

References lastCleanup.

Member Function Documentation

cChannelCamRelation * cChannelCamRelations::AddEntry ( tChannelID  ChannelID)
private

Definition at line 2896 of file ci.c.

References cListBase::Add(), GetEntry(), and mutex.

Referenced by SetChecked(), and SetDecrypt().

bool cChannelCamRelations::CamChecked ( tChannelID  ChannelID,
int  CamSlotNumber 
)

Definition at line 2914 of file ci.c.

References cChannelCamRelation::CamChecked(), GetEntry(), and mutex.

Referenced by cDevice::GetDevice().

bool cChannelCamRelations::CamDecrypt ( tChannelID  ChannelID,
int  CamSlotNumber 
)

Definition at line 2921 of file ci.c.

References cChannelCamRelation::CamDecrypt(), GetEntry(), and mutex.

Referenced by cDevice::AttachReceiver(), and cDevice::GetDevice().

void cChannelCamRelations::Cleanup ( void  )
private
void cChannelCamRelations::ClrChecked ( tChannelID  ChannelID,
int  CamSlotNumber 
)

Definition at line 2944 of file ci.c.

References cChannelCamRelation::ClrChecked(), GetEntry(), and mutex.

void cChannelCamRelations::ClrDecrypt ( tChannelID  ChannelID,
int  CamSlotNumber 
)

Definition at line 2952 of file ci.c.

References cChannelCamRelation::ClrDecrypt(), GetEntry(), and mutex.

cChannelCamRelation * cChannelCamRelations::GetEntry ( tChannelID  ChannelID)
private
void cChannelCamRelations::Load ( const char *  FileName)
void cChannelCamRelations::Reset ( int  CamSlotNumber)
void cChannelCamRelations::Save ( void  )
void cChannelCamRelations::SetChecked ( tChannelID  ChannelID,
int  CamSlotNumber 
)

Definition at line 2928 of file ci.c.

References AddEntry(), mutex, and cChannelCamRelation::SetChecked().

Referenced by cDevice::Action().

void cChannelCamRelations::SetDecrypt ( tChannelID  ChannelID,
int  CamSlotNumber 
)

Definition at line 2936 of file ci.c.

References AddEntry(), mutex, and cChannelCamRelation::SetDecrypt().

Referenced by cDevice::Action(), and Load().

Member Data Documentation

cString cChannelCamRelations::fileName
private

Definition at line 512 of file ci.h.

Referenced by Load(), and Save().

time_t cChannelCamRelations::lastCleanup
private

Definition at line 515 of file ci.h.

Referenced by cChannelCamRelations(), and Cleanup().

cMutex cChannelCamRelations::mutex
private

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