![]() |
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 <Plugins/org.commontk.eventbus/ctkBusEvent.h>
Public Member Functions | |
ctkBusEvent () | |
ctkBusEvent (const QString &topic, const ctkDictionary &properties=ctkDictionary()) | |
ctkBusEvent (const ctkBusEvent &event) | |
ctkBusEvent (QString topic, int event_type, int signature_type, QObject *objectPointer, QString signature) | |
QString | eventTopic () const |
int | eventType () const |
bool | isEventLocal () const |
ctkBusEvent & | operator= (const ctkBusEvent &event) |
QVariant & | operator[] (QString key) |
void | setEventTopic (QString topic) |
void | setEventType (int et) |
~ctkBusEvent () | |
![]() | |
bool | containsProperty (const QString &name) const |
ctkEvent () | |
ctkEvent (const QString &topic, const ctkDictionary &properties=ctkDictionary()) | |
ctkEvent (const ctkEvent &event) | |
QVariant | getProperty (const QString &name) const |
QStringList | getPropertyNames () const |
const QString & | getTopic () const |
bool | isNull () const |
bool | matches (const ctkLDAPSearchFilter &filter) const |
ctkEvent & | operator= (const ctkEvent &other) |
bool | operator== (const ctkEvent &other) const |
~ctkEvent () | |
A CTK event.
ctkEvent
objects are delivered to ctkEventHandler
or Qt slots which subscribe to the topic of the event.
Definition at line 40 of file ctkBusEvent.h.
ctkBusEvent::ctkBusEvent | ( | ) |
Default constructor for use with the Qt meta object system.
ctkBusEvent::~ctkBusEvent | ( | ) |
ctkBusEvent::ctkBusEvent | ( | const QString & | topic, |
const ctkDictionary & | properties = ctkDictionary() |
||
) |
Constructs an event.
topic | The topic of the event. |
properties | The event's properties (may be empty). |
ctkInvalidArgumentException | If topic is not a valid topic name. |
ctkBusEvent::ctkBusEvent | ( | const ctkBusEvent & | event | ) |
ctkBusEvent::ctkBusEvent | ( | QString | topic, |
int | event_type, | ||
int | signature_type, | ||
QObject * | objectPointer, | ||
QString | signature | ||
) |
QString ctkBusEvent::eventTopic | ( | ) | const |
int ctkBusEvent::eventType | ( | ) | const |
bool ctkBusEvent::isEventLocal | ( | ) | const |
ctkBusEvent& ctkBusEvent::operator= | ( | const ctkBusEvent & | event | ) |
QVariant& ctkBusEvent::operator[] | ( | QString | key | ) |
quick accessor for all the items
key | Represents the key associated to the value |
void ctkBusEvent::setEventTopic | ( | QString | topic | ) |
accessor for topic
topic | Represents the topic of the message |
void ctkBusEvent::setEventType | ( | int | et | ) |
accessor for eventtype
et | The eventtype can be local(ctkEventTypeLocal) or remote(ctkEventTypeRemote) |