#include <Plugins/org.commontk.eventbus/ctkBusEvent.h>
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() [1/4]
ctkBusEvent::ctkBusEvent |
( |
| ) |
|
Default constructor for use with the Qt meta object system.
◆ ~ctkBusEvent()
ctkBusEvent::~ctkBusEvent |
( |
| ) |
|
◆ ctkBusEvent() [2/4]
Constructs an event.
- Parameters
-
topic | The topic of the event. |
properties | The event's properties (may be empty). |
- Exceptions
-
◆ ctkBusEvent() [3/4]
◆ ctkBusEvent() [4/4]
ctkBusEvent::ctkBusEvent |
( |
QString |
topic, |
|
|
int |
event_type, |
|
|
int |
signature_type, |
|
|
QObject * |
objectPointer, |
|
|
QString |
signature |
|
) |
| |
◆ eventTopic()
QString ctkBusEvent::eventTopic |
( |
| ) |
const |
◆ eventType()
int ctkBusEvent::eventType |
( |
| ) |
const |
◆ isEventLocal()
bool ctkBusEvent::isEventLocal |
( |
| ) |
const |
◆ operator=()
◆ operator[]()
QVariant& ctkBusEvent::operator[] |
( |
QString |
key | ) |
|
quick accessor for all the items
- Parameters
-
key | Represents the key associated to the value |
◆ setEventTopic()
void ctkBusEvent::setEventTopic |
( |
QString |
topic | ) |
|
accessor for topic
- Parameters
-
topic | Represents the topic of the message |
◆ setEventType()
void ctkBusEvent::setEventType |
( |
int |
et | ) |
|
accessor for eventtype
- Parameters
-
et | The eventtype can be local(ctkEventTypeLocal) or remote(ctkEventTypeRemote) |
The documentation for this class was generated from the following file: