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

Functions

bool parseObjectSlot (const QString &value, ObjectSlot *slot, QString *error)
 Parses an object: header value, "name[?] = spec", into slot.
qsizetype jsonValueEnd (QStringView s, qsizetype from)
 Where the JSON value that starts at from in s ends (one past it), or -1 if it doesn't end.
bool parseParamSlot (const QString &value, ParamSlot *slot, QString *error)
 Parses a param: header value, "name = <JSON> <description>", into slot.
bool addHeaderLine (const QString &key, const QString &value, Header *header, QString *error)
 Adds the header line key: value to header.
bool isInside (const QString &path, const QString &directory)
 Whether path is directory or inside it (both canonical).
QList< CompiledLibrary > & applicationLibraries ()
 The libraries the application registered, in order (the GUI thread's).

Variables

constexpr QStringView kMarker = u"// sonde-template"
 The first line of every template.
constexpr qsizetype kMaxNameLength = 64
 Longest template or component name.
constexpr QStringView kSondeLibraryRoot = u":/sonde/instruments"
 Sonde's own compiled-in library: the instruments (design 0034).

Function Documentation

◆ jsonValueEnd()

qsizetype Sonde::QmlTemplates::anonymous_namespace{qmltemplates.cpp}::jsonValueEnd ( QStringView s,
qsizetype from )

Where the JSON value that starts at from in s ends (one past it), or -1 if it doesn't end.

Strings and brackets are followed, so the text after the value (a setting's description) needs no separator.