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 #include <QVariant> 00027 00028 class HomeScreenService; 00029 class XEventListener; 00030 00034 class HomeApplication : public MApplication 00035 { 00036 Q_OBJECT 00037 00038 public: 00046 HomeApplication(int &argc, char **argv,const QString& appIdentifier = QString()); 00047 00051 virtual ~HomeApplication(); 00052 00060 void addXEventListener(XEventListener *listener); 00061 00067 void removeXEventListener(XEventListener *listener); 00068 00080 QVariant lockedOrientation() const; 00081 00082 signals: 00086 void focusToLauncherAppRequested(const QString &fileEntryPath); 00087 00088 #ifdef BENCHMARKS_ON 00089 void startBenchmarking(); 00090 void stopBenchmarking(); 00091 #endif 00092 00093 protected: 00095 virtual bool x11EventFilter(XEvent *event); 00097 00098 private slots: 00103 void sendStartupNotifications(); 00104 00105 private: 00113 void parseArguments(int argc, char *argv[]); 00114 00116 bool upstartMode; 00117 00119 QVariant lockedOrientation_; 00120 00122 QTimer startupNotificationTimer; 00123 00125 HomeScreenService *homeScreenService; 00126 00130 QList<XEventListener*> xEventListeners; 00131 00133 bool iteratorActiveForEventListenerContainer; 00134 00137 QList<XEventListener*> toBeRemovedEventListeners; 00138 00139 #ifdef UNIT_TEST 00140 friend class Ut_HomeApplication; 00141 #endif 00142 }; 00143 00144 #endif /* HOMEAPPLICATION_H_ */
Copyright © 2011 Nokia Corporation | Generated on Thu Jul 7 2011 22:14:50 Doxygen 1.7.1 |
MeeGo Touch |