![]() |
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 00020 #ifndef STATUSINDICATORMENUWINDOW_H 00021 #define STATUSINDICATORMENUWINDOW_H 00022 00023 #include <MWindow> 00024 00025 #ifdef HAVE_QMSYSTEM 00026 #include <qmlocks.h> 00027 #endif 00028 00029 class MStatusBar; 00030 class StatusIndicatorMenu; 00031 00037 class StatusIndicatorMenuWindow : public MWindow 00038 { 00039 Q_OBJECT 00040 00041 public: 00047 StatusIndicatorMenuWindow(QWidget *parent = NULL); 00048 00052 ~StatusIndicatorMenuWindow(); 00053 00054 protected: 00056 bool event(QEvent *event); 00057 void mousePressEvent(QMouseEvent *event); 00058 void mouseReleaseEvent(QMouseEvent *event); 00060 00061 public slots: 00065 void makeVisible(); 00066 00067 signals: 00073 void visibilityChanged(bool visible); 00074 00075 private slots: 00076 00078 void hideWindow(); 00079 00081 void displayActive(); 00082 00084 void displayInActive(); 00085 00087 void initializeMenuWidget(); 00088 00089 #ifdef HAVE_QMSYSTEM 00090 00095 void setWindowStateAccordingToDeviceLockState(MeeGo::QmLocks::Lock what, MeeGo::QmLocks::State how); 00096 #endif 00097 00098 private: 00104 void resetMenuWidget(); 00105 00107 MStatusBar *statusBar; 00108 00110 StatusIndicatorMenu *menuWidget; 00111 00113 QString currentLanguage; 00114 00116 QPoint mousePressPosition; 00117 00118 #ifdef HAVE_QMSYSTEM 00119 00120 MeeGo::QmLocks qmLocks; 00121 00123 bool deviceLocked; 00124 #endif 00125 00126 #ifdef UNIT_TEST 00127 friend class Ut_StatusIndicatorMenuWindow; 00128 #endif 00129 }; 00130 00131 #endif // STATUSINDICATORMENUWINDOW_H
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |