#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 |
◆ doAutoCleanup()
| bool MythSystemLegacy::doAutoCleanup |
( |
void |
| ) |
|
|
inline |
◆ error
| void MythSystemLegacy::error |
( |
uint |
status | ) |
|
|
signal |
◆ finished
| void MythSystemLegacy::finished |
( |
void |
| ) |
|
|
signal |
◆ GetArgs()
| QStringList & MythSystemLegacy::GetArgs |
( |
void |
| ) |
|
|
inline |
◆ GetBuffer()
| QBuffer * MythSystemLegacy::GetBuffer |
( |
int |
index | ) |
|
|
inline |
◆ GetCommand()
| QString & MythSystemLegacy::GetCommand |
( |
void |
| ) |
|
|
inline |
◆ GetDirectory()
| QString & MythSystemLegacy::GetDirectory |
( |
void |
| ) |
|
|
inline |
◆ GetIOPrio()
| int MythSystemLegacy::GetIOPrio |
( |
void |
| ) |
const |
|
inline |
◆ GetLogCmd()
| QString & MythSystemLegacy::GetLogCmd |
( |
void |
| ) |
|
|
inline |
◆ GetNice()
| int MythSystemLegacy::GetNice |
( |
void |
| ) |
const |
|
inline |
◆ GetSetting()
| bool MythSystemLegacy::GetSetting |
( |
const char * |
setting | ) |
|
|
inline |
◆ 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().
◆ HandlePostRun()
| void MythSystemLegacy::HandlePostRun |
( |
void |
| ) |
|
◆ HandlePreRun()
| void MythSystemLegacy::HandlePreRun |
( |
void |
| ) |
|
◆ initializePrivate()
| void MythSystemLegacy::initializePrivate |
( |
void |
| ) |
|
|
private |
◆ isBackground()
| bool MythSystemLegacy::isBackground |
( |
void |
| ) |
|
|
inline |
◆ onlyLowExitVal()
| bool MythSystemLegacy::onlyLowExitVal |
( |
void |
| ) |
|
|
inline |
◆ ProcessFlags()
| void MythSystemLegacy::ProcessFlags |
( |
uint |
flags | ) |
|
|
protected |
◆ Read()
| QByteArray MythSystemLegacy::Read |
( |
int |
size | ) |
|
◆ ReadAll()
| QByteArray & MythSystemLegacy::ReadAll |
( |
void |
| ) |
|
Definition at line 401 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(), FillData::Run(), GrabberScript::run(), MetadataDownload::runGrabber(), MetaGrabberScript::RunGrabber(), and Search::slotProcessSearchExit().
◆ ReadAllErr()
| QByteArray & MythSystemLegacy::ReadAllErr |
( |
void |
| ) |
|
◆ readDataReady
| void MythSystemLegacy::readDataReady |
( |
int |
fd | ) |
|
|
signal |
◆ ReadErr()
| QByteArray MythSystemLegacy::ReadErr |
( |
int |
size | ) |
|
◆ Run()
| void MythSystemLegacy::Run |
( |
std::chrono::seconds |
timeout = 0s | ) |
|
Runs a command inside the /bin/sh shell. Returns immediately.
Definition at line 212 of file mythsystemlegacy.cpp.
Referenced by ChannelBase::ChangeExternalChannel(), ThumbThread< DBFS >::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(), FillData::Run(), GrabberScript::run(), MetadataDownload::runGrabber(), MetaGrabberScript::RunGrabber(), WeatherSource::startUpdate(), HardwareProfile::SubmitProfile(), MetaGrabberScript::Test(), and SourceUtil::UpdateChannelsFromListings().
◆ SetArgs()
| void MythSystemLegacy::SetArgs |
( |
const QStringList & |
args | ) |
|
|
inline |
◆ SetCommand() [1/3]
| void MythSystemLegacy::SetCommand |
( |
const QString & |
cmd | ) |
|
|
inline |
◆ SetCommand() [2/3]
| void MythSystemLegacy::SetCommand |
( |
const QString & |
command, |
|
|
const QStringList & |
args, |
|
|
uint |
flags |
|
) |
| |
◆ SetCommand() [3/3]
| void MythSystemLegacy::SetCommand |
( |
const QString & |
command, |
|
|
uint |
flags |
|
) |
| |
◆ SetDirectory()
| void MythSystemLegacy::SetDirectory |
( |
const QString & |
directory | ) |
|
◆ SetIOPrio()
| bool MythSystemLegacy::SetIOPrio |
( |
int |
prio | ) |
|
◆ SetNice()
| bool MythSystemLegacy::SetNice |
( |
int |
nice | ) |
|
◆ SetStatus()
| void MythSystemLegacy::SetStatus |
( |
uint |
status | ) |
|
|
inline |
◆ ShellEscape()
| QString MythSystemLegacy::ShellEscape |
( |
const QString & |
in | ) |
|
|
static |
◆ Signal()
◆ started
| void MythSystemLegacy::started |
( |
void |
| ) |
|
|
signal |
◆ Term()
| void MythSystemLegacy::Term |
( |
bool |
force = false | ) |
|
◆ Unlock()
| void MythSystemLegacy::Unlock |
( |
void |
| ) |
|
|
inline |
◆ Wait()
| uint MythSystemLegacy::Wait |
( |
std::chrono::seconds |
timeout = 0s | ) |
|
Definition at line 242 of file mythsystemlegacy.cpp.
Referenced by ThumbThread< DBFS >::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(), FillData::Run(), GrabberScript::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 415 of file mythsystemlegacy.cpp.
◆ MythSystemLegacyPrivate
◆ m_args
| QStringList MythSystemLegacy::m_args |
|
protected |
◆ m_command
| QString MythSystemLegacy::m_command |
|
protected |
◆ m_directory
| QString MythSystemLegacy::m_directory |
|
protected |
◆ m_ioprio
| int MythSystemLegacy::m_ioprio {0} |
|
protected |
◆ m_logcmd
| QString MythSystemLegacy::m_logcmd |
|
protected |
◆ m_nice
| int MythSystemLegacy::m_nice {0} |
|
protected |
◆ m_semReady
| QSemaphore MythSystemLegacy::m_semReady |
|
protected |
◆ m_settings
| Setting MythSystemLegacy::m_settings |
|
protected |
◆ m_status
◆ m_stdbuff
| std::array<QBuffer,3> MythSystemLegacy::m_stdbuff |
|
protected |
The documentation for this class was generated from the following files: