MythTV
master
|
Public Member Functions | |
~MythSystemLegacyWrapper (void) override | |
uint | GetFlags (void) const override |
Returns the flags passed to the constructor. More... | |
QString | GetStartingPath (void) const override |
Returns the starting path of the program. More... | |
Priority | GetCPUPriority (void) const override |
Return the CPU Priority of the program. More... | |
Priority | GetDiskPriority (void) const override |
Return the Disk Priority of the program. More... | |
bool | Wait (std::chrono::milliseconds timeout) override |
Blocks until child process is collected or timeout reached. More... | |
QIODevice * | GetStandardInputStream (void) override |
Returns the standard input stream for the program if the kMSStdIn flag was passed to the constructor. More... | |
QIODevice * | GetStandardOutputStream (void) override |
Returns the standard output stream for the program if the kMSStdOut flag was passed to the constructor. More... | |
QIODevice * | GetStandardErrorStream (void) override |
Returns the standard error stream for the program if the kMSStdErr flag was passed to the constructor. More... | |
void | Signal (MythSignal sig) override |
Sends the selected signal to the program. More... | |
int | GetExitCode (void) const override |
returns the exit code, if any, that the program returned. More... | |
Public Member Functions inherited from MythSystem | |
virtual | ~MythSystem (void)=default |
MythSystem (const MythSystem &)=delete | |
MythSystem & | operator= (const MythSystem &)=delete |
Static Public Member Functions | |
static MythSystemLegacyWrapper * | Create (const QStringList &args, uint flags, const QString &startPath, Priority, Priority) |
Static Public Member Functions inherited from MythSystem | |
static MythSystem * | Create (const QStringList &args, uint flags=kMSNone, const QString &startPath=QString(), Priority cpuPriority=kInheritPriority, Priority diskPriority=kInheritPriority) |
static MythSystem * | Create (const QString &args, uint flags=kMSNone, const QString &startPath=QString(), Priority cpuPriority=kInheritPriority, Priority diskPriority=kInheritPriority) |
Private Member Functions | |
MythSystemLegacyWrapper (MythSystemLegacy *legacy, uint flags) | |
Private Attributes | |
QScopedPointer< MythSystemLegacy > | m_legacy |
uint | m_flags |
Additional Inherited Members | |
Public Types inherited from MythSystem | |
enum | Priority { kIdlePriority = 0, kLowestPriority, kLowPriority, kNormalPriority, kHighPriority, kHighestPriority, kTimeCriticalPriority, kInheritPriority } |
Priorities that can be used for cpu and disk usage of child process. More... | |
Protected Member Functions inherited from MythSystem | |
MythSystem ()=default | |
Definition at line 38 of file mythsystem.cpp.
|
inlineoverride |
Definition at line 69 of file mythsystem.cpp.
|
inlineprivate |
Definition at line 190 of file mythsystem.cpp.
Referenced by Create().
|
inlinestatic |
Definition at line 41 of file mythsystem.cpp.
Referenced by MythSystem::Create().
|
inlineoverridevirtual |
Returns the flags passed to the constructor.
Implements MythSystem.
Definition at line 74 of file mythsystem.cpp.
|
inlineoverridevirtual |
Returns the starting path of the program.
Implements MythSystem.
Definition at line 80 of file mythsystem.cpp.
|
inlineoverridevirtual |
Return the CPU Priority of the program.
Implements MythSystem.
Definition at line 86 of file mythsystem.cpp.
|
inlineoverridevirtual |
Return the Disk Priority of the program.
Implements MythSystem.
Definition at line 92 of file mythsystem.cpp.
|
inlineoverridevirtual |
Blocks until child process is collected or timeout reached.
Returns true if program has exited and has been collected. WARNING if program returns 142 then we will forever think it is running even though it is not. WARNING The legacy timeout is in seconds not milliseconds, timeout will be rounded.
Implements MythSystem.
Definition at line 103 of file mythsystem.cpp.
Referenced by GetStandardErrorStream(), GetStandardOutputStream(), and ~MythSystemLegacyWrapper().
|
inlineoverridevirtual |
Returns the standard input stream for the program if the kMSStdIn flag was passed to the constructor.
Note: This is not safe!
Implements MythSystem.
Definition at line 114 of file mythsystem.cpp.
|
inlineoverridevirtual |
Returns the standard output stream for the program if the kMSStdOut flag was passed to the constructor.
Implements MythSystem.
Definition at line 130 of file mythsystem.cpp.
|
inlineoverridevirtual |
Returns the standard error stream for the program if the kMSStdErr flag was passed to the constructor.
Implements MythSystem.
Definition at line 148 of file mythsystem.cpp.
|
inlineoverridevirtual |
Sends the selected signal to the program.
Implements MythSystem.
Definition at line 165 of file mythsystem.cpp.
|
inlineoverridevirtual |
returns the exit code, if any, that the program returned.
Returns -1 if the program exited without exit code. Returns -2 if the program has not yet been collected. Returns an exit code 0..255 if the program exited with exit code.
Implements MythSystem.
Definition at line 176 of file mythsystem.cpp.
|
private |
Definition at line 197 of file mythsystem.cpp.
Referenced by GetExitCode(), GetStandardErrorStream(), GetStandardInputStream(), GetStandardOutputStream(), GetStartingPath(), MythSystemLegacyWrapper(), Signal(), and Wait().
|
private |
Definition at line 198 of file mythsystem.cpp.
Referenced by GetFlags(), GetStandardErrorStream(), GetStandardInputStream(), and GetStandardOutputStream().