|
|
QQmlEngine * | engine () |
| | The engine the windows run in, created on first use, with the library guard.
|
|
void | clearCache () |
| | Forgets compiled QML, so the next load reads the files (and checks them) again.
|
|
bool | compiles (const QByteArray &data, const QString &path, QString *error) |
| | Compiles data as the file path would be, without creating it.
|
|
void | openTemplate (const ToolCall &call, int round) |
| | ui_open with a template; round counts the trust requests so far.
|
|
void | askForTrust (const ToolCall &call, const QList< TrustFile > &files, int round) |
| | Asks the application's user to trust files, or refuses the call.
|
| ToolResult | openWindow (const QJsonObject &args, const QmlSource &source, const QList< WindowObject > &objects, const QJsonObject ¶ms, QList< TrustFile > *untrusted) |
| | Creates and shows a window from source.
|
|
qsizetype | indexOf (const QString &spec, QString *error) const |
| | The index of the window named by spec (id, title or objectName) among ours, or -1 with error set.
|
|
qsizetype | replacedIndex (const QJsonObject &args, QString *error) const |
| | The index of the window the "replace" argument names, -1 if none (with error set if invalid).
|
| QUrl | findVisualiser (const QString &typeName) |
| | The first components/values/<type>.qml for values of type typeName in the project, user and compiled-in libraries; a file on disk only if it is trusted.
|
| QObject * | create (const QmlSource &source, QQmlContext *context, QString *error) |
| | Compiles and creates source in context.
|
|
void | show (QQuickWindow *w, const QJsonObject &args, const QString &defaultTitle) |
| | Applies the title, size and flags, sets the transient parent, and shows w.
|
|
void | forget (const QQuickWindow *window) |
| | Forgets the window window (closed by the user) and deletes it later.
|
|
| static std::optional< QList< WindowObject > > | windowObjects (const QJsonObject &objects, const QList< ObjectSlot > &defaults, QString *error) |
| | The objects to give a window: defaults (a template's), replaced or added to by the call's objects.
|
| static Expected< void > | addObjects (const QList< WindowObject > &objects, OpenWindow *w, QStringList *missing, QVariantMap *byName) |
| | Makes objects context properties of w; optional ones not found are null and listed in missing.
|
|
static QQuickWindow * | windowFor (QObject *root) |
| | The window to show for root: root itself, or a new window holding the Item.
|
|
static QWindow * | applicationWindow () |
| | The application's own main or focused window (not one of ours), or nullptr.
|
|
static ToolResult | reply (const OpenWindow &w, const QStringList ¬es, const QStringList &warnings) |
| | The reply to ui_open.
|
|
static void | destroy (const OpenWindow &w) |
| | Destroys w's window (and with it the QML objects) and context.
|
|
|
Server * | m_server |
| | The server whose event sources the windows see.
|
|
QmlEventBridge * | m_bridge |
| | The sonde context property (a child).
|
|
QmlTemplateTrust * | m_trust |
| | Asks the application's user for trust (a child of the server).
|
|
LibraryGuard | m_guard |
| | Checks library files as the engine loads them.
|
|
QQmlEngine * | m_engine = nullptr |
| | Engine for the windows (a child), created on first use.
|
|
QList< OpenWindow > | m_windows |
| | Open windows, oldest first.
|
|
QTimer | m_followTimer |
| | Picks up event sources added later, while windows are open.
|
|
int | m_created = 0 |
| | Windows created so far, for names.
|
The windows ui_open opened, their engine, and the tools' logic.