#include <jobthread.h>

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 |
| MTD * | parent |
| 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 |
| JobThread::JobThread | ( | MTD * | owner, | |
| const QString & | start_string, | |||
| int | nice_priority | |||
| ) |
Definition at line 42 of file jobthread.cpp.
| void JobThread::run | ( | void | ) | [virtual] |
Reimplemented in DVDThread, DVDISOCopyThread, DVDPerfectThread, and DVDTranscodeThread.
Definition at line 57 of file jobthread.cpp.
| bool JobThread::keepGoing | ( | ) |
Definition at line 63 of file jobthread.cpp.
Referenced by DVDISOCopyThread::copyFullDisc(), DVDThread::ripTitle(), DVDTranscodeThread::run(), DVDPerfectThread::run(), DVDISOCopyThread::run(), and DVDTranscodeThread::runTranscode().
| 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 | ) |
Definition at line 181 of file jobthread.cpp.
Referenced by DVDTranscodeThread::buildTranscodeCommandLine(), DVDISOCopyThread::copyFullDisc(), DVDTranscodeThread::makeWorkingDirectory(), DVDThread::ripTitle(), DVDTranscodeThread::run(), and DVDTranscodeThread::runTranscode().
| QString JobThread::getProblem | ( | ) |
| QString JobThread::getJobString | ( | ) |
| void JobThread::updateSubjobString | ( | int | seconds_elapsed, | |
| const QString & | pre_string | |||
| ) |
Definition at line 84 of file jobthread.cpp.
Referenced by DVDISOCopyThread::copyFullDisc(), DVDThread::ripTitle(), and DVDTranscodeThread::runTranscode().
| void JobThread::cancelMe | ( | bool | yes_or_no | ) | [inline] |
Definition at line 44 of file jobthread.h.
| void JobThread::setSubProgress | ( | double | a_value, | |
| uint | priority | |||
| ) |
Definition at line 120 of file jobthread.cpp.
Referenced by DVDISOCopyThread::copyFullDisc(), JobThread(), DVDThread::ripTitle(), and DVDTranscodeThread::runTranscode().
| void JobThread::setSubName | ( | const QString & | new_name, | |
| uint | priority | |||
| ) |
Definition at line 144 of file jobthread.cpp.
Referenced by DVDISOCopyThread::copyFullDisc(), JobThread(), DVDThread::ripTitle(), DVDTranscodeThread::run(), DVDTranscodeThread::runTranscode(), and updateSubjobString().
| 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 | ) |
Definition at line 195 of file jobthread.cpp.
Referenced by DVDTranscodeThread::buildTranscodeCommandLine(), DVDISOCopyThread::copyFullDisc(), DVDISOCopyThread::DVDISOCopyThread(), and DVDThread::ripTitle().
| virtual bool JobThread::usesDevice | ( | const QString & | device | ) | [inline, virtual] |
| void JobThread::setJobName | ( | const QString & | jname | ) | [protected] |
Definition at line 206 of file jobthread.cpp.
Referenced by DVDTranscodeThread::run(), DVDPerfectThread::run(), and DVDISOCopyThread::run().
| void JobThread::setProblem | ( | const QString & | prob | ) | [protected] |
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] |
QString JobThread::job_string [private] |
double JobThread::overall_progress [protected] |
Definition at line 67 of file jobthread.h.
Referenced by DVDISOCopyThread::copyFullDisc(), getProgress(), JobThread(), DVDThread::ripTitle(), and DVDTranscodeThread::runTranscode().
double JobThread::subjob_progress [protected] |
Definition at line 68 of file jobthread.h.
Referenced by DVDISOCopyThread::copyFullDisc(), getSubProgress(), DVDThread::ripTitle(), setSubProgress(), and updateSubjobString().
double JobThread::sub_to_overall_multiple [protected] |
Definition at line 69 of file jobthread.h.
Referenced by DVDISOCopyThread::copyFullDisc(), JobThread(), DVDThread::ripTitle(), and DVDTranscodeThread::run().
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 71 of file jobthread.h.
Referenced by JobThread(), DVDTranscodeThread::run(), DVDPerfectThread::run(), and DVDISOCopyThread::run().
bool JobThread::cancel_me [protected] |
Definition at line 72 of file jobthread.h.
Referenced by cancelMe(), JobThread(), keepGoing(), setSubName(), and setSubProgress().
QMutex JobThread::subjob_progress_mutex [protected] |
QMutex JobThread::subjob_name_mutex [protected] |
QMutex JobThread::problem_string_mutex [protected] |
QMutex JobThread::job_name_mutex [protected] |
QMutex JobThread::job_string_mutex [protected] |
1.5.5