![]() |
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 00020 #ifndef NOTIFICATIONAREASINK_H_ 00021 #define NOTIFICATIONAREASINK_H_ 00022 00023 #include "widgetnotificationsink.h" 00024 00025 class MBanner; 00026 00030 class NotificationAreaSink : public WidgetNotificationSink 00031 { 00032 Q_OBJECT 00033 00034 public: 00038 NotificationAreaSink(); 00039 00043 virtual ~NotificationAreaSink(); 00044 00045 private slots: 00047 virtual void addGroup(uint groupId, const NotificationParameters ¶meters); 00048 virtual void removeGroup(uint groupId); 00049 virtual void addNotification(const Notification ¬ification); 00050 virtual void removeNotification(uint notificationId); 00052 00058 void applyPrivacySetting(bool privacyEnabled); 00059 00060 signals: 00066 void addNotification(MBanner ¬ification); 00067 00073 void removeNotification(MBanner ¬ification); 00074 00078 void bannerClicked(); 00079 00085 void notificationAddedToGroup(MBanner &banner); 00086 00087 private: 00089 void setupInfoBanner(MBanner *infoBanner); 00091 MBanner *updateNotification(MBanner *dn, const NotificationParameters ¶meters); 00092 00094 QHash<uint, MBanner *> notificationIdToMBanner; 00095 00097 QHash<uint, MBanner *> groupIdToMBanner; 00098 00100 QHash<uint, uint> notificationCountOfGroup; 00101 00103 QHash<uint, uint> notificationIdToGroupId; 00104 00106 void removeGroupBanner(uint groupId); 00107 00109 void increaseNotificationCountOfGroup(const Notification ¬ification); 00111 MBanner* reviveGroupBanner(const Notification ¬ification); 00113 void addNotificationToGroup(const Notification ¬ification); 00115 void addStandAloneNotification(const Notification ¬ification); 00117 void deleteGroupFromNotificationCountOfGroup(const uint groupId); 00119 uint decreaseNotificationCountOfGroup(uint groupId); 00120 }; 00121 00122 #endif /* NOTIFICATIONAREASINK_H_ */
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:04:51 2010 Doxygen 1.6.1 |
MeeGo Touch |
