vdr 2.7.7
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
const cChannelCamRelationFirst (void) const
const cChannelCamRelationLast (void) const
const cChannelCamRelationPrev (const cChannelCamRelation *Object) const
const cChannelCamRelationNext (const cChannelCamRelation *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)
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 510 of file ci.h.

Constructor & Destructor Documentation

◆ cChannelCamRelations()

cChannelCamRelations::cChannelCamRelations ( void )

Definition at line 2949 of file ci.c.

References lastCleanup.

Member Function Documentation

◆ AddEntry()

cChannelCamRelation * cChannelCamRelations::AddEntry ( tChannelID ChannelID)
private

Definition at line 2979 of file ci.c.

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

Referenced by SetChecked(), and SetDecrypt().

◆ CamChecked()

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

Definition at line 2997 of file ci.c.

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

◆ CamDecrypt()

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

Definition at line 3004 of file ci.c.

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

◆ Cleanup()

void cChannelCamRelations::Cleanup ( void )
private

◆ ClrChecked()

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

Definition at line 3027 of file ci.c.

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

◆ ClrDecrypt()

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

Definition at line 3035 of file ci.c.

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

◆ GetEntry()

cChannelCamRelation * cChannelCamRelations::GetEntry ( tChannelID ChannelID)
private

◆ Load()

void cChannelCamRelations::Load ( const char * FileName)

◆ Reset()

void cChannelCamRelations::Reset ( int CamSlotNumber)

◆ Save()

◆ SetChecked()

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

Definition at line 3011 of file ci.c.

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

◆ SetDecrypt()

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

Definition at line 3019 of file ci.c.

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

Referenced by Load().

Member Data Documentation

◆ fileName

cString cChannelCamRelations::fileName
private

Definition at line 513 of file ci.h.

Referenced by Load(), and Save().

◆ lastCleanup

time_t cChannelCamRelations::lastCleanup
private

Definition at line 516 of file ci.h.

Referenced by cChannelCamRelations(), and Cleanup().

◆ mutex

cMutex cChannelCamRelations::mutex
private

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