00001 /* 00002 Situare - A location system for Facebook 00003 Copyright (C) 2010 Ixonos Plc. Authors: 00004 00005 Henri Lampela - henri.lampela@ixonos.com 00006 00007 Situare is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 version 2 as published by the Free Software Foundation. 00010 00011 Situare is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Situare; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00019 USA. 00020 */ 00021 00022 #ifndef APPLICATION_H 00023 #define APPLICATION_H 00024 00025 #include <QApplication> 00026 00032 class Application : public QApplication 00033 { 00034 Q_OBJECT 00035 00036 public: 00043 Application(int &argc, char **argv); 00044 00045 /******************************************************************************* 00046 * MEMBER FUNCTIONS AND SLOTS 00047 ******************************************************************************/ 00048 public: 00054 void registerWindow(WId wId); 00055 00061 void unregisterWindow(WId wId); 00062 00063 private: 00071 WId activeDesktopWindow(Display *display, WId rootWindow); 00072 00080 bool x11EventFilter(XEvent *event); 00081 00082 /******************************************************************************* 00083 * SIGNALS 00084 ******************************************************************************/ 00085 signals: 00093 void showFullScreenButton(); 00094 00100 void topmostWindowChanged(bool mainWindowIsTopmost); 00101 00102 /******************************************************************************* 00103 * DATA MEMBERS 00104 ******************************************************************************/ 00105 private: 00106 bool m_topmost; 00107 00108 QList<WId> m_windows; 00109 }; 00110 00111 #endif // APPLICATION_H