Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::Cli::anonymous_namespace{endpoints.cpp} Namespace Reference

Functions

bool truthy (const QJsonValue &value)
 Whether value is true in Python's sense (not null, false, 0 or empty).
QJsonValue programName (const QJsonObject &config)
 "executable" if it is set, otherwise the program of "run".
QString bundleExecutableFromXml (const QByteArray &data)
 The value of CFBundleExecutable in the XML property list data, or empty.
std::optional< QJsonObject > structured (const QJsonObject &reply)
 The structured result of a tools/call reply, or nothing.
QJsonObject initializeRequest ()
 The initialize request sonde sends to ask for app_info.
QJsonObject appInfoRequest ()
 The tools/call request for app_info.
QByteArray compact (const QJsonObject &object)
 object as compact JSON.
quint16 portOf (const QString &url)
 The port in url ("http://host:port/path"), or 0.

Variables

constexpr int kConnectTimeoutMs = 500
 How long to wait for a connection to a port, in milliseconds.
constexpr int kAppInfoTimeoutMs = 3000
 How long to wait for app_info, in milliseconds.