Event class for all the eVaf events.
More...
#include <Common/event.h>
Event class for all the eVaf events.
The Event class is an event container for all the eVaf events.
Definition at line 39 of file event.h.
eVaf::Common::Event::Event |
( |
uint |
eventId, |
|
|
quint32 |
intValue = 0 , |
|
|
QSharedData * |
dataObj = 0 |
|
) |
| |
|
inline |
Creates the event object.
- Parameters
-
eventId | The ID of the event |
intValue | A 32-bit integer value |
dataObj | Shared data object attached to the event |
Creates the event object with the given event ID value and attaches optional data to the event.
The optional 32-bit integer value can be used to store information that fits into the value and is not reference-counted.
The optional reference-counted shared data object is owned by the event and the reference counter is decreased by 1 when the event object is destroyed. If nobody else claimed the ownership, then the shared data object is destroyed too.
Definition at line 61 of file event.h.
Returns the shared data object attached to the event.
The shared data object is valid only while in the event handler. Once the event loop is finished, the event and shared data attached to it are destroyed. To keep the shared data object, use QExplicitlySharedDataPointer<> to claim ownership.
Definition at line 85 of file event.h.
uint eVaf::Common::Event::id |
( |
| ) |
const |
|
inline |
Returns the event ID value.
Definition at line 71 of file event.h.
quint32 eVaf::Common::Event::value |
( |
| ) |
const |
|
inline |
Returns the 32-bit integer value.
Definition at line 76 of file event.h.
QEvent::Type const eVaf::Common::Event::eVafEvent |
|
static |
The documentation for this class was generated from the following file: