MTD Class Reference

#include <mtd.h>

List of all members.


Detailed Description

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

MTDLoggermtd_log
MTDServerSocketserver_socket
QPtrList< JobThreadjob_threads
QMutex * dvd_drive_access
QMutex * titles_mutex
bool keep_running
bool have_disc
QTimer * thread_cleaning_timer
QTimer * disc_checking_timer
DVDProbedvd_probe
QString dvd_device
DiscCheckingThreaddisc_checking_thread
int nice_level
QMutex * concurrent_transcodings_mutex
int concurrent_transcodings
int max_concurrent_transcodings

Constructor & Destructor Documentation

MTD::MTD ( int  port,
bool  log_stdout 
)

Definition at line 102 of file mtd.cpp.


Member Function Documentation

bool MTD::threadsShouldContinue (  )  [inline]

Definition at line 64 of file mtd.h.

Referenced by DiscCheckingThread::keepGoing(), and JobThread::keepGoing().

bool MTD::isItOkToStartTranscoding (  ) 

Definition at line 969 of file mtd.cpp.

Referenced by DVDTranscodeThread::run().

void MTD::writeToLog ( const QString &  entry  )  [signal]

void MTD::newConnection ( QSocket *  socket  )  [private, slot]

Definition at line 296 of file mtd.cpp.

Referenced by MTD().

void MTD::endConnection ( QSocket *  socket  )  [private, slot]

Definition at line 304 of file mtd.cpp.

Referenced by MTD().

void MTD::readSocket (  )  [private, slot]

Definition at line 310 of file mtd.cpp.

Referenced by newConnection().

void MTD::parseTokens ( const QStringList &  tokens,
QSocket *  socket 
) [private, slot]

Definition at line 326 of file mtd.cpp.

Referenced by readSocket().

void MTD::shutDown (  )  [private, slot]

Definition at line 374 of file mtd.cpp.

Referenced by parseTokens().

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]

Definition at line 425 of file mtd.cpp.

Referenced by parseTokens().

void MTD::sendStatusReport ( QSocket *  socket  )  [private, slot]

Definition at line 430 of file mtd.cpp.

Referenced by parseTokens().

void MTD::sendMediaReport ( QSocket *  socket  )  [private, slot]

Definition at line 459 of file mtd.cpp.

Referenced by parseTokens().

void MTD::startJob ( const QStringList &  tokens  )  [private, slot]

Definition at line 585 of file mtd.cpp.

Referenced by parseTokens().

void MTD::startAbort ( const QStringList &  tokens  )  [private, slot]

Definition at line 541 of file mtd.cpp.

Referenced by parseTokens().

void MTD::startDVD ( const QStringList &  tokens  )  [private, slot]

Definition at line 609 of file mtd.cpp.

Referenced by startJob().

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]

Stop using the specified, or current, dvd drive.

Definition at line 894 of file mtd.cpp.

Referenced by noDrive().

void MTD::forgetDVD (  )  [private, slot]

Clear the current DVD device path, disc checking thread and DVDProbe object.

Definition at line 915 of file mtd.cpp.

Referenced by noDVD(), and useDVD().

void MTD::cleanThreads (  )  [private, slot]

Definition at line 247 of file mtd.cpp.

Referenced by MTD().

void MTD::checkDisc (  )  [private, slot]

Definition at line 189 of file mtd.cpp.

Referenced by MTD().

bool MTD::checkFinalFile ( QFile *  final_file,
const QString &  extension 
) [private, slot]

Definition at line 940 of file mtd.cpp.

Referenced by startDVD().

void MTD::customEvent ( QCustomEvent *  ce  )  [private]

Definition at line 982 of file mtd.cpp.


Member Data Documentation

MTDLogger* MTD::mtd_log [private]

Definition at line 98 of file mtd.h.

Referenced by endConnection(), MTD(), newConnection(), and shutDown().

Definition at line 99 of file mtd.h.

Referenced by MTD(), and shutDown().

QPtrList<JobThread> MTD::job_threads [private]

QMutex* MTD::dvd_drive_access [private]

Definition at line 101 of file mtd.h.

Referenced by forgetDVD(), MTD(), startDVD(), and useDVD().

QMutex* MTD::titles_mutex [private]

Definition at line 102 of file mtd.h.

Referenced by MTD(), sendMediaReport(), startDVD(), and useDVD().

Definition at line 103 of file mtd.h.

Referenced by MTD(), shutDown(), and threadsShouldContinue().

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]

Definition at line 105 of file mtd.h.

Referenced by MTD().

QTimer* MTD::disc_checking_timer [private]

Definition at line 106 of file mtd.h.

Referenced by MTD().

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().

Definition at line 109 of file mtd.h.

Referenced by checkDisc(), forgetDVD(), MTD(), shutDown(), and useDVD().

int MTD::nice_level [private]

Definition at line 110 of file mtd.h.

Referenced by MTD(), and startDVD().

Definition at line 111 of file mtd.h.

Referenced by cleanThreads(), isItOkToStartTranscoding(), and MTD().

Definition at line 112 of file mtd.h.

Referenced by cleanThreads(), isItOkToStartTranscoding(), and MTD().

Definition at line 113 of file mtd.h.

Referenced by isItOkToStartTranscoding(), and MTD().


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

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