vdr  2.7.6
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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 1827 of file recording.c.

Constructor & Destructor Documentation

◆ cDirCopier()

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

Definition at line 1841 of file recording.c.

References dirNameDst, dirNameSrc, error, and suspensionLogged.

◆ ~cDirCopier()

cDirCopier::~cDirCopier ( )
overridevirtual

Definition at line 1850 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 1871 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 1838 of file recording.c.

References error.

Referenced by cRecordingsHandlerEntry::Active().

◆ Throttled()

bool cDirCopier::Throttled ( void  )
private

Definition at line 1855 of file recording.c.

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

Referenced by Action().

Member Data Documentation

◆ dirNameDst

cString cDirCopier::dirNameDst
private

Definition at line 1830 of file recording.c.

Referenced by Action(), and cDirCopier().

◆ dirNameSrc

cString cDirCopier::dirNameSrc
private

Definition at line 1829 of file recording.c.

Referenced by Action(), and cDirCopier().

◆ error

bool cDirCopier::error
private

Definition at line 1831 of file recording.c.

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

◆ suspensionLogged

bool cDirCopier::suspensionLogged
private

Definition at line 1832 of file recording.c.

Referenced by cDirCopier(), and Throttled().


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