| 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 mhome. 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 00020 #ifndef HOMEAPPLICATION_H_ 00021 #define HOMEAPPLICATION_H_ 00022 00023 #include <MApplication> 00024 #include <QTimer> 00025 #include <QSet> 00026 00027 class HomeScreenService; 00028 class XEventListener; 00029 00033 class HomeApplication : public MApplication 00034 { 00035 Q_OBJECT 00036 00037 public: 00045 HomeApplication(int &argc, char **argv,const QString& appIdentifier = QString()); 00046 00050 ~HomeApplication(); 00051 00059 void addXEventListener(XEventListener *listener); 00060 00066 void removeXEventListener(XEventListener *listener); 00067 00068 signals: 00072 void focusToLauncherAppRequested(const QString &fileEntryPath); 00073 00074 #ifdef BENCHMARKS_ON 00075 void startBenchmarking(); 00076 void stopBenchmarking(); 00077 #endif 00078 00079 protected: 00081 virtual bool x11EventFilter(XEvent *event); 00083 00084 private slots: 00089 void sendStartupNotifications(); 00090 00091 private: 00093 bool upstartMode; 00094 00096 QTimer startupNotificationTimer; 00097 00099 HomeScreenService *homeScreenService; 00100 00104 QList<XEventListener*> xEventListeners; 00105 00107 bool iteratorActiveForEventListenerContainer; 00108 00111 QList<XEventListener*> toBeRemovedEventListeners; 00112 00113 #ifdef UNIT_TEST 00114 friend class Ut_HomeApplication; 00115 #endif 00116 }; 00117 00118 #endif /* HOMEAPPLICATION_H_ */
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:20:42 Doxygen 1.7.1 |
MeeGo Touch |