MythTV  0.26-pre
Public Member Functions | Private Member Functions | Private Attributes
DeleteThread Class Reference

#include <deletethread.h>

Inheritance diagram for DeleteThread:
DeleteStruct MThread

List of all members.

Public Member Functions

 DeleteThread (void)
void run (void)
 Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
bool AddFile (QString path)
bool AddFile (DeleteHandler *handler)
void Stop (void)
 DeleteThread (MainServer *ms, QString filename, QString title, uint chanid, QDateTime recstartts, QDateTime recendts, bool forceMetadataDelete)
void start (void)
void run (void)
 Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.

Private Member Functions

void ProcessNew (void)
void ProcessOld (void)

Private Attributes

size_t m_increment
bool m_slow
bool m_link
bool m_run
QList< DeleteHandler * > m_newfiles
QMutex m_newlock
QList< DeleteHandler * > m_files

Detailed Description

Definition at line 22 of file deletethread.h.


Constructor & Destructor Documentation

Definition at line 29 of file deletethread.cpp.

DeleteThread::DeleteThread ( MainServer ms,
QString  filename,
QString  title,
uint  chanid,
QDateTime  recstartts,
QDateTime  recendts,
bool  forceMetadataDelete 
) [inline]

Definition at line 73 of file mainserver.h.


Member Function Documentation

void DeleteThread::run ( void  ) [virtual]

Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.

Note:
If you override this method you must call RunProlog before you do any work and RunEpilog before you exit the run method.

Reimplemented from MThread.

Definition at line 36 of file deletethread.cpp.

bool DeleteThread::AddFile ( QString  path)

Definition at line 63 of file deletethread.cpp.

Referenced by FileServerHandler::HandleDeleteFile().

Definition at line 76 of file deletethread.cpp.

void DeleteThread::Stop ( void  ) [inline]

Definition at line 30 of file deletethread.h.

Definition at line 84 of file deletethread.cpp.

Referenced by run().

Definition at line 202 of file deletethread.cpp.

Referenced by run().

void DeleteThread::start ( void  ) [inline]
void DeleteThread::run ( void  ) [virtual]

Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.

Note:
If you override this method you must call RunProlog before you do any work and RunEpilog before you exit the run method.

Reimplemented from MThread.


Member Data Documentation

size_t DeleteThread::m_increment [private]

Definition at line 36 of file deletethread.h.

Referenced by ProcessOld().

Definition at line 37 of file deletethread.h.

Referenced by DeleteThread(), and ProcessOld().

Definition at line 38 of file deletethread.h.

Referenced by DeleteThread(), and ProcessNew().

Definition at line 39 of file deletethread.h.

Referenced by run().

Definition at line 41 of file deletethread.h.

Referenced by AddFile(), and ProcessNew().

QMutex DeleteThread::m_newlock [private]

Definition at line 42 of file deletethread.h.

Referenced by AddFile(), and ProcessNew().

Definition at line 44 of file deletethread.h.

Referenced by ProcessNew(), ProcessOld(), and run().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends