vdr 2.6.1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
cVideoDirectoryScannerThread Class Reference

Public Member Functions

 cVideoDirectoryScannerThread (cRecordings *Recordings, cRecordings *DeletedRecordings)
 
 ~cVideoDirectoryScannerThread ()
 
- Public Member Functions inherited from cThread
 cThread (const char *Description=NULL, bool LowPriority=false)
 
virtual ~cThread ()
 
void SetDescription (const char *Description,...) __attribute__((format(printf
 
void bool Start (void)
 
bool Active (void)
 
 cThread (const char *Description=NULL, bool LowPriority=false)
 
virtual ~cThread ()
 
void SetDescription (const char *Description,...) __attribute__((format(printf
 
void bool Start (void)
 
bool Active (void)
 

Protected Member Functions

virtual void Action (void)
 
- Protected Member Functions inherited from cThread
void SetPriority (int Priority)
 
void SetIOPriority (int Priority)
 
void Lock (void)
 
void Unlock (void)
 
virtual void Action (void)=0
 
bool Running (void)
 
void Cancel (int WaitSeconds=0)
 
void SetPriority (int Priority)
 
void SetIOPriority (int Priority)
 
void Lock (void)
 
void Unlock (void)
 
virtual void Action (void)=0
 
bool Running (void)
 
void Cancel (int WaitSeconds=0)
 

Private Member Functions

void ScanVideoDir (const char *DirName, int LinkLevel=0, int DirLevel=0)
 

Private Attributes

cRecordingsrecordings
 
cRecordingsdeletedRecordings
 
int count
 
bool initial
 

Additional Inherited Members

- Static Public Member Functions inherited from cThread
static tThreadId ThreadId (void)
 
static tThreadId IsMainThread (void)
 
static void SetMainThreadId (void)
 
static tThreadId ThreadId (void)
 
static tThreadId IsMainThread (void)
 
static void SetMainThreadId (void)
 

Detailed Description

Definition at line 1391 of file recording.c.

Constructor & Destructor Documentation

◆ cVideoDirectoryScannerThread()

cVideoDirectoryScannerThread::cVideoDirectoryScannerThread ( cRecordings Recordings,
cRecordings DeletedRecordings 
)

Definition at line 1405 of file recording.c.

References count, deletedRecordings, initial, and recordings.

◆ ~cVideoDirectoryScannerThread()

cVideoDirectoryScannerThread::~cVideoDirectoryScannerThread ( )

Definition at line 1414 of file recording.c.

References cThread::Cancel().

Member Function Documentation

◆ Action()

void cVideoDirectoryScannerThread::Action ( void  )
protectedvirtual

A derived cThread class must implement the code it wants to execute as a separate thread in this function.

If this is a loop, it must check Running() repeatedly to see whether it's time to stop.

Implements cThread.

Definition at line 1419 of file recording.c.

References cListBase::Clear(), cListBase::Count(), count, deletedRecordings, initial, cListBase::Lock(), cVideoDirectory::Name(), recordings, cStateKey::Remove(), and ScanVideoDir().

◆ ScanVideoDir()

void cVideoDirectoryScannerThread::ScanVideoDir ( const char *  DirName,
int  LinkLevel = 0,
int  DirLevel = 0 
)
private

Member Data Documentation

◆ count

int cVideoDirectoryScannerThread::count
private

Definition at line 1395 of file recording.c.

Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().

◆ deletedRecordings

cRecordings* cVideoDirectoryScannerThread::deletedRecordings
private

Definition at line 1394 of file recording.c.

Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().

◆ initial

bool cVideoDirectoryScannerThread::initial
private

Definition at line 1396 of file recording.c.

Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().

◆ recordings

cRecordings* cVideoDirectoryScannerThread::recordings
private

Definition at line 1393 of file recording.c.

Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().


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