![]() |
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 LOCKSCREENVIEW_H 00020 #define LOCKSCREENVIEW_H 00021 00022 #include <MWidgetView> 00023 #include "lockscreenstyle.h" 00024 00025 class QGraphicsLinearLayout; 00026 class MGConfItem; 00027 class QPixmap; 00028 class LockScreenHeader; 00029 00033 class LockScreenBackgroundPixmap : public QObject 00034 { 00035 Q_OBJECT 00036 00037 public: 00043 LockScreenBackgroundPixmap(const QString &gConfKey); 00044 00048 ~LockScreenBackgroundPixmap(); 00049 00051 MGConfItem *gConfItem; 00052 00054 QPixmap *pixmap; 00055 00057 bool pixmapFromTheme; 00058 00059 private slots: 00061 void updatePixmap(); 00062 00063 signals: 00065 void pixmapUpdated(); 00066 00067 private: 00069 void destroyPixmap(); 00070 00071 #ifdef UNIT_TEST 00072 friend class Ut_LockScreenView; 00073 #endif 00074 }; 00075 00079 class LockScreenView : public MWidgetView 00080 { 00081 Q_OBJECT 00082 M_VIEW(MWidgetModel, LockScreenStyle) 00083 00084 public: 00090 LockScreenView(MWidgetController* controller); 00091 00095 virtual ~LockScreenView(); 00096 00097 protected: 00099 virtual void drawBackground(QPainter *painter, const QStyleOptionGraphicsItem *option) const; 00101 00103 MWidgetController *controller; 00104 00106 QGraphicsLinearLayout *layout; 00107 00109 LockScreenHeader *lockScreenHeader; 00110 00111 private slots: 00113 void updateStyleName(); 00114 00115 private: 00117 LockScreenBackgroundPixmap landscapePixmap; 00118 00120 LockScreenBackgroundPixmap portraitPixmap; 00121 00122 Q_DISABLE_COPY(LockScreenView) 00123 00124 #ifdef UNIT_TEST 00125 friend class Ut_LockScreenView; 00126 #endif 00127 }; 00128 00129 #endif // LOCKSCREENVIEW_H
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |