vdr 2.8.3
cDirCopier Class Reference

Public Member Functions

 cDirCopier (const char *DirNameSrc, const char *DirNameDst)
virtual ~cDirCopier () override
bool Error (void)
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)

Private Member Functions

bool Throttled (void)
virtual void Action (void) override

Private Attributes

cString dirNameSrc
cString dirNameDst
bool error
bool suspensionLogged

Additional Inherited Members

Static Public Member Functions inherited from cThread
static tThreadId ThreadId (void)
static tThreadId IsMainThread (void)
static void SetMainThreadId (void)
Protected Member Functions inherited from cThread
void SetPriority (int Priority)
void SetIOPriority (int Priority)
void Lock (void)
void Unlock (void)
bool Running (void)
void Cancel (int WaitSeconds=0)

Detailed Description

Definition at line 1964 of file recording.c.

Constructor & Destructor Documentation

◆ cDirCopier()

cDirCopier::cDirCopier ( const char * DirNameSrc,
const char * DirNameDst )

Definition at line 1978 of file recording.c.

References cThread::cThread(), dirNameDst, dirNameSrc, error, and suspensionLogged.

Referenced by cRecordingsHandlerEntry::Active().

◆ ~cDirCopier()

cDirCopier::~cDirCopier ( )
overridevirtual

Definition at line 1987 of file recording.c.

References cThread::Cancel().

Member Function Documentation

◆ Action()

void cDirCopier::Action ( void )
overrideprivatevirtual

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 2008 of file recording.c.

References AddDirectory(), DirectoryOk(), dirNameDst, dirNameSrc, dsyslog, error, esyslog, FileSize(), isyslog, MALLOC, max(), cReadDir::Next(), cReadDir::Ok(), cThread::Running(), safe_read(), safe_write(), cCondWait::SleepMs(), and Throttled().

◆ Error()

bool cDirCopier::Error ( void )
inline

Definition at line 1975 of file recording.c.

References error.

Referenced by cRecordingsHandlerEntry::Active().

◆ Throttled()

bool cDirCopier::Throttled ( void )
private

Definition at line 1992 of file recording.c.

References dsyslog, cIoThrottle::Engaged(), and suspensionLogged.

Referenced by Action().

Member Data Documentation

◆ dirNameDst

cString cDirCopier::dirNameDst
private

Definition at line 1967 of file recording.c.

Referenced by Action(), and cDirCopier().

◆ dirNameSrc

cString cDirCopier::dirNameSrc
private

Definition at line 1966 of file recording.c.

Referenced by Action(), and cDirCopier().

◆ error

bool cDirCopier::error
private

Definition at line 1968 of file recording.c.

Referenced by Action(), cDirCopier(), and Error().

◆ suspensionLogged

bool cDirCopier::suspensionLogged
private

Definition at line 1969 of file recording.c.

Referenced by cDirCopier(), and Throttled().


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