| Home · All Namespaces · All Classes |
#include <xeventlistener.h>

Public Member Functions | |
| XEventListener () | |
| virtual | ~XEventListener () |
| virtual bool | handleXEvent (const XEvent &event)=0 |
An interface for listening to X events. Objects of this class receive X events throughout their lifecycle as the events arrive.
Definition at line 30 of file xeventlistener.h.
| XEventListener::XEventListener | ( | ) |
Constructs a new listener and starts receiving X events.
Definition at line 23 of file xeventlistener.cpp.
{
HomeApplication *app = dynamic_cast<HomeApplication*>(qApp);
if (app) {
app->addXEventListener(this);
}
}

| XEventListener::~XEventListener | ( | ) | [virtual] |
Destructor.
Definition at line 31 of file xeventlistener.cpp.
{
HomeApplication *app = dynamic_cast<HomeApplication*>(qApp);
if (app) {
app->removeXEventListener(this);
}
}

| virtual bool XEventListener::handleXEvent | ( | const XEvent & | event | ) | [pure virtual] |
A handler method for X events. Return true if the event got handled and false if not.
| event | the X event |
true if the event got handled Implemented in HomeWindowMonitor, Switcher, and SwitcherButtonViewXEventListener.
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:20:43 Doxygen 1.7.1 |
MeeGo Touch |