![]() |
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 #ifndef SHUTDOWNUI_H 00020 #define SHUTDOWNUI_H 00021 00022 #include <MWindow> 00023 00024 class MSceneWindow; 00025 class MLabel; 00026 class MFeedback; 00027 class MStylableWidget; 00028 class QGraphicsLinearLayout; 00029 class QTimer; 00030 00036 class ShutdownUI : public MWindow 00037 { 00038 Q_OBJECT 00039 00040 public: 00044 ShutdownUI(); 00045 00049 virtual ~ShutdownUI(); 00050 00061 void showWindow(const QString &text1, const QString &text2, int timeout); 00062 00063 protected: 00065 void showEvent(QShowEvent *event); 00067 00068 private slots: 00070 void showLogo(); 00071 00073 void turnOffScreen(); 00074 00076 void realize(); 00077 00078 private: 00080 void applyStyle(); 00081 00082 bool realized; 00083 MSceneWindow *sceneWindow; 00084 QTimer *timer; 00085 MLabel *label1; 00086 MLabel *label2; 00087 MStylableWidget *logo; 00088 QGraphicsLinearLayout *layout; 00089 MFeedback *feedback; 00090 00091 #ifdef UNIT_TEST 00092 friend class Ft_ShutdownUI; 00093 friend class Ut_ShutdownUI; 00094 #endif 00095 }; 00096 00097 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |