![]() |
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 StatusIndicatorMenu; 00030 00036 class StatusIndicatorMenuWindow : public MWindow 00037 { 00038 Q_OBJECT 00039 00040 public: 00046 StatusIndicatorMenuWindow(QWidget *parent = NULL); 00047 00051 ~StatusIndicatorMenuWindow(); 00052 00053 protected: 00055 bool event(QEvent *event); 00057 00058 public slots: 00062 void makeVisible(); 00063 00064 signals: 00069 void visibilityChanged(bool visible); 00070 00071 00072 private slots: 00073 00075 void displayActive(); 00076 00078 void displayInActive(); 00079 00080 #ifdef HAVE_QMSYSTEM 00081 00086 void setWindowStateAccordingToDeviceLockState(MeeGo::QmLocks::Lock what, MeeGo::QmLocks::State how); 00087 #endif 00088 00089 private: 00095 void resetMenuWidget(); 00096 00097 StatusIndicatorMenu* menuWidget; 00098 00100 QString currentLanguage; 00101 00102 #ifdef HAVE_QMSYSTEM 00103 00104 MeeGo::QmLocks qmLocks; 00105 00107 bool deviceLocked; 00108 #endif 00109 00110 #ifdef UNIT_TEST 00111 friend class Ut_StatusIndicatorMenuWindow; 00112 #endif 00113 }; 00114 00115 #endif // STATUSINDICATORMENUWINDOW_H
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:19:35 Doxygen 1.7.1 |
MeeGo Touch |
