![]() |
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 NOTIFICATIONAREA_H_ 00021 #define NOTIFICATIONAREA_H_ 00022 00023 #include <MWidgetController> 00024 #include "notificationsink.h" 00025 #include "notificationareamodel.h" 00026 00027 class NotificationManagerInterface; 00028 class NotificationAreaSink; 00029 class MBanner; 00030 00034 class NotificationArea : public MWidgetController 00035 { 00036 Q_OBJECT 00037 M_CONTROLLER(NotificationArea) 00038 00039 public: 00045 NotificationArea(QGraphicsItem *parent = NULL, bool notificationsClickable = true); 00046 00050 virtual ~NotificationArea(); 00051 00061 void setHonorPrivacySetting(bool honor); 00062 00068 void setNotificationManagerInterface(NotificationManagerInterface ¬ificationManagerInterface); 00069 00070 signals: 00075 void notificationRemovalRequested(uint notificationId); 00076 00081 void notificationGroupClearingRequested(uint groupId); 00082 00083 private slots: 00089 void addNotification(MBanner ¬ification); 00090 00097 void moveNotificationToTop(MBanner ¬ification); 00098 00104 void removeNotification(MBanner ¬ification); 00105 00107 void removeAllRemovableBanners(); 00108 00109 signals: 00113 void bannerClicked(); 00114 00115 private: 00117 NotificationAreaSink *notificationAreaSink; 00118 00119 #ifdef UNIT_TEST 00120 friend class Ut_NotificationArea; 00121 #endif 00122 }; 00123 00124 #endif /* NOTIFICATIONAREA_H_ */
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |