![]() |
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/ctkServiceEvent.h>
Public Types | |
enum | Type { REGISTERED = 0x00000001 , MODIFIED = 0x00000002 , UNREGISTERING = 0x00000004 , MODIFIED_ENDMATCH = 0x00000008 } |
Public Member Functions | |
ctkServiceEvent () | |
ctkServiceEvent (const ctkServiceEvent &other) | |
ctkServiceEvent (Type type, const ctkServiceReference &reference) | |
ctkServiceReference | getServiceReference () const |
Type | getType () const |
bool | isNull () const |
ctkServiceEvent & | operator= (const ctkServiceEvent &other) |
~ctkServiceEvent () | |
An event from the Plugin Framework describing a service lifecycle change.
ctkServiceEvent
objects are delivered to slots connected via ctkPluginContext::connectServiceListener() when a change occurs in this service's lifecycle. A type code is used to identify the event type for future extendability.
Definition at line 51 of file ctkServiceEvent.h.
Definition at line 58 of file ctkServiceEvent.h.
ctkServiceEvent::ctkServiceEvent | ( | ) |
Default constructor for use with the Qt meta object system.
ctkServiceEvent::~ctkServiceEvent | ( | ) |
ctkServiceEvent::ctkServiceEvent | ( | Type | type, |
const ctkServiceReference & | reference | ||
) |
Creates a new service event object.
type | The event type. |
reference | A ctkServiceReference object to the service that had a lifecycle change. |
ctkServiceEvent::ctkServiceEvent | ( | const ctkServiceEvent & | other | ) |
ctkServiceReference ctkServiceEvent::getServiceReference | ( | ) | const |
Returns a reference to the service that had a change occur in its lifecycle.
This reference is the source of the event.
Type ctkServiceEvent::getType | ( | ) | const |
Returns the type of event. The event type values are:
bool ctkServiceEvent::isNull | ( | ) | const |
Can be used to check if this ctkServiceEvent instance is valid, or if it has been constructed using the default constructor.
true
if this event object is valid, false
otherwise. ctkServiceEvent& ctkServiceEvent::operator= | ( | const ctkServiceEvent & | other | ) |