Home · All Namespaces · All Classes
Public Member Functions

XEventListener Class Reference

#include <xeventlistener.h>

Inheritance diagram for XEventListener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 XEventListener ()
virtual ~XEventListener ()
virtual bool handleXEvent (const XEvent &event)=0

Detailed Description

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.


Constructor & Destructor Documentation

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);
    }
}

Here is the call graph for this function:

XEventListener::~XEventListener (  )  [virtual]

Destructor.

Definition at line 31 of file xeventlistener.cpp.

{
    HomeApplication *app = dynamic_cast<HomeApplication*>(qApp);
    if (app) {
        app->removeXEventListener(this);
    }
}

Here is the call graph for this function:


Member Function Documentation

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.

Parameters:
event the X event
Returns:
true if the event got handled

Implemented in HomeWindowMonitor, Switcher, and SwitcherButtonViewXEventListener.


The documentation for this class was generated from the following files:

Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:20:43
Doxygen 1.7.1
MeeGo Touch