#include <mtd.h>
Definition at line 51 of file mtd.h.
Signals | |
| void | writeToLog (const QString &entry) |
Public Member Functions | |
| MTD (int port, bool log_stdout) | |
| bool | threadsShouldContinue () |
| bool | isItOkToStartTranscoding () |
Private Slots | |
| void | newConnection (QSocket *) |
| void | endConnection (QSocket *) |
| void | readSocket () |
| void | parseTokens (const QStringList &tokens, QSocket *socket) |
| void | shutDown () |
| void | sendMessage (QSocket *where, const QString &what) |
| void | sayHi (QSocket *socket) |
| void | sendStatusReport (QSocket *socket) |
| void | sendMediaReport (QSocket *socket) |
| void | startJob (const QStringList &tokens) |
| void | startAbort (const QStringList &tokens) |
| void | startDVD (const QStringList &tokens) |
| void | useDrive (const QStringList &tokens) |
| Remember the supplied device path. | |
| void | useDVD (const QStringList &tokens) |
| Remember the supplied DVD device path, and create a DVDProbe & thread for it. | |
| void | noDrive (const QStringList &tokens) |
| Stop using the specified, or current, drive. | |
| QString | noDVD (const QStringList &tokens) |
| Stop using the specified, or current, dvd drive. | |
| void | forgetDVD () |
| Clear the current DVD device path, disc checking thread and DVDProbe object. | |
| void | cleanThreads () |
| void | checkDisc () |
| bool | checkFinalFile (QFile *final_file, const QString &extension) |
Private Member Functions | |
| void | customEvent (QCustomEvent *ce) |
Private Attributes | |
| MTDLogger * | mtd_log |
| MTDServerSocket * | server_socket |
| QPtrList< JobThread > | job_threads |
| QMutex * | dvd_drive_access |
| QMutex * | titles_mutex |
| bool | keep_running |
| bool | have_disc |
| QTimer * | thread_cleaning_timer |
| QTimer * | disc_checking_timer |
| DVDProbe * | dvd_probe |
| QString | dvd_device |
| DiscCheckingThread * | disc_checking_thread |
| int | nice_level |
| QMutex * | concurrent_transcodings_mutex |
| int | concurrent_transcodings |
| int | max_concurrent_transcodings |
| bool MTD::threadsShouldContinue | ( | ) | [inline] |
Definition at line 64 of file mtd.h.
Referenced by DiscCheckingThread::keepGoing(), and JobThread::keepGoing().
| bool MTD::isItOkToStartTranscoding | ( | ) |
| void MTD::writeToLog | ( | const QString & | entry | ) | [signal] |
Referenced by checkDisc(), cleanThreads(), customEvent(), MTD(), noDrive(), parseTokens(), startAbort(), startDVD(), startJob(), useDrive(), and useDVD().
| void MTD::newConnection | ( | QSocket * | socket | ) | [private, slot] |
| void MTD::endConnection | ( | QSocket * | socket | ) | [private, slot] |
| void MTD::readSocket | ( | ) | [private, slot] |
| void MTD::parseTokens | ( | const QStringList & | tokens, | |
| QSocket * | socket | |||
| ) | [private, slot] |
| void MTD::shutDown | ( | ) | [private, slot] |
| void MTD::sendMessage | ( | QSocket * | where, | |
| const QString & | what | |||
| ) | [private, slot] |
Definition at line 417 of file mtd.cpp.
Referenced by sayHi(), sendMediaReport(), and sendStatusReport().
| void MTD::sayHi | ( | QSocket * | socket | ) | [private, slot] |
| void MTD::sendStatusReport | ( | QSocket * | socket | ) | [private, slot] |
| void MTD::sendMediaReport | ( | QSocket * | socket | ) | [private, slot] |
| void MTD::startJob | ( | const QStringList & | tokens | ) | [private, slot] |
| void MTD::startAbort | ( | const QStringList & | tokens | ) | [private, slot] |
| void MTD::startDVD | ( | const QStringList & | tokens | ) | [private, slot] |
| void MTD::useDrive | ( | const QStringList & | tokens | ) | [private, slot] |
Remember the supplied device path.
Definition at line 813 of file mtd.cpp.
Referenced by parseTokens().
| void MTD::useDVD | ( | const QStringList & | tokens | ) | [private, slot] |
Remember the supplied DVD device path, and create a DVDProbe & thread for it.
Definition at line 830 of file mtd.cpp.
Referenced by useDrive().
| void MTD::noDrive | ( | const QStringList & | tokens | ) | [private, slot] |
Stop using the specified, or current, drive.
Also stop any related jobs
Definition at line 858 of file mtd.cpp.
Referenced by parseTokens().
| QString MTD::noDVD | ( | const QStringList & | tokens | ) | [private, slot] |
| void MTD::forgetDVD | ( | ) | [private, slot] |
| void MTD::cleanThreads | ( | ) | [private, slot] |
| void MTD::checkDisc | ( | ) | [private, slot] |
| bool MTD::checkFinalFile | ( | QFile * | final_file, | |
| const QString & | extension | |||
| ) | [private, slot] |
MTDLogger* MTD::mtd_log [private] |
Definition at line 98 of file mtd.h.
Referenced by endConnection(), MTD(), newConnection(), and shutDown().
MTDServerSocket* MTD::server_socket [private] |
QPtrList<JobThread> MTD::job_threads [private] |
Definition at line 100 of file mtd.h.
Referenced by checkFinalFile(), cleanThreads(), MTD(), noDrive(), sendStatusReport(), shutDown(), startAbort(), and startDVD().
QMutex* MTD::dvd_drive_access [private] |
QMutex* MTD::titles_mutex [private] |
Definition at line 102 of file mtd.h.
Referenced by MTD(), sendMediaReport(), startDVD(), and useDVD().
bool MTD::keep_running [private] |
bool MTD::have_disc [private] |
Definition at line 104 of file mtd.h.
Referenced by checkDisc(), forgetDVD(), MTD(), sendMediaReport(), and useDVD().
QTimer* MTD::thread_cleaning_timer [private] |
QTimer* MTD::disc_checking_timer [private] |
DVDProbe* MTD::dvd_probe [private] |
Definition at line 107 of file mtd.h.
Referenced by checkDisc(), forgetDVD(), MTD(), sendMediaReport(), startDVD(), and useDVD().
QString MTD::dvd_device [private] |
Definition at line 108 of file mtd.h.
Referenced by forgetDVD(), MTD(), noDVD(), startDVD(), and useDVD().
DiscCheckingThread* MTD::disc_checking_thread [private] |
Definition at line 109 of file mtd.h.
Referenced by checkDisc(), forgetDVD(), MTD(), shutDown(), and useDVD().
int MTD::nice_level [private] |
QMutex* MTD::concurrent_transcodings_mutex [private] |
Definition at line 111 of file mtd.h.
Referenced by cleanThreads(), isItOkToStartTranscoding(), and MTD().
int MTD::concurrent_transcodings [private] |
Definition at line 112 of file mtd.h.
Referenced by cleanThreads(), isItOkToStartTranscoding(), and MTD().
int MTD::max_concurrent_transcodings [private] |
1.5.5