Serves daemon status and config requests over a local socket.
More...
#include <daemoncontrolserver.h>
|
| | DaemonControlServer (QString configPath, AppConfig config, const MutterkeyService *service, QObject *parent=nullptr) |
| | Creates the local control server for a running daemon.
|
| |
| | DaemonControlServer (QString configPath, AppConfig config, const MutterkeyService *service, QString socketName, QObject *parent) |
| | Creates the local control server for a running daemon on a custom socket name.
|
| |
|
| ~DaemonControlServer () override |
| | Stops the local server and releases the socket name.
|
| |
| bool | start (QString *errorMessage=nullptr) |
| | Starts listening on the local daemon control socket.
|
| |
|
void | stop () |
| | Stops listening and removes the local socket endpoint.
|
| |
Serves daemon status and config requests over a local socket.
Definition at line 20 of file daemoncontrolserver.h.
◆ DaemonControlServer() [1/2]
| DaemonControlServer::DaemonControlServer |
( |
QString |
configPath, |
|
|
AppConfig |
config, |
|
|
const MutterkeyService * |
service, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
Creates the local control server for a running daemon.
- Parameters
-
| configPath | Resolved daemon config path. |
| config | Startup config snapshot exposed through the control API. |
| service | Non-owning pointer to the running daemon service. |
| parent | Optional QObject parent. |
◆ DaemonControlServer() [2/2]
| DaemonControlServer::DaemonControlServer |
( |
QString |
configPath, |
|
|
AppConfig |
config, |
|
|
const MutterkeyService * |
service, |
|
|
QString |
socketName, |
|
|
QObject * |
parent |
|
) |
| |
|
explicit |
Creates the local control server for a running daemon on a custom socket name.
- Parameters
-
| configPath | Resolved daemon config path. |
| config | Startup config snapshot exposed through the control API. |
| service | Non-owning pointer to the running daemon service. |
| socketName | Injected local socket name for deterministic tests or alternate local control endpoints. |
| parent | Optional QObject parent. |
◆ start()
| bool DaemonControlServer::start |
( |
QString * |
errorMessage = nullptr | ) |
|
Starts listening on the local daemon control socket.
- Parameters
-
| errorMessage | Optional output for startup failures. |
- Returns
true when the server is listening.
The documentation for this class was generated from the following file: