96 const QStringList &
args,
98 const QString& startPath = QString(),
99 Priority cpuPriority = kInheritPriority,
100 Priority diskPriority = kInheritPriority);
105 const QString& startPath = QString(),
106 Priority cpuPriority = kInheritPriority,
107 Priority diskPriority = kInheritPriority);
class for managing sub-processes.
virtual bool Wait(std::chrono::milliseconds timeout=0ms)=0
Blocks until child process is collected or timeout reached.
virtual QString GetStartingPath(void) const =0
Returns the starting path of the program.
MythSystem(const MythSystem &)=delete
virtual uint GetFlags(void) const =0
Returns the flags passed to the constructor.
virtual QIODevice * GetStandardErrorStream(void)=0
Returns the standard error stream for the program if the kMSStdErr flag was passed to the constructor...
virtual QIODevice * GetStandardOutputStream(void)=0
Returns the standard output stream for the program if the kMSStdOut flag was passed to the constructo...
Priority
Priorities that can be used for cpu and disk usage of child process.
@ kNormalPriority
run as a normal program
@ kInheritPriority
Use parent priority.
virtual Priority GetCPUPriority(void) const =0
Return the CPU Priority of the program.
virtual void Signal(MythSignal)=0
Sends the selected signal to the program.
virtual int GetExitCode(void) const =0
returns the exit code, if any, that the program returned.
virtual ~MythSystem(void)=default
virtual Priority GetDiskPriority(void) const =0
Return the Disk Priority of the program.
virtual QIODevice * GetStandardInputStream(void)=0
Returns the standard input stream for the program if the kMSStdIn flag was passed to the constructor.
@ kMSDontBlockInputDevs
avoid blocking LIRC & Joystick Menu
@ kMSProcessEvents
process events while waiting
@ kMSStdIn
allow access to stdin
@ kMSStdErr
allow access to stderr
@ kMSPropagateLogs
add arguments for MythTV log propagation
@ kMSStdOut
allow access to stdout
@ kMSLowExitVal
allow exit values 0-127 only
@ kMSRunShell
run process through shell
@ kMSDisableUDPListener
disable MythMessage UDP listener for the duration of application.
@ kMSAnonLog
anonymize the logs
@ kMSRunBackground
run child in the background
@ kMSDontDisableDrawing
avoid disabling UI drawing
@ kMSAutoCleanup
automatically delete if backgrounded