Home · All Namespaces · All Classes
Public Member Functions

SwitcherButtonViewXEventListener Class Reference

Inheritance diagram for SwitcherButtonViewXEventListener:
Inheritance graph
[legend]
Collaboration diagram for SwitcherButtonViewXEventListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SwitcherButtonViewXEventListener (SwitcherButtonView &parent)
virtual ~SwitcherButtonViewXEventListener ()
virtual bool handleXEvent (const XEvent &event)
 REIMPLEMENTATION

Detailed Description

An X event listener for the switcher button view. Reacts to visibility notify events.

Definition at line 39 of file switcherbuttonview.cpp.


Constructor & Destructor Documentation

SwitcherButtonViewXEventListener::SwitcherButtonViewXEventListener ( SwitcherButtonView parent  )  [inline]

Constructs a new listener for switcher button view.

Parameters:
parent the owner of this object.

Definition at line 49 of file switcherbuttonview.cpp.

                                                                 :
            parent(parent)
    {
    }

virtual SwitcherButtonViewXEventListener::~SwitcherButtonViewXEventListener (  )  [inline, virtual]

Destructor.

Definition at line 57 of file switcherbuttonview.cpp.

    {
    }


Member Function Documentation

virtual bool SwitcherButtonViewXEventListener::handleXEvent ( const XEvent &  event  )  [inline, virtual]

REIMPLEMENTATION

Implements XEventListener.

Definition at line 62 of file switcherbuttonview.cpp.

    {
        bool handled = false;

        if (event.type == VisibilityNotify && event.xvisibility.state == VisibilityFullyObscured && event.xvisibility.send_event == True) {
            handled = parent.windowFullyObscured(event.xvisibility.window);
        }

        return handled;
    }

Here is the call graph for this function:


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

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