![]() |
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 LOCKSCREENWITHPADLOCKVIEW_H 00020 #define LOCKSCREENWITHPADLOCKVIEW_H 00021 00022 #include "lockscreenview.h" 00023 #include <MOverlay> 00024 00025 class MImageWidget; 00026 class QGraphicsLinearLayout; 00027 class UnlockArea; 00028 class UnlockNotifications; 00029 class UnlockNotificationSink; 00030 00031 class LockScreenWithPadlockView : public LockScreenView 00032 { 00033 Q_OBJECT 00034 M_VIEW(MWidgetModel, LockScreenStyle) 00035 00036 public: 00037 LockScreenWithPadlockView(MWidgetController *controller); 00038 ~LockScreenWithPadlockView(); 00039 00040 enum dnd_state { 00041 STATE_NONE = 0, 00042 STATE_MOVING, 00043 STATE_MOVING_ACTIVE 00044 }; 00045 00046 protected: 00047 virtual void mousePressEvent (QGraphicsSceneMouseEvent *event); 00048 virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event); 00049 virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event); 00050 00051 signals: 00052 void unlocked (); 00053 00054 private slots: 00055 void redraw (); 00056 void redrawIdle (); 00057 void showHideNotifications (bool show); 00058 void resetState (); 00059 00060 private: 00061 void updateDragAndDropIcon (); 00062 00063 // Needed to show the DnD icon on the window: 00064 MWindow *dragAndDropWindow; 00065 // The DnD icon: 00066 MImageWidget *dragAndDropIcon; 00067 MOverlay dragAndDropOverlay; 00068 // The DnD state 00069 int dragAndDropState; 00070 // Needed to determine the current DnD states: 00071 UnlockArea *lockLandArea; 00072 // for frame-dropping 00073 bool drawPending; 00074 QPointF dragAndDropPosition; 00075 UnlockNotifications *notificationArea; 00076 UnlockNotificationSink *notificationSink; 00077 00078 #ifdef UNIT_TEST 00079 friend class Ut_LockScreenWithPadlockView; 00080 #endif 00081 }; 00082 00083 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |