|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Functions | |
| std::vector< std::unique_ptr< GuiIntegration > > & | integrations () |
| The registered integrations, in registration order. | |
| template<typename T> | |
| bool | answered (const Expected< T > &result) |
Whether result is an answer (a value or a failure), not "not handled". | |
| template<typename Hook> | |
| auto | ask (Hook hook) -> decltype(hook(std::declval< GuiIntegration & >())) |
Asks every integration, in order, with hook, and returns the first answer: a value or a failure. | |
| bool | isNormalWindow (const QWindow *w) |
Whether w is an ordinary window (not a popup, tooltip, ...). | |
| void | ensureObjectTreeProviders () |
| Registers the GUI roots/children providers with ObjectTree once. | |
| QWindow * | defaultWindow (const QList< QWindow * > &visible) |
| The window to use when none is named: focus window, modal window, first visible normal window, or any visible window. | |
| template<typename Predicate> | |
| QWindow * | firstWindow (const QList< QWindow * > &windows, Predicate matches) |
The first of windows for which matches is true, or nullptr. | |
| QWindow * | windowByName (const QString &s, const QList< QWindow * > &visible) |
| A window named by id, exact title, objectName or partial title (in that order). | |
| Expected< QWindow * > | windowOfObject (const QString &s) |
The window that shows the object named by object spec s. | |
| auto Sonde::Gui::anonymous_namespace{guiintegration.cpp}::ask | ( | Hook | hook | ) | -> decltype(hook(std::declval< GuiIntegration & >())) |
Asks every integration, in order, with hook, and returns the first answer: a value or a failure.
notHandled() if none handles it.