Typed daemon-control payloads used above the transport layer.
More...
#include "config.h"
#include <QJsonObject>
#include <QString>
Go to the source code of this file.
Typed daemon-control payloads used above the transport layer.
Definition in file daemoncontroltypes.h.
◆ daemonConfigSnapshotToJsonObject()
Converts a typed daemon config snapshot to its transport JSON shape.
- Parameters
-
| snapshot | Snapshot to serialize. |
- Returns
- JSON object suitable for the daemon control protocol payload.
◆ daemonStatusSnapshotToJsonObject()
Converts a typed daemon status snapshot to its transport JSON shape.
- Parameters
-
| snapshot | Snapshot to serialize. |
- Returns
- JSON object suitable for the daemon control protocol payload.
◆ parseDaemonConfigSnapshot()
| bool parseDaemonConfigSnapshot |
( |
const QJsonObject & |
object, |
|
|
DaemonConfigSnapshot * |
snapshotOut, |
|
|
QString * |
errorMessage = nullptr |
|
) |
| |
Parses a typed daemon config snapshot from a protocol payload object.
- Parameters
-
| object | JSON object returned by the daemon control protocol. |
| snapshotOut | Output target for the parsed snapshot. |
| errorMessage | Optional output for parse failures. |
- Returns
true when the payload is valid.
◆ parseDaemonStatusSnapshot()
| bool parseDaemonStatusSnapshot |
( |
const QJsonObject & |
object, |
|
|
DaemonStatusSnapshot * |
snapshotOut, |
|
|
QString * |
errorMessage = nullptr |
|
) |
| |
Parses a typed daemon status snapshot from a protocol payload object.
- Parameters
-
| object | JSON object returned by the daemon control protocol. |
| snapshotOut | Output target for the parsed snapshot. |
| errorMessage | Optional output for parse failures. |
- Returns
true when the payload is valid.