![]() |
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 NOTIFIERNOTIFICATIONSINK_H_ 00021 #define NOTIFIERNOTIFICATIONSINK_H_ 00022 00023 #include "notificationsink.h" 00024 #include <QSet> 00025 00026 class NGFAdapter; 00027 00031 class NotifierNotificationSink : public NotificationSink 00032 { 00033 Q_OBJECT 00034 00035 public: 00041 NotifierNotificationSink(QObject *parent = NULL); 00042 00046 virtual ~NotifierNotificationSink(); 00047 00048 public slots: 00052 void clearSink(); 00053 00059 void disableNotificationAdditions(bool disable); 00060 00061 signals: 00067 void notifierSinkActive(bool active); 00068 00069 private slots: 00071 virtual void addNotification(const Notification ¬ification); 00072 virtual void removeNotification(uint notificationId); 00074 00075 private: 00080 void setNotifierEnabled(bool active); 00081 00083 static bool isUnseen(const Notification ¬ification); 00084 00086 static const QString NOTIFIER_NGF_ID; 00087 00089 NGFAdapter *ngfAdapter; 00090 00092 bool additionsDisabled; 00093 00095 QSet<uint> applicationEventIds; 00096 00098 uint ngfEventId; 00099 00101 bool notifierEnabled; 00102 00103 #ifdef UNIT_TEST 00104 friend class Ut_NotifierNotificationSink; 00105 #endif 00106 }; 00107 00108 #endif /* NOTIFIERNOTIFICATIONSINK_H_ */
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |