![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/PluginFramework/ctkPluginEvent.h>
Public Types | |
enum | Type { INSTALLED , STARTED , STOPPED , UPDATED , UNINSTALLED , RESOLVED , UNRESOLVED , STARTING , STOPPING , LAZY_ACTIVATION } |
Public Member Functions | |
ctkPluginEvent () | |
ctkPluginEvent (const ctkPluginEvent &other) | |
ctkPluginEvent (Type type, QSharedPointer< ctkPlugin > plugin) | |
QSharedPointer< ctkPlugin > | getPlugin () const |
Type | getType () const |
bool | isNull () const |
ctkPluginEvent & | operator= (const ctkPluginEvent &other) |
~ctkPluginEvent () | |
An event from the Framework describing a plugin lifecycle change.
ctkPluginEvent
objects are delivered to slots connected via ctkPluginContext::connectPluginListener() when a change occurs in a plugins's lifecycle. A type code is used to identify the event type for future extendability.
Definition at line 47 of file ctkPluginEvent.h.
enum ctkPluginEvent::Type |
Enumerator | |
---|---|
INSTALLED | The plugin has been installed.
|
STARTED | The plugin has been started. The plugin's ctkPluginActivator start method has been executed.
|
STOPPED | The plugin has been stopped. The plugin's ctkPluginActivator stop method has been executed.
|
UPDATED | The plugin has been updated.
|
UNINSTALLED | The plugin has been uninstalled.
|
RESOLVED | The plugin has been resolved.
|
UNRESOLVED | The plugin has been unresolved.
|
STARTING | The plugin is about to be activated. The plugin's ctkPluginActivator start method is about to be called. This event is only delivered to synchronuous slots, which have been registered with Qt::DirectConnection or Qt::BlockingQueuedConnection in ctkPluginContext::connectPluginListener().
|
STOPPING | The plugin is about to deactivated. The plugin's ctkPluginActivator stop method is about to be called. This event is only delivered to synchronuous slots, which have been registered with Qt::DirectConnection or Qt::BlockingQueuedConnection in ctkPluginContext::connectPluginListener().
|
LAZY_ACTIVATION | The plugin will be lazily activated. The plugin has a lazy activation policy and is waiting to be activated. It is now in the STARTING state and has a valid |
Definition at line 54 of file ctkPluginEvent.h.
ctkPluginEvent::ctkPluginEvent | ( | ) |
Default constructor for use with the Qt meta object system.
ctkPluginEvent::~ctkPluginEvent | ( | ) |
Creates a plugin event of the specified type.
type | The event type. |
plugin | The plugin which had a lifecycle change. |
ctkPluginEvent::ctkPluginEvent | ( | const ctkPluginEvent & | other | ) |
QSharedPointer<ctkPlugin> ctkPluginEvent::getPlugin | ( | ) | const |
Returns the plugin which had a lifecycle change.
Type ctkPluginEvent::getType | ( | ) | const |
Returns the type of lifecyle event. The type values are:
bool ctkPluginEvent::isNull | ( | ) | const |
Can be used to check if this ctkPluginEvent instance is valid, or if it has been constructed using the default constructor.
true
if this event object is valid, false
otherwise. ctkPluginEvent& ctkPluginEvent::operator= | ( | const ctkPluginEvent & | other | ) |