Event
Inherited: None
Description
Objects processing events by their virtual Object::event() function called. This function can be reimplemented in subclasses to add additional event handling or change existing.
Base Event contain only event type parameter. Subclasses of Event may contain additional parameters to describe particular events.
Public Methods
Event (uint32_t type) |
|
uint32_t |
type () const |
Public Enums
enum Event::Type
This enum type defines base event types and can be extended by the user defined types. User Defined type of Event should be bigger than Event::UserType.
Constant |
Value |
Description |
Event::Invalid |
0 |
Invalid event. |
Event::MethodCall |
1 |
Receiver object should invoke method (MethodCallEvent). |
Event::TimerEvent |
2 |
Timer event (TimerEvent). |
Event::Destroy |
3 |
Reseiver object must be deleted immediately. |
Event::LanguageChange |
4 |
The application translation changed. |
Event::UserType |
100 |
User defined event. |
Static Methods
None
Methods Description
Event::Event (uint32_t type)
Constructs an Event with type of event.
uint32_t Event::type () const
Returns type of event.