|
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 |
| virtual uint | GetFlags (void) const =0 |
| Returns the flags passed to the constructor. More... | |
| virtual QString | GetStartingPath (void) const =0 |
| Returns the starting path of the program. More... | |
| virtual Priority | GetCPUPriority (void) const =0 |
| Return the CPU Priority of the program. More... | |
| virtual Priority | GetDiskPriority (void) const =0 |
| Return the Disk Priority of the program. More... | |
| virtual bool | Wait (std::chrono::milliseconds timeout=0ms)=0 |
| Blocks until child process is collected or timeout reached. More... | |
| virtual QIODevice * | GetStandardInputStream (void)=0 |
| Returns the standard input stream for the program if the kMSStdIn flag was passed to the constructor. More... | |
| virtual QIODevice * | GetStandardOutputStream (void)=0 |
| Returns the standard output stream for the program if the kMSStdOut flag was passed to the constructor. More... | |
| virtual QIODevice * | GetStandardErrorStream (void)=0 |
| Returns the standard error stream for the program if the kMSStdErr flag was passed to the constructor. More... | |
| virtual void | Signal (MythSignal)=0 |
| Sends the selected signal to the program. More... | |
| virtual int | GetExitCode (void) const =0 |
| returns the exit code, if any, that the program returned. More... | |
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 : std::uint8_t { 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 39 of file mythsystem.cpp.
|
inlineoverride |
Definition at line 70 of file mythsystem.cpp.
|
inlineprivate |
Definition at line 195 of file mythsystem.cpp.
Referenced by Create().
|
inlinestatic |
Definition at line 42 of file mythsystem.cpp.
Referenced by MythSystem::Create().
|
inlineoverridevirtual |
Return the CPU Priority of the program.
Implements MythSystem.
Definition at line 87 of file mythsystem.cpp.
|
inlineoverridevirtual |
Return the Disk Priority of the program.
Implements MythSystem.
Definition at line 93 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 181 of file mythsystem.cpp.
|
inlineoverridevirtual |
Returns the flags passed to the constructor.
Implements MythSystem.
Definition at line 75 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 153 of file mythsystem.cpp.
|
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 119 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 135 of file mythsystem.cpp.
|
inlineoverridevirtual |
Returns the starting path of the program.
Implements MythSystem.
Definition at line 81 of file mythsystem.cpp.
|
inlineoverridevirtual |
Sends the selected signal to the program.
Implements MythSystem.
Definition at line 170 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 104 of file mythsystem.cpp.
Referenced by GetStandardErrorStream(), GetStandardOutputStream(), and ~MythSystemLegacyWrapper().
|
private |
Definition at line 203 of file mythsystem.cpp.
Referenced by GetFlags(), GetStandardErrorStream(), GetStandardInputStream(), and GetStandardOutputStream().
|
private |
Definition at line 202 of file mythsystem.cpp.
Referenced by GetExitCode(), GetStandardErrorStream(), GetStandardInputStream(), GetStandardOutputStream(), GetStartingPath(), MythSystemLegacyWrapper(), Signal(), and Wait().