One extension's scoped UI projection over a shared native MDI tracker.
More...
#include <extensionactivityui.h>
|
| struct | Data |
| | Private scoped native records and copied metadata for one host lifetime. More...
|
| |
|
| | ExtensionActivityUi (GuiExtensionHost *host, ExtensionStateRegistry *registry, const QUuid &ownerId, const QString &pluginId, QMainWindow *window, QMdiArea *mdi, const ExtensionUiBridge &callbacks) |
| | Install native observers and copy initial scoped metadata.
|
| |
| | ~ExtensionActivityUi () override |
| | Stop all per-host observation before releasing private metadata.
|
| |
| QUuid | windowId () const |
| | Read the identity established during construction.
|
| |
| void | registerCommand (const QString &id, QAction *action) |
| | Track an explicitly registered own action after native registration succeeds.
|
| |
| void | removeCommand (const QString &id) |
| | Retire an own action registration without deleting its QAction.
|
| |
| void | registerDock (const QString &id, QDockWidget *dock) |
| | Track an explicitly mounted own dock.
|
| |
| void | removeDock (const QString &id) |
| | Retire an own dock registration before native destruction.
|
| |
| void | attachDocument (QMdiSubWindow *sub, const QUuid &sessionId, const QString &ownerPluginId) |
| | Annotate an already mounted extension document in the canonical MDI tracker.
|
| |
| bool | execute (const OpenSWMM::Sdk::UiActivityCommand &command, QString *error) |
| | Validate runtime target identities and invoke a supported native UI route.
|
| |
| void | stop () |
| | Disconnect per-host hooks and suppress all later publication.
|
| |
One extension's scoped UI projection over a shared native MDI tracker.
◆ ExtensionActivityUi()
Install native observers and copy initial scoped metadata.
- Parameters
-
| [in] | host | Borrowed host and QObject parent. |
| [in] | registry | Shared application registry, guarded through teardown. |
| [in] | ownerId | Private host-lifetime scope. |
| [in] | pluginId | Configured extension identity for document ownership metadata. |
| [in] | window | Borrowed main window. |
| [in] | mdi | Borrowed central document area, possibly null. |
| [in] | callbacks | Native approved-command catalogue and controller callbacks. |
◆ ~ExtensionActivityUi()
| openswmmvis::ExtensionActivityUi::~ExtensionActivityUi |
( |
| ) |
|
|
override |
Stop all per-host observation before releasing private metadata.
◆ attachDocument()
| void openswmmvis::ExtensionActivityUi::attachDocument |
( |
QMdiSubWindow * |
sub, |
|
|
const QUuid & |
sessionId, |
|
|
const QString & |
ownerPluginId |
|
) |
| |
Annotate an already mounted extension document in the canonical MDI tracker.
- Parameters
-
| [in] | sub | Native current MDI member. |
| [in] | sessionId | Explicit associated model lifetime, null for independent utility views. |
| [in] | ownerPluginId | Owning extension identity. |
◆ execute()
Validate runtime target identities and invoke a supported native UI route.
- Parameters
-
| [in] | command | Current window/document/dock/command request. |
| [out] | error | Optional refusal diagnostic, cleared on success. |
- Returns
- True for accepted/no-op, false for unavailable/stale/foreign targets.
◆ registerCommand()
| void openswmmvis::ExtensionActivityUi::registerCommand |
( |
const QString & |
id, |
|
|
QAction * |
action |
|
) |
| |
Track an explicitly registered own action after native registration succeeds.
- Parameters
-
| [in] | id | Extension-local command key. |
| [in] | action | Borrowed current QAction. |
◆ registerDock()
| void openswmmvis::ExtensionActivityUi::registerDock |
( |
const QString & |
id, |
|
|
QDockWidget * |
dock |
|
) |
| |
Track an explicitly mounted own dock.
- Parameters
-
| [in] | id | Extension-local dock key. |
| [in] | dock | Borrowed native dock. |
◆ removeCommand()
| void openswmmvis::ExtensionActivityUi::removeCommand |
( |
const QString & |
id | ) |
|
Retire an own action registration without deleting its QAction.
- Parameters
-
| [in] | id | Extension-local key. |
◆ removeDock()
| void openswmmvis::ExtensionActivityUi::removeDock |
( |
const QString & |
id | ) |
|
Retire an own dock registration before native destruction.
- Parameters
-
| [in] | id | Extension-local key. |
◆ stop()
| void openswmmvis::ExtensionActivityUi::stop |
( |
| ) |
|
Disconnect per-host hooks and suppress all later publication.
- Note
- The shared window-owned MDI tracker remains available to other hosts.
◆ windowId()
| QUuid openswmmvis::ExtensionActivityUi::windowId |
( |
| ) |
const |
Read the identity established during construction.
- Returns
- Main-window UUID, null without a window.
The documentation for this class was generated from the following files: