|
MythTV
0.26-pre
|
#include <mythsystem.h>
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 | |
| MythSystemPrivate * | d |
Friends | |
| class | MythSystemPrivate |
Definition at line 40 of file mythsystem.h.
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.
| 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 146 of file mythsystem.cpp.
Referenced by WeatherSource::getLocationList(), ThumbGenerator::loadFile(), WeatherSource::ProbeInfo(), WeatherSource::ProbeTimeouts(), WeatherSource::ProbeTypes(), and WeatherSource::startUpdate().
| bool MythSystem::SetNice | ( | int | nice | ) |
Definition at line 152 of file mythsystem.cpp.
| bool MythSystem::SetIOPrio | ( | int | prio | ) |
Definition at line 161 of file mythsystem.cpp.
| void MythSystem::Run | ( | time_t | timeout = 0 | ) |
Runs a command inside the /bin/sh shell.
Returns immediately
Definition at line 173 of file mythsystem.cpp.
Referenced by ChannelBase::ChangeExternalChannel(), Playlist::CreateCDMP3(), HardwareProfile::DeleteProfile(), Search::executeSearch(), HttpStatus::FillStatusXML(), HardwareProfile::GenerateUUIDs(), MediaMonitorUnix::GetDeviceFile(), HardwareProfile::GetHardwareProfile(), InternetContent::GetInternetSources(), WeatherSource::getLocationList(), GrabberSettings::Load(), XMLTVConfig::Load(), ThumbGenerator::loadFile(), DcrawHandler::loadThumbnail(), myth_system(), WeatherSource::ProbeInfo(), WeatherSource::ProbeTimeouts(), WeatherSource::ProbeTypes(), DcrawHandler::read(), GrabberScript::run(), FillData::Run(), MetadataDownload::runGrabber(), MetadataDownload::runGrabberTest(), HouseKeeper::RunMFD(), WeatherSource::startUpdate(), HardwareProfile::SubmitProfile(), SourceUtil::UpdateChannelsFromListings(), and HouseKeeper::UpdateRecordedArtwork().
| uint MythSystem::Wait | ( | time_t | timeout = 0 | ) |
Definition at line 203 of file mythsystem.cpp.
Referenced by HardwareProfile::DeleteProfile(), HttpStatus::FillStatusXML(), HardwareProfile::GenerateUUIDs(), MediaMonitorUnix::GetDeviceFile(), HardwareProfile::GetHardwareProfile(), InternetContent::GetInternetSources(), WeatherSource::getLocationList(), ChannelBase::GetScriptStatus(), GrabberSettings::Load(), XMLTVConfig::Load(), ThumbGenerator::loadFile(), DcrawHandler::loadThumbnail(), myth_system(), WeatherSource::ProbeInfo(), WeatherSource::ProbeTimeouts(), WeatherSource::ProbeTypes(), DcrawHandler::read(), GrabberScript::run(), FillData::Run(), MetadataDownload::runGrabber(), MetadataDownload::runGrabberTest(), HouseKeeper::RunMFD(), HardwareProfile::SubmitProfile(), MythSystemWindows::Term(), MythSystemUnix::Term(), SourceUtil::UpdateChannelsFromListings(), and HouseKeeper::UpdateRecordedArtwork().
| 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 | ( | ) |
Definition at line 333 of file mythsystem.cpp.
Referenced by Playlist::cdrecordData(), HttpStatus::FillStatusXML(), HardwareProfile::GenerateUUIDs(), MediaMonitorUnix::GetDeviceFile(), HardwareProfile::GetHardwareProfile(), InternetContent::GetInternetSources(), WeatherSource::getLocationList(), GrabberSettings::Load(), XMLTVConfig::Load(), DcrawHandler::loadThumbnail(), Playlist::mkisofsData(), WeatherSource::ProbeInfo(), WeatherSource::ProbeTimeouts(), WeatherSource::ProbeTypes(), WeatherSource::processExit(), DcrawHandler::read(), GrabberScript::run(), FillData::Run(), MetadataDownload::runGrabber(), and Search::slotProcessSearchExit().
| QByteArray & MythSystem::ReadAllErr | ( | ) |
Definition at line 338 of file mythsystem.cpp.
Referenced by Playlist::cdrecordData(), MediaMonitorUnix::GetDeviceFile(), and Playlist::mkisofsData().
| void MythSystem::Term | ( | bool | force = false | ) |
Definition at line 244 of file mythsystem.cpp.
Referenced by Playlist::cdrecordData(), HouseKeeper::KillMFD(), ChannelBase::KillScript(), and Search::slotProcessSearchExit().
| 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.
| void MythSystem::Signal | ( | int | sig | ) |
Definition at line 255 of file mythsystem.cpp.
Definition at line 392 of file mythsystem.cpp.
Referenced by myth_system_jump_abort().
| bool MythSystem::isBackground | ( | ) | [inline] |
Definition at line 77 of file mythsystem.h.
| bool MythSystem::doAutoCleanup | ( | ) | [inline] |
Definition at line 78 of file mythsystem.h.
Referenced by MythSystemSignalManager::run().
| bool MythSystem::onlyLowExitVal | ( | ) | [inline] |
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().
| uint MythSystem::GetStatus | ( | ) | [inline] |
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] |
Definition at line 89 of file mythsystem.h.
Referenced by HandlePostRun(), HandlePreRun(), myth_system(), ProcessFlags(), SetCommand(), Wait(), and Write().
| 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().
| void MythSystem::readDataReady | ( | int | fd | ) | [signal] |
| void MythSystem::initializePrivate | ( | void | ) | [private] |
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().
friend class MythSystemPrivate [friend] |
Definition at line 103 of file mythsystem.h.
MythSystemPrivate* MythSystem::d [private] |
Definition at line 115 of file mythsystem.h.
Referenced by initializePrivate(), JumpAbort(), Run(), SetCommand(), SetIOPrio(), SetNice(), Signal(), Term(), Wait(), and ~MythSystem().
uint MythSystem::m_status [protected] |
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().
int MythSystem::m_ioprio [protected] |
Definition at line 129 of file mythsystem.h.
Referenced by initializePrivate(), and SetIOPrio().
Setting_t MythSystem::m_settings [protected] |
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().
1.7.6.1