MythTV  0.26-pre
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
MythSystem Class Reference

#include <mythsystem.h>

List of all members.

Signals

void started ()
void finished ()
void error (uint status)
void readDataReady (int fd)

Public Member Functions

 MythSystem ()
 MythSystem (const QString &, uint)
 MythSystem (const QString &, const QStringList &, uint)
 MythSystem (const MythSystem &other)
 ~MythSystem (void)
void SetCommand (const QString &, uint)
void SetCommand (const QString &, const QStringList &, uint)
void SetDirectory (const QString &)
bool SetNice (int nice)
bool SetIOPrio (int prio)
void Run (time_t timeout=0)
 Runs a command inside the /bin/sh shell.
uint Wait (time_t timeout=0)
int Write (const QByteArray &)
QByteArray Read (int size)
QByteArray ReadErr (int size)
QByteArray & ReadAll ()
QByteArray & ReadAllErr ()
void Term (bool force=false)
void Kill ()
void Stop ()
void Cont ()
void HangUp ()
void USR1 ()
void USR2 ()
void Signal (int sig)
void JumpAbort (void)
bool isBackground ()
bool doAutoCleanup ()
bool onlyLowExitVal ()
void HandlePreRun ()
void HandlePostRun ()
uint GetStatus ()
void SetStatus (uint status)
QString & GetLogCmd ()
QString & GetDirectory ()
bool GetSetting (const char *setting)
QString & GetCommand ()
void SetCommand (QString &cmd)
QStringList & GetArgs ()
void SetArgs (QStringList &args)
int GetNice ()
int GetIOPrio ()
QBuffer * GetBuffer (int index)
void Unlock ()

Protected Member Functions

void ProcessFlags (uint flags)

Protected Attributes

uint m_status
QSemaphore m_semReady
QString m_command
QString m_logcmd
QStringList m_args
QString m_directory
int m_nice
int m_ioprio
Setting_t m_settings
QBuffer m_stdbuff [3]

Private Member Functions

void initializePrivate (void)

Private Attributes

MythSystemPrivated

Friends

class MythSystemPrivate

Detailed Description

Definition at line 40 of file mythsystem.h.


Constructor & Destructor Documentation

Definition at line 48 of file mythsystem.cpp.

MythSystem::MythSystem ( const QString &  command,
uint  flags 
)

Definition at line 54 of file mythsystem.cpp.

MythSystem::MythSystem ( const QString &  command,
const QStringList &  args,
uint  flags 
)

Definition at line 86 of file mythsystem.cpp.

MythSystem::MythSystem ( const MythSystem other)

Definition at line 125 of file mythsystem.cpp.

Definition at line 140 of file mythsystem.cpp.


Member Function Documentation

void MythSystem::SetCommand ( const QString &  command,
uint  flags 
)

Definition at line 64 of file mythsystem.cpp.

Referenced by Search::executeSearch(), and MythSystem().

void MythSystem::SetCommand ( const QString &  command,
const QStringList &  args,
uint  flags 
)

Definition at line 98 of file mythsystem.cpp.

void MythSystem::SetDirectory ( const QString &  directory)

Definition at line 152 of file mythsystem.cpp.

Definition at line 161 of file mythsystem.cpp.

void MythSystem::Run ( time_t  timeout = 0)
uint MythSystem::Wait ( time_t  timeout = 0)
int MythSystem::Write ( const QByteArray &  ba)

Definition at line 343 of file mythsystem.cpp.

QByteArray MythSystem::Read ( int  size)

Definition at line 323 of file mythsystem.cpp.

QByteArray MythSystem::ReadErr ( int  size)

Definition at line 328 of file mythsystem.cpp.

QByteArray & MythSystem::ReadAll ( )
QByteArray & MythSystem::ReadAllErr ( )
void MythSystem::Kill ( void  ) [inline]

Definition at line 67 of file mythsystem.h.

Referenced by WeatherSource::~WeatherSource().

void MythSystem::Stop ( void  ) [inline]

Definition at line 68 of file mythsystem.h.

void MythSystem::Cont ( ) [inline]

Definition at line 69 of file mythsystem.h.

void MythSystem::HangUp ( ) [inline]

Definition at line 70 of file mythsystem.h.

void MythSystem::USR1 ( ) [inline]

Definition at line 71 of file mythsystem.h.

void MythSystem::USR2 ( ) [inline]

Definition at line 72 of file mythsystem.h.

Definition at line 255 of file mythsystem.cpp.

Definition at line 392 of file mythsystem.cpp.

Referenced by myth_system_jump_abort().

Definition at line 77 of file mythsystem.h.

Definition at line 78 of file mythsystem.h.

Referenced by MythSystemSignalManager::run().

Definition at line 79 of file mythsystem.h.

Referenced by MythSystemManager::run().

Definition at line 352 of file mythsystem.cpp.

Referenced by Run().

Definition at line 373 of file mythsystem.cpp.

Referenced by MythSystemSignalManager::run().

Definition at line 83 of file mythsystem.h.

Referenced by Run(), SetIOPrio(), SetNice(), and Wait().

void MythSystem::SetStatus ( uint  status) [inline]

Definition at line 84 of file mythsystem.h.

QString& MythSystem::GetLogCmd ( ) [inline]

Definition at line 86 of file mythsystem.h.

QString& MythSystem::GetDirectory ( ) [inline]

Definition at line 87 of file mythsystem.h.

bool MythSystem::GetSetting ( const char *  setting) [inline]
QString& MythSystem::GetCommand ( ) [inline]

Definition at line 92 of file mythsystem.h.

void MythSystem::SetCommand ( QString &  cmd) [inline]

Definition at line 93 of file mythsystem.h.

QStringList& MythSystem::GetArgs ( void  ) [inline]

Definition at line 95 of file mythsystem.h.

void MythSystem::SetArgs ( QStringList &  args) [inline]

Definition at line 96 of file mythsystem.h.

int MythSystem::GetNice ( ) [inline]

Definition at line 98 of file mythsystem.h.

Referenced by MythSystemUnix::Fork().

int MythSystem::GetIOPrio ( ) [inline]

Definition at line 99 of file mythsystem.h.

Referenced by MythSystemUnix::Fork().

QBuffer* MythSystem::GetBuffer ( int  index) [inline]

Definition at line 101 of file mythsystem.h.

void MythSystem::Unlock ( void  ) [inline]

Definition at line 103 of file mythsystem.h.

void MythSystem::started ( ) [signal]

Referenced by Run().

void MythSystem::finished ( ) [signal]
void MythSystem::error ( uint  status) [signal]

Referenced by Run().

Definition at line 37 of file mythsystem.cpp.

Referenced by MythSystem().

void MythSystem::ProcessFlags ( uint  flags) [protected]

Definition at line 267 of file mythsystem.cpp.

Referenced by SetCommand().


Friends And Related Function Documentation

friend class MythSystemPrivate [friend]

Definition at line 103 of file mythsystem.h.


Member Data Documentation

Definition at line 120 of file mythsystem.h.

Referenced by ProcessFlags(), Run(), SetCommand(), Signal(), Term(), and Wait().

QSemaphore MythSystem::m_semReady [protected]

Definition at line 121 of file mythsystem.h.

Referenced by MythSystem(), Run(), and Wait().

QString MythSystem::m_command [protected]

Definition at line 123 of file mythsystem.h.

Referenced by ProcessFlags(), and SetCommand().

QString MythSystem::m_logcmd [protected]

Definition at line 124 of file mythsystem.h.

Referenced by SetCommand().

QStringList MythSystem::m_args [protected]

Definition at line 125 of file mythsystem.h.

Referenced by SetCommand().

QString MythSystem::m_directory [protected]

Definition at line 126 of file mythsystem.h.

Referenced by SetDirectory().

int MythSystem::m_nice [protected]

Definition at line 128 of file mythsystem.h.

Referenced by initializePrivate(), and SetNice().

Definition at line 129 of file mythsystem.h.

Referenced by initializePrivate(), and SetIOPrio().

Definition at line 131 of file mythsystem.h.

Referenced by ProcessFlags(), and SetDirectory().

QBuffer MythSystem::m_stdbuff[3] [protected]

Definition at line 132 of file mythsystem.h.

Referenced by Read(), ReadAll(), ReadAllErr(), ReadErr(), and Write().


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