![]() |
Home · All Namespaces · All Classes |
00001 #ifndef UNLOCK_NOTIFICATIONS_H 00002 #define UNLOCK_NOTIFICATIONS_H 00003 00004 #include <QObject> 00005 #include "notificationsink.h" 00006 00007 #ifdef HAVE_QMSYSTEM 00008 #include <qmlocks.h> 00009 #endif 00010 00011 class MGConfItem; 00012 00013 class UnlockNotificationSink : public NotificationSink 00014 { 00015 Q_OBJECT 00016 00017 public: 00018 UnlockNotificationSink(QObject *parent = NULL); 00019 00020 protected slots: 00021 virtual void addNotification (const Notification ¬ification); 00022 virtual void removeNotification (uint notificationId); 00023 00024 #ifdef HAVE_QMSYSTEM 00025 void locksChanged(MeeGo::QmLocks::Lock what, MeeGo::QmLocks::State how); 00026 #endif 00027 00028 protected: 00029 bool canAddNotification (const Notification ¬ification); 00030 00031 private: 00032 void setLockedState (bool islocked); 00033 00034 bool m_enabled; 00035 00037 MGConfItem *privateNotificationSetting; 00038 00039 #ifdef HAVE_QMSYSTEM 00040 MeeGo::QmLocks locks; 00041 #endif 00042 00043 #ifdef UNIT_TEST 00044 friend class Ut_UnlockNotificationSink; 00045 #endif 00046 }; 00047 00048 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |