#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 | |
| static const char * | toString (EventType eventType) |
| static const char * | toString (EventReason reason) |
Protected Attributes | |
| EventType | _eventType |
| unsigned long | _serial |
Static Protected Attributes | |
| static unsigned long | _nextSerial |
| static int | _activeEvents |
| enum YEvent::EventType |
| enum YEvent::EventReason |
| YEvent::YEvent | ( | EventType | eventType = UnknownEvent |
) |
Constructor.
| YEvent::~YEvent | ( | ) | [virtual] |
Virtual desctructor to force a polymorph object so dynamic_cast can be used
| EventType YEvent::eventType | ( | ) | const [inline] |
Returns the event type.
| unsigned long YEvent::serial | ( | ) | const [inline] |
Returns the unique serial no. of this event. This is mainly useful for debugging.
| const char * YEvent::toString | ( | EventType | eventType | ) | [static] |
Returns the character representation of an event type.
| const char * YEvent::toString | ( | EventReason | reason | ) | [static] |
Returns the character representation of an event reason.
| YCPMap YEvent::ycpEvent | ( | ) | [virtual] |
Constructs a YCP map to be returned upon UI::WaitForEvent().
Reimplemented in YWidgetEvent, YKeyEvent, and YSimpleEvent.
| YCPValue YEvent::userInput | ( | ) | [virtual] |
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.
EventType YEvent::_eventType [protected] |
unsigned long YEvent::_serial [protected] |
unsigned long YEvent::_nextSerial [static, protected] |
int YEvent::_activeEvents [static, protected] |
1.5.0