|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Private: where the QML template libraries and the trust file are, and the trust store (designs 0023 and 0030). More...
#include <QtCore/QHash>#include <sonde/sonde_core_export.h>#include <QtCore/QList>#include <QtCore/QString>#include <QtCore/QStringList>#include <optional>Go to the source code of this file.
Classes | |
| struct | Sonde::Trust::Locations |
| Where the libraries and the trust file are. More... | |
| struct | Sonde::Trust::Start |
| A directory to search upwards from for the project library, and how to say so. More... | |
| struct | Sonde::Trust::TrustedFile |
| A file to trust: how it is named, where it is, and its content's hash. More... | |
| struct | Sonde::Trust::Entry |
| One grant in the trust store. More... | |
| class | Sonde::Trust::TrustStore |
| The trust store: which file contents the user trusts, and where. More... | |
Namespaces | |
| namespace | Sonde |
| Embeddable Model Context Protocol server for Qt applications. | |
Enumerations | |
| enum class | Sonde::Trust::Library { Project , User } |
| The two libraries. More... | |
Functions | |
| QString | Sonde::Trust::libraryName (Library library) |
| "project" or "user". | |
| QString | Sonde::Trust::configDirectory () |
| Sonde's configuration directory: $XDG_CONFIG_HOME/sonde if that is set to an absolute path (on every platform), otherwise ~/.config/sonde (Linux and macOS alike) or LOCALAPPDATA%/sonde (Windows). | |
| QString | Sonde::Trust::canonicalOrClean (const QString &path) |
path made canonical if it exists, otherwise only absolute and clean. | |
| Locations | Sonde::Trust::locate (const QList< Start > &starts) |
| Finds the libraries and the trust file now (the environment may change). | |
| QString | Sonde::Trust::filePath (const QString &directory, const QString &name, bool component) |
The file of template or component name in directory. | |
| QString | Sonde::Trust::sha256 (const QByteArray &data) |
The SHA-256 of data, in hex. | |
Private: where the QML template libraries and the trust file are, and the trust store (designs 0023 and 0030).
In Core, not Quick, because the sonde command reads and writes them too, and must agree with the application.
|
strong |
| Locations Sonde::Trust::locate | ( | const QList< Start > & | starts | ) |
Finds the libraries and the trust file now (the environment may change).
SONDE_QML_LIBRARY names the project library; otherwise it is the first .sonde/qml/ above any of starts, in order, else .sonde/qml/ in the first checkout (a directory with .sonde or .git) above them. SONDE_TRUST_FILE names the trust file.