![]() |
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 NOTIFICATIONSINK_H 00021 #define NOTIFICATIONSINK_H 00022 00023 #include <QObject> 00024 #include "notification.h" 00025 00031 class NotificationSink : public QObject 00032 { 00033 Q_OBJECT 00034 00035 public: 00036 NotificationSink(QObject *parent = NULL); 00037 00039 bool applicationEventsEnabled(); 00040 00045 void setApplicationEventsEnabled(bool enabled); 00046 00047 protected: 00052 bool canAddNotification(const Notification ¬ification); 00053 00054 public slots: 00059 virtual void addNotification(const Notification ¬ification) = 0; 00060 00066 virtual void removeNotification(uint notificationId) = 0; 00067 00074 virtual void addGroup(uint groupId, const NotificationParameters ¶meters); 00075 00081 virtual void removeGroup(uint groupId); 00082 00083 signals: 00089 void notificationRemovalRequested(uint notificationId); 00090 00095 void notificationGroupClearingRequested(uint groupId); 00096 00097 private: 00098 bool appEventsEnabled; 00099 }; 00100 00101 #endif
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |