![]() |
Home · All Namespaces · All Classes |
00001 #ifndef UNLOCKNOTIFICATIONS_H 00002 #define UNLOCKNOTIFICATIONS_H 00003 00004 #include <QObject> 00005 #include <QHash> 00006 #include <MStylableWidget> 00007 #include <MSceneWindow> 00008 00009 class MLabel; 00010 class MImageWidget; 00011 class QGraphicsLinearLayout; 00012 class QShowEvent; 00013 00014 class UnlockNotifications : public MStylableWidget 00015 { 00016 Q_OBJECT 00017 00018 public: 00019 UnlockNotifications (); 00020 virtual ~UnlockNotifications (); 00021 00022 signals: 00023 void needToShow (bool visible); 00024 00025 private slots: 00026 void updateContents (); 00027 00028 protected: 00029 virtual void orientationChangeEvent (MOrientationChangeEvent *event); 00030 00031 virtual QSizeF sizeHint (Qt::SizeHint which, 00032 const QSizeF& constraint = QSizeF()) const; 00033 00034 void orientationChanged (M::Orientation orientation); 00035 00036 private: 00037 /* 00038 * for other events area: 00039 */ 00040 QHash<int, MLabel *> m_labels; 00041 QHash<int, MImageWidget *> m_icons; 00042 QHash<int, QString> m_icon_ids; 00043 QGraphicsLinearLayout *m_icon_layout; 00044 00045 MStylableWidget *m_otherevents_area; 00046 /* 00047 * for most recent event area: 00048 */ 00049 MLabel *m_last_subject; 00050 MImageWidget *m_last_icon; 00051 QGraphicsLinearLayout *m_mostrecent_layout; 00052 00053 MStylableWidget *m_mostrecent_area; 00054 /* 00055 * main vbox 00056 */ 00057 QGraphicsLinearLayout *m_vbox; 00058 #ifdef UNIT_TEST 00059 friend class Ut_UnlockNotifications; 00060 #endif 00061 }; 00062 00063 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |