#include <YEvent.h>
Inheritance diagram for YEvent:
Public Types | |
enum | EventType { NoEvent = 0, UnknownEvent, WidgetEvent, MenuEvent, KeyEvent, CancelEvent, TimeoutEvent, DebugEvent } |
enum | EventReason { UnknownReason = 0, Activated, SelectionChanged, ValueChanged } |
Public Member Functions | |
YEvent (EventType eventType=UnknownEvent) | |
virtual | ~YEvent () |
EventType | eventType () const |
unsigned long | serial () const |
virtual YCPMap | ycpEvent () |
virtual YCPValue | userInput () |
Static Public Member Functions | |
const char * | toString (EventType eventType) |
const char * | toString (EventReason reason) |
Protected Attributes | |
EventType | _eventType |
unsigned long | _serial |
Static Protected Attributes | |
unsigned long | _nextSerial = 0 |
int | _activeEvents = 0 |
|
|
|
|
|
Constructor. |
|
Virtual desctructor to force a polymorph object so dynamic_cast can be used |
|
Returns the event type. |
|
Returns the unique serial no. of this event. This is mainly useful for debugging. |
|
Returns the character representation of an event reason. |
|
Returns the character representation of an event type. |
|
Returns the ID to be returned upon UI::UserInput(). This is the same as the "id" field of the ycpEvent() map (if this type of event has any such field in its map). It may also be YCPVoid() (nil). Reimplemented in YWidgetEvent, YKeyEvent, and YSimpleEvent. |
|
Constructs a YCP map to be returned upon UI::WaitForEvent(). Reimplemented in YWidgetEvent, YKeyEvent, and YSimpleEvent. |
|
|
|
|
|
|
|
|