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

QRunnable class for running MythSystemEvent handler commands. More...

List of all members.

Public Member Functions

 SystemEventThread (const QString cmd, QString eventName="")
 Constructor for creating a SystemEventThread.
void run (void)
 Runs the System Event handler command.

Private Attributes

QString m_command
QString m_event

Detailed Description

QRunnable class for running MythSystemEvent handler commands.

The SystemEventThread class runs a system event handler command in non-blocking mode. The commands are run in the MThreadPool::globalInstance, but we release and reserve the thread inside run() so that long-running commands to not block other short-running commands from executing if we hit MThreadPool::maxThreadCount().

Definition at line 26 of file mythsystemevent.cpp.


Constructor & Destructor Documentation

SystemEventThread::SystemEventThread ( const QString  cmd,
QString  eventName = "" 
) [inline]

Constructor for creating a SystemEventThread.

Parameters:
cmdCommand line to run for this System Event
eventNameOptional System Event name for this command

Definition at line 35 of file mythsystemevent.cpp.


Member Function Documentation

SystemEventThread::run ( void  ) [inline]

Runs the System Event handler command.

Overrides QRunnable::run()

Definition at line 43 of file mythsystemevent.cpp.


Member Data Documentation

QString SystemEventThread::m_command [private]

Definition at line 67 of file mythsystemevent.cpp.

Referenced by run().

QString SystemEventThread::m_event [private]

Definition at line 68 of file mythsystemevent.cpp.

Referenced by run().


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