JobThread Class Reference

#include <jobthread.h>

Inheritance diagram for JobThread:

DVDThread DVDISOCopyThread DVDPerfectThread DVDTranscodeThread

List of all members.


Detailed Description

Definition at line 20 of file jobthread.h.


Public Member Functions

 JobThread (MTD *owner, const QString &start_string, int nice_priority)
virtual void run ()
bool keepGoing ()
virtual bool transcodeSlotUsed ()
QString getJobName ()
QString getSubName ()
double getProgress ()
double getSubProgress ()
void problem (const QString &a_problem)
QString getProblem ()
QString getJobString ()
void updateSubjobString (int seconds_elapsed, const QString &pre_string)
void cancelMe (bool yes_or_no)
void setSubProgress (double a_value, uint priority)
void setSubName (const QString &new_name, uint priority)
virtual QString getFinalFileName ()
void sendLoggingEvent (const QString &event_string)
virtual bool usesDevice (const QString &device)

Protected Member Functions

void setJobName (const QString &jname)
void setProblem (const QString &prob)

Protected Attributes

double overall_progress
double subjob_progress
double sub_to_overall_multiple
MTDparent
int nice_level
bool cancel_me
QMutex subjob_progress_mutex
QMutex subjob_name_mutex
QMutex problem_string_mutex
QMutex job_name_mutex
QMutex job_string_mutex

Private Attributes

QString problem_string
QString job_name
QString subjob_name
QString job_string

Constructor & Destructor Documentation

JobThread::JobThread ( MTD owner,
const QString &  start_string,
int  nice_priority 
)

Definition at line 42 of file jobthread.cpp.


Member Function Documentation

void JobThread::run ( void   )  [virtual]

Reimplemented in DVDThread, DVDISOCopyThread, DVDPerfectThread, and DVDTranscodeThread.

Definition at line 57 of file jobthread.cpp.

bool JobThread::keepGoing (  ) 

virtual bool JobThread::transcodeSlotUsed (  )  [inline, virtual]

Reimplemented in DVDTranscodeThread.

Definition at line 32 of file jobthread.h.

Referenced by MTD::cleanThreads().

QString JobThread::getJobName (  ) 

Definition at line 169 of file jobthread.cpp.

QString JobThread::getSubName (  ) 

Definition at line 175 of file jobthread.cpp.

double JobThread::getProgress ( void   )  [inline]

Definition at line 36 of file jobthread.h.

double JobThread::getSubProgress (  )  [inline]

Definition at line 37 of file jobthread.h.

void JobThread::problem ( const QString &  a_problem  ) 

QString JobThread::getProblem (  ) 

Definition at line 72 of file jobthread.cpp.

Referenced by MTD::cleanThreads().

QString JobThread::getJobString (  ) 

Definition at line 78 of file jobthread.cpp.

Referenced by MTD::cleanThreads().

void JobThread::updateSubjobString ( int  seconds_elapsed,
const QString &  pre_string 
)

void JobThread::cancelMe ( bool  yes_or_no  )  [inline]

Definition at line 44 of file jobthread.h.

void JobThread::setSubProgress ( double  a_value,
uint  priority 
)

void JobThread::setSubName ( const QString &  new_name,
uint  priority 
)

virtual QString JobThread::getFinalFileName (  )  [inline, virtual]

Reimplemented in DVDThread.

Definition at line 47 of file jobthread.h.

Referenced by MTD::checkFinalFile().

void JobThread::sendLoggingEvent ( const QString &  event_string  ) 

virtual bool JobThread::usesDevice ( const QString &  device  )  [inline, virtual]

Reimplemented in DVDThread.

Definition at line 50 of file jobthread.h.

void JobThread::setJobName ( const QString &  jname  )  [protected]

void JobThread::setProblem ( const QString &  prob  )  [protected]

Definition at line 212 of file jobthread.cpp.

Referenced by problem().


Member Data Documentation

QString JobThread::problem_string [private]

Definition at line 60 of file jobthread.h.

Referenced by getProblem(), JobThread(), and setProblem().

QString JobThread::job_name [private]

Definition at line 61 of file jobthread.h.

Referenced by getJobName(), JobThread(), and setJobName().

QString JobThread::subjob_name [private]

Definition at line 62 of file jobthread.h.

Referenced by getSubName(), and setSubName().

QString JobThread::job_string [private]

Definition at line 63 of file jobthread.h.

Referenced by getJobString(), and JobThread().

double JobThread::overall_progress [protected]

double JobThread::subjob_progress [protected]

MTD* JobThread::parent [protected]

Definition at line 70 of file jobthread.h.

Referenced by JobThread(), keepGoing(), problem(), DVDTranscodeThread::run(), and sendLoggingEvent().

int JobThread::nice_level [protected]

Definition at line 72 of file jobthread.h.

Referenced by cancelMe(), JobThread(), keepGoing(), setSubName(), and setSubProgress().

Definition at line 74 of file jobthread.h.

Referenced by setSubProgress().

QMutex JobThread::subjob_name_mutex [protected]

Definition at line 75 of file jobthread.h.

Referenced by getSubName(), and setSubName().

QMutex JobThread::problem_string_mutex [protected]

Definition at line 76 of file jobthread.h.

Referenced by getProblem(), and setProblem().

QMutex JobThread::job_name_mutex [protected]

Definition at line 77 of file jobthread.h.

Referenced by getJobName(), and setJobName().

QMutex JobThread::job_string_mutex [protected]

Definition at line 78 of file jobthread.h.

Referenced by getJobString().


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

Generated on Sat Dec 18 05:16:04 2010 for MythTV by  doxygen 1.5.5