![]() |
Home · All Namespaces · All Classes |
00001 /**************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of systemui. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 #ifndef EVENTEATER_H 00020 #define EVENTEATER_H 00021 00022 #include "xeventlistener.h" 00023 #include <QObject> 00024 #include <QAbstractEventDispatcher> 00025 #include <QX11Info> 00026 #include "x11wrapper.h" 00027 00031 class EventEater : public QObject, XEventListenerFilterInterface { 00032 Q_OBJECT 00033 public: 00034 00036 EventEater(); 00037 00039 virtual ~EventEater(); 00040 00042 void show(); 00043 00045 void hide(); 00046 00048 bool xEventFilter(const XEvent &event); 00049 00050 private: 00051 00052 Window window; 00053 00054 signals: 00056 void inputEventReceived(); 00057 00058 #ifdef UNIT_TEST 00059 friend class Ut_LockScreenUI; 00060 friend class Ut_EventEater; 00061 friend class Ft_LockScreenUI; 00062 friend class Ut_LockScreenBusinessLogic; 00063 friend class Ft_LockScreenBusinessLogic; 00064 #endif 00065 }; 00066 00067 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |