|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Functions | |
| QStringList | libraryNames (const QString &dir, bool component) |
The names of the templates in dir, or with component of its components, value visualisers (components/values/, as "values/<Type>") included. | |
| QList< LibraryFile > | scanLibraries (const Locations &where) |
| Every template and component in every library, in the order ui_open searches them: project, user, then the compiled-in ones. | |
| QString | paramsText (const LibraryFile &f) |
f's settings as "name = default (description)" text, or empty. | |
| QString | listLine (const LibraryFile &f) |
One line describing f, for ui_template_list. | |
| QJsonObject | listJson (const LibraryFile &f) |
f as JSON, for ui_template_list' structured content. | |
| QString | projectLibraryLine (const Locations &where) |
| Where the project library is, or why there is none, for replies. | |
| std::optional< Library > | libraryArgument (const QJsonObject &args, QString *error) |
The library an argument names ("project" by default), or nothing with error set. | |
| ToolResult | readTemplate (const QJsonObject &args, const Locations &where) |
| ui_template_list with a name: that file's source. | |
| bool | writeFile (const QString &path, const QByteArray &data, QString *error) |
Writes data to path, creating its directory. | |
| ToolResult | listTemplates (const QJsonObject &args) |
| The ui_template_list tool. | |
| ToolResult | saveTemplate (const TemplateEngine &engine, const QJsonObject &args) |
| The ui_template_save tool. | |
| ToolResult | deleteTemplate (const TemplateEngine &engine, const QJsonObject &args) |
| The ui_template_delete tool. | |
| QList< LibraryFile > Sonde::anonymous_namespace{qmltemplatetools.cpp}::scanLibraries | ( | const Locations & | where | ) |
Every template and component in every library, in the order ui_open searches them: project, user, then the compiled-in ones.
A template is hidden by one of the same name in an earlier library.