![]() |
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 <mscenewindowview.h> 00023 00024 class QGraphicsLinearLayout; 00025 class MGConfItem; 00026 class QPixmap; 00027 class MWidgetController; 00028 00029 class LockScreenView : public MSceneWindowView 00030 { 00031 Q_OBJECT 00032 M_VIEW(MSceneWindowModel, MSceneWindowStyle) 00033 00034 public: 00035 LockScreenView(MSceneWindow* controller); 00036 ~LockScreenView(); 00037 00038 signals: 00039 void unlocked (); 00040 00041 private slots: 00042 void reloadLandscapeBackground (); 00043 void reloadPortraitBackground (); 00044 00045 protected: 00047 virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); 00049 00051 QGraphicsLinearLayout *layout; 00053 MWidgetController *lockScreenHeader; 00054 00055 private: 00056 MSceneWindow* controller; 00057 00058 // The background GConf keys: 00059 MGConfItem *gconfBgLandscape; 00060 MGConfItem *gconfBgPortrait; 00061 QPixmap* landscapePixmap; 00062 QPixmap* portraitPixmap; 00063 00064 Q_DISABLE_COPY(LockScreenView) 00065 00066 #ifdef UNIT_TEST 00067 friend class Ut_LockScreenView; 00068 #endif 00069 }; 00070 00071 #endif // LOCKSCREENVIEW_H
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:04:51 2010 Doxygen 1.6.1 |
MeeGo Touch |
