#include <libmythbase/mythsystemlegacy.h>
Definition at line 67 of file mythsystemlegacy.h.
◆ MythSystemLegacy() [1/3]
MythSystemLegacy::MythSystemLegacy |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ MythSystemLegacy() [2/3]
MythSystemLegacy::MythSystemLegacy |
( |
const QString & |
command, |
|
|
uint |
flags, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ MythSystemLegacy() [3/3]
MythSystemLegacy::MythSystemLegacy |
( |
const QString & |
command, |
|
|
const QStringList & |
args, |
|
|
uint |
flags, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ ~MythSystemLegacy()
MythSystemLegacy::~MythSystemLegacy |
( |
void |
| ) |
|
|
override |
◆ SetCommand() [1/3]
void MythSystemLegacy::SetCommand |
( |
const QString & |
command, |
|
|
uint |
flags |
|
) |
| |
◆ SetCommand() [2/3]
void MythSystemLegacy::SetCommand |
( |
const QString & |
command, |
|
|
const QStringList & |
args, |
|
|
uint |
flags |
|
) |
| |
◆ SetDirectory()
void MythSystemLegacy::SetDirectory |
( |
const QString & |
directory | ) |
|
◆ SetNice()
bool MythSystemLegacy::SetNice |
( |
int |
nice | ) |
|
◆ SetIOPrio()
bool MythSystemLegacy::SetIOPrio |
( |
int |
prio | ) |
|
◆ Run()
void MythSystemLegacy::Run |
( |
std::chrono::seconds |
timeout = 0s | ) |
|
Runs a command inside the /bin/sh shell. Returns immediately.
Definition at line 213 of file mythsystemlegacy.cpp.
Referenced by ChannelBase::ChangeExternalChannel(), ThumbThread< ImageDbSg >::CreateThumbnail(), HardwareProfile::DeleteProfile(), RadioStreamUpdateTask::DoRun(), ArtworkTask::DoRun(), MythFillDatabaseTask::DoRun(), Search::executeSearch(), HttpStatus::FillStatusXML(), V2Status::FillStatusXML(), HardwareProfile::GenerateUUIDs(), VideoMetaData::GetAllTags(), V2Status::GetBackendStatus(), MediaMonitorUnix::GetDeviceFile(), V2Channel::GetGrabberList(), HardwareProfile::GetHardwareProfile(), InternetContent::GetInternetSources(), WeatherSource::getLocationList(), FillData::GrabData(), XMLTVGrabber::Load(), MetaGrabberScript::MetaGrabberScript(), WeatherSource::ProbeInfo(), WeatherSource::ProbeTimeouts(), WeatherSource::ProbeTypes(), GrabberScript::run(), FillData::Run(), MetadataDownload::runGrabber(), MetaGrabberScript::RunGrabber(), WeatherSource::startUpdate(), HardwareProfile::SubmitProfile(), MetaGrabberScript::Test(), and SourceUtil::UpdateChannelsFromListings().
◆ Wait()
uint MythSystemLegacy::Wait |
( |
std::chrono::seconds |
timeout = 0s | ) |
|
Definition at line 243 of file mythsystemlegacy.cpp.
Referenced by ThumbThread< ImageDbSg >::CreateThumbnail(), HardwareProfile::DeleteProfile(), RadioStreamUpdateTask::DoRun(), ArtworkTask::DoRun(), MythFillDatabaseTask::DoRun(), HttpStatus::FillStatusXML(), V2Status::FillStatusXML(), HardwareProfile::GenerateUUIDs(), VideoMetaData::GetAllTags(), V2Status::GetBackendStatus(), MediaMonitorUnix::GetDeviceFile(), V2Channel::GetGrabberList(), HardwareProfile::GetHardwareProfile(), InternetContent::GetInternetSources(), WeatherSource::getLocationList(), ChannelBase::GetScriptStatus(), FillData::GrabData(), XMLTVGrabber::Load(), MetaGrabberScript::MetaGrabberScript(), WeatherSource::ProbeInfo(), WeatherSource::ProbeTimeouts(), WeatherSource::ProbeTypes(), GrabberScript::run(), FillData::Run(), MetadataDownload::runGrabber(), MetaGrabberScript::RunGrabber(), HardwareProfile::SubmitProfile(), MetaGrabberScript::Test(), SourceUtil::UpdateChannelsFromListings(), ~MythSystemLegacy(), and WeatherSource::~WeatherSource().
◆ Write()
int MythSystemLegacy::Write |
( |
const QByteArray & |
ba | ) |
|
This writes to the standard input of the program being run.
All calls to this must be done before Run() is called. All calls after Run() is called are silently ignored.
Definition at line 416 of file mythsystemlegacy.cpp.
◆ Read()
QByteArray MythSystemLegacy::Read |
( |
int |
size | ) |
|
◆ ReadErr()
QByteArray MythSystemLegacy::ReadErr |
( |
int |
size | ) |
|
◆ ReadAll()
QByteArray & MythSystemLegacy::ReadAll |
( |
| ) |
|
Definition at line 402 of file mythsystemlegacy.cpp.
Referenced by HttpStatus::FillStatusXML(), V2Status::FillStatusXML(), HardwareProfile::GenerateUUIDs(), VideoMetaData::GetAllTags(), V2Status::GetBackendStatus(), MediaMonitorUnix::GetDeviceFile(), V2Channel::GetGrabberList(), HardwareProfile::GetHardwareProfile(), InternetContent::GetInternetSources(), WeatherSource::getLocationList(), XMLTVGrabber::Load(), MetaGrabberScript::MetaGrabberScript(), WeatherSource::ProbeInfo(), WeatherSource::ProbeTimeouts(), WeatherSource::ProbeTypes(), WeatherSource::processExit(), GrabberScript::run(), FillData::Run(), MetadataDownload::runGrabber(), MetaGrabberScript::RunGrabber(), and Search::slotProcessSearchExit().
◆ ReadAllErr()
QByteArray & MythSystemLegacy::ReadAllErr |
( |
| ) |
|
◆ Term()
void MythSystemLegacy::Term |
( |
bool |
force = false | ) |
|
◆ Signal()
◆ isBackground()
bool MythSystemLegacy::isBackground |
( |
void |
| ) |
|
|
inline |
◆ doAutoCleanup()
bool MythSystemLegacy::doAutoCleanup |
( |
void |
| ) |
|
|
inline |
◆ onlyLowExitVal()
bool MythSystemLegacy::onlyLowExitVal |
( |
void |
| ) |
|
|
inline |
◆ HandlePreRun()
void MythSystemLegacy::HandlePreRun |
( |
void |
| ) |
|
◆ HandlePostRun()
void MythSystemLegacy::HandlePostRun |
( |
void |
| ) |
|
◆ GetStatus()
uint MythSystemLegacy::GetStatus |
( |
void |
| ) |
const |
|
inline |
Definition at line 122 of file mythsystemlegacy.h.
Referenced by RadioStreamUpdateTask::DoRun(), ArtworkTask::DoRun(), MythFillDatabaseTask::DoRun(), Run(), SetIOPrio(), SetNice(), RadioStreamUpdateTask::Terminate(), ArtworkTask::Terminate(), MythFillDatabaseTask::Terminate(), Wait(), and ~MythSystemLegacy().
◆ SetStatus()
void MythSystemLegacy::SetStatus |
( |
uint |
status | ) |
|
|
inline |
◆ GetLogCmd()
QString& MythSystemLegacy::GetLogCmd |
( |
void |
| ) |
|
|
inline |
◆ GetDirectory()
QString& MythSystemLegacy::GetDirectory |
( |
void |
| ) |
|
|
inline |
◆ GetSetting()
bool MythSystemLegacy::GetSetting |
( |
const char * |
setting | ) |
|
|
inline |
◆ GetCommand()
QString& MythSystemLegacy::GetCommand |
( |
void |
| ) |
|
|
inline |
◆ SetCommand() [3/3]
void MythSystemLegacy::SetCommand |
( |
const QString & |
cmd | ) |
|
|
inline |
◆ GetArgs()
QStringList& MythSystemLegacy::GetArgs |
( |
void |
| ) |
|
|
inline |
◆ SetArgs()
void MythSystemLegacy::SetArgs |
( |
const QStringList & |
args | ) |
|
|
inline |
◆ GetNice()
int MythSystemLegacy::GetNice |
( |
void |
| ) |
const |
|
inline |
◆ GetIOPrio()
int MythSystemLegacy::GetIOPrio |
( |
void |
| ) |
const |
|
inline |
◆ GetBuffer()
QBuffer* MythSystemLegacy::GetBuffer |
( |
int |
index | ) |
|
|
inline |
◆ Unlock()
void MythSystemLegacy::Unlock |
( |
void |
| ) |
|
|
inline |
◆ ShellEscape()
QString MythSystemLegacy::ShellEscape |
( |
const QString & |
in | ) |
|
|
static |
◆ started
void MythSystemLegacy::started |
( |
void |
| ) |
|
|
signal |
◆ finished
void MythSystemLegacy::finished |
( |
void |
| ) |
|
|
signal |
◆ error
void MythSystemLegacy::error |
( |
uint |
status | ) |
|
|
signal |
◆ readDataReady
void MythSystemLegacy::readDataReady |
( |
int |
fd | ) |
|
|
signal |
◆ initializePrivate()
void MythSystemLegacy::initializePrivate |
( |
void |
| ) |
|
|
private |
◆ ProcessFlags()
void MythSystemLegacy::ProcessFlags |
( |
uint |
flags | ) |
|
|
protected |
◆ MythSystemLegacyPrivate
◆ m_status
◆ m_semReady
QSemaphore MythSystemLegacy::m_semReady |
|
protected |
◆ m_command
QString MythSystemLegacy::m_command |
|
protected |
◆ m_logcmd
QString MythSystemLegacy::m_logcmd |
|
protected |
◆ m_args
QStringList MythSystemLegacy::m_args |
|
protected |
◆ m_directory
QString MythSystemLegacy::m_directory |
|
protected |
◆ m_nice
int MythSystemLegacy::m_nice {0} |
|
protected |
◆ m_ioprio
int MythSystemLegacy::m_ioprio {0} |
|
protected |
◆ m_settings
Setting MythSystemLegacy::m_settings |
|
protected |
◆ m_stdbuff
std::array<QBuffer,3> MythSystemLegacy::m_stdbuff |
|
protected |
The documentation for this class was generated from the following files: