Albert
|
#include <albert/extensionwatcher.h>
Non-QObject extension registry observer.
Convenient tool to observe the extension registry for types you are interested in. Rationale: QObject does neither support templates nor abstract classes also each object must inherit only one QObject. Therefore this class does not use QObject.
Public Member Functions | |
ExtensionWatcher (ExtensionRegistry *registry=nullptr) | |
ExtensionWatcher constructor. | |
void | setExtensionRegistry (ExtensionRegistry *registry) |
Sets the extension registry to track. | |
Protected Member Functions | |
virtual void | onAdd (T *) |
Called when an extension has been registered. | |
virtual void | onRem (T *) |
Called when an extension has been deregistered. | |
virtual | ~ExtensionWatcher () |
Destructor must not be called though this interface. | |
|
inlineexplicit |
ExtensionWatcher constructor.
registry | The extension registry to track. May be set later. |
|
inlineprotectedvirtual |
Destructor must not be called though this interface.
|
inlineprotectedvirtual |
Called when an extension has been registered.
|
inlineprotectedvirtual |
Called when an extension has been deregistered.
|
inline |
Sets the extension registry to track.
registry | The extension registry to track |