|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Functions | |
| QString | pidFile (const Project &project) |
| .sonde/state/pid: the pid sonde started, and when that process started. | |
| QString | appLog (const Project &project) |
| .sonde/state/app.log: the application's output. | |
| QString | buildLog (const Project &project) |
| .sonde/state/build.log: the build's output. | |
| QString | relativePath (const QString &path) |
path relative to the working directory, as Python's os.path.relpath() gives it. | |
| QString | programFor (const QString &name, const QString &root, const QProcessEnvironment &env) |
The program name names, for a process started in root with env: as Python's subprocess finds it, a path relative to root, or else from the PATH in env. | |
| qint64 | exitStatusOf (const QProcess &process) |
| A finished process's exit status as Python reports it: its exit code, or minus the signal that ended it (POSIX). | |
| void | writePid (const Project &project, qint64 pid) |
Records pid, with when it started, as the one sonde started. | |
| std::optional< qint64 > | readPid (const Project &project) |
| The pid sonde started, if that process is still the one running under it. | |
| bool | localSocketReady (const QString &name) |
Whether something accepts connections on local socket name. | |
| QStringList | alreadyAnswering (const Endpoints &ends) |
The endpoints of ends that answer although the copy sonde started is stopped: another process holds them. | |
| QString | whoHolds (const Endpoints &ends) |
Which application holds the endpoints of ends, if it is a Sonde application that answers; otherwise an empty string. | |
| QStringList | listenErrors (const Project &project) |
| Sonde's warnings about listeners that failed to start, from the application's output. | |
| void | build (const QJsonObject &config, const Project &project) |
| Runs the build in "build", if there is one; exits with 2 if it fails. | |
| QProcessEnvironment | applicationEnvironment (const QJsonObject &config) |
The environment the application gets: sonde's, with "env" and the endpoints of config. | |
| QProcess * | startApplication (const QJsonObject &config, const Project &project, const QString &log) |
Starts the application with its output in log; exits with 1 if it can't. | |
| double | readyTimeout (const QJsonObject &config) |
| "readyTimeout": how long to wait for the application to listen, in seconds. | |