![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <launch_manager.hpp>


Classes | |
| struct | ExtraData |
Public Types | |
| enum class | Type { None = 0 , Preview , Run , Query } |
Signals | |
| void | processOutputLine (std::string_view sv) |
| void | processOutputRead (QString str) |
| void | processTerminated (int code, QProcess::ExitStatus es, bool wasRequested) |
Public Member Functions | |
| LaunchContext () | |
| void | terminate () |
Public Attributes | |
| QStringList | args |
| QString | executablePath |
| std::unique_ptr< ExtraData > | extraData |
| LineBuffer | lineBuf |
| QProcess | process |
| Type | type = Type::None |
Private Slots | |
| void | processOutput () |
| void | processTerminationHandler (int code, QProcess::ExitStatus es) |
Private Attributes | |
| QTimer | killTimer |
| bool | terminationRequested = false |
Static Private Attributes | |
| static constexpr int | terminateTimeoutMs = 1000 |
Definition at line 11 of file launch_manager.hpp.
|
strong |
| LaunchContext::LaunchContext | ( | ) |
Definition at line 76 of file launch_manager.cpp.
References killTimer, process, processOutput(), and processTerminationHandler().

|
privateslot |
Definition at line 91 of file launch_manager.cpp.
References LineBuffer::hasLine(), lineBuf, LineBuffer::peek(), LineBuffer::pop(), process, processOutputLine(), processOutputRead(), and LineBuffer::write().
Referenced by LaunchContext().

|
signal |
Referenced by processOutput().
|
signal |
Referenced by processOutput().
|
signal |
|
privateslot |
Definition at line 87 of file launch_manager.cpp.
References processTerminated(), and terminationRequested.
Referenced by LaunchContext().

| void LaunchContext::terminate | ( | ) |
Definition at line 104 of file launch_manager.cpp.
References killTimer, process, terminateTimeoutMs, and terminationRequested.
| QStringList LaunchContext::args |
Definition at line 29 of file launch_manager.hpp.
| QString LaunchContext::executablePath |
Definition at line 28 of file launch_manager.hpp.
| std::unique_ptr<ExtraData> LaunchContext::extraData |
Definition at line 32 of file launch_manager.hpp.
|
private |
Definition at line 43 of file launch_manager.hpp.
Referenced by LaunchContext(), and terminate().
| LineBuffer LaunchContext::lineBuf |
Definition at line 31 of file launch_manager.hpp.
Referenced by processOutput().
| QProcess LaunchContext::process |
Definition at line 30 of file launch_manager.hpp.
Referenced by LaunchContext(), processOutput(), and terminate().
|
staticconstexprprivate |
Definition at line 42 of file launch_manager.hpp.
Referenced by terminate().
|
private |
Definition at line 44 of file launch_manager.hpp.
Referenced by processTerminationHandler(), and terminate().
| Type LaunchContext::type = Type::None |
Definition at line 27 of file launch_manager.hpp.