|
JS8Call-Improved master
|
Manage an external decoder process and forward its I/O. More...
#include <Decoder.h>


Public Slots | |
| void | start (QString path, QStringList args) |
| Launch the external decoder process. | |
| void | quit () |
| Request the running process to quit. | |
| QProcess * | process () const |
| Return the underlying QProcess instance, if any. | |
Signals | |
| void | ready (QByteArray t) |
| void | error (int errorCode, QString errorString) |
| void | finished (int exitCode, int statusCode, QString errorString) |
Public Member Functions | |
| ~Worker () | |
Manage an external decoder process and forward its I/O.
Worker encapsulates the lifetime and I/O of an external decoder process. It exposes slots to start and stop the process and emits signals when data is ready on stdout, when an error occurs, and when the process finishes.
| Worker::~Worker | ( | ) |
Destroy the worker and ensure the subprocess is cleaned up.
|
signal |
Emitted when the process reports an error.

|
signal |
Emitted when the process exits.

|
inlineslot |
Return the underlying QProcess instance, if any.
|
signal |
Emitted when the process has produced stdout data.

|
slot |
Launch the external decoder process.
| path | Path to the decoder executable. |
| args | Arguments passed to the process. |
