vdr 2.7.7
|
#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 cChannelCamRelation * | Get (int Index) const |
const cChannelCamRelation * | First (void) const |
const cChannelCamRelation * | Last (void) const |
const cChannelCamRelation * | Prev (const cChannelCamRelation *Object) const |
const cChannelCamRelation * | Next (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 cListObject * | Get (int Index) const |
cListObject * | Get (int Index) |
int | Count (void) const |
void | Sort (void) |
Private Member Functions | |
cChannelCamRelation * | GetEntry (tChannelID ChannelID) |
cChannelCamRelation * | AddEntry (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 | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cStateLock | stateLock |
const char * | needsLocking |
bool | useGarbageCollector |
cChannelCamRelations::cChannelCamRelations | ( | void | ) |
Definition at line 2949 of file ci.c.
References lastCleanup.
|
private |
Definition at line 2979 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 2997 of file ci.c.
References cChannelCamRelation::CamChecked(), GetEntry(), and mutex.
bool cChannelCamRelations::CamDecrypt | ( | tChannelID | ChannelID, |
int | CamSlotNumber ) |
Definition at line 3004 of file ci.c.
References cChannelCamRelation::CamDecrypt(), GetEntry(), and mutex.
|
private |
Definition at line 2954 of file ci.c.
References CHANNEL_CAM_RELATIONS_CLEANUP_INTERVAL, cListBase::Del(), cList< cChannelCamRelation >::First(), lastCleanup, mutex, cList< cChannelCamRelation >::Next(), and cChannelCamRelation::TimedOut().
Referenced by GetEntry().
void cChannelCamRelations::ClrChecked | ( | tChannelID | ChannelID, |
int | CamSlotNumber ) |
Definition at line 3027 of file ci.c.
References cChannelCamRelation::ClrChecked(), GetEntry(), and mutex.
void cChannelCamRelations::ClrDecrypt | ( | tChannelID | ChannelID, |
int | CamSlotNumber ) |
Definition at line 3035 of file ci.c.
References cChannelCamRelation::ClrDecrypt(), GetEntry(), and mutex.
|
private |
Definition at line 2968 of file ci.c.
References Cleanup(), cList< cChannelCamRelation >::First(), mutex, and cList< cChannelCamRelation >::Next().
Referenced by AddEntry(), CamChecked(), CamDecrypt(), ClrChecked(), and ClrDecrypt().
void cChannelCamRelations::Load | ( | const char * | FileName | ) |
Definition at line 3043 of file ci.c.
References dsyslog, fileName, tChannelID::FromString(), LOG_ERROR_STR, MAX_CAM_NUMBER, mutex, cReadLine::Read(), SetDecrypt(), and tChannelID::Valid().
void cChannelCamRelations::Reset | ( | int | CamSlotNumber | ) |
Definition at line 2988 of file ci.c.
References cList< cChannelCamRelation >::First(), mutex, and cList< cChannelCamRelation >::Next().
void cChannelCamRelations::Save | ( | void | ) |
Definition at line 3077 of file ci.c.
References cSafeFile::Close(), dsyslog, fileName, cList< cChannelCamRelation >::First(), LOG_ERROR_STR, MAX_CAM_NUMBER, mutex, cList< cChannelCamRelation >::Next(), cSafeFile::Open(), and cString::sprintf().
void cChannelCamRelations::SetChecked | ( | tChannelID | ChannelID, |
int | CamSlotNumber ) |
Definition at line 3011 of file ci.c.
References AddEntry(), mutex, and cChannelCamRelation::SetChecked().
void cChannelCamRelations::SetDecrypt | ( | tChannelID | ChannelID, |
int | CamSlotNumber ) |
Definition at line 3019 of file ci.c.
References AddEntry(), mutex, and cChannelCamRelation::SetDecrypt().
Referenced by Load().
|
private |
|
private |
Definition at line 516 of file ci.h.
Referenced by cChannelCamRelations(), and Cleanup().
|
private |
Definition at line 512 of file ci.h.
Referenced by AddEntry(), CamChecked(), CamDecrypt(), Cleanup(), ClrChecked(), ClrDecrypt(), GetEntry(), Load(), Reset(), Save(), SetChecked(), and SetDecrypt().