|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
This checkout's endpoints, with {instance} resolved (designs 0018 and 0019), and asking a running copy which port it took. More...
#include "project.h"#include <QtCore/QJsonObject>#include <QtCore/QList>#include <QtCore/QString>#include <QtCore/QStringList>#include <optional>#include <utility>Go to the source code of this file.
Classes | |
| class | Sonde::Cli::Endpoints |
| This checkout's endpoints, with {instance} resolved. More... | |
Namespaces | |
| namespace | Sonde |
| Embeddable Model Context Protocol server for Qt applications. | |
Functions | |
| QString | Sonde::Cli::realPath (const QString &path) |
path absolute, with links resolved, as Python's os.path.realpath() gives it: canonical if it exists, otherwise its longest existing parent made canonical, followed by the rest. | |
| QString | Sonde::Cli::resolveProgram (const QString &name, const QString &root) |
The program name refers to, from root or PATH, or an empty string. | |
| QString | Sonde::Cli::bundleBinary (const QString &path) |
The executable inside the macOS application bundle path (a directory ending in .app), or path. | |
| std::optional< QString > | Sonde::Cli::applicationPath (const QJsonObject &config, const QString &root) |
| The application's canonical path, as the application sees it, or nothing if it can't be found: "executable", or else the program of "run". | |
| bool | Sonde::Cli::httpReady (quint16 port) |
Whether something accepts connections on port port of 127.0.0.1. | |
| std::optional< QJsonObject > | Sonde::Cli::appInfoOverHttp (quint16 port) |
app_info's structured result from the Sonde server on port port, or nothing. | |
| std::optional< QJsonObject > | Sonde::Cli::appInfoOverSocket (const QString &name) |
app_info's structured result from the Sonde server on local socket name, or nothing. | |
| void | Sonde::Cli::showEndpoint (const QJsonObject &config, const Project &project) |
| sonde endpoint: prints this checkout's endpoints, and writes endpoint.json. | |
This checkout's endpoints, with {instance} resolved (designs 0018 and 0019), and asking a running copy which port it took.
| QString Sonde::Cli::resolveProgram | ( | const QString & | name, |
| const QString & | root ) |
The program name refers to, from root or PATH, or an empty string.
On Windows a path may leave out .exe; the result has it.