![]() |
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 DBUSINTERFACENOTIFICATIONSOURCE_H 00021 #define DBUSINTERFACENOTIFICATIONSOURCE_H 00022 00023 #include <QObject> 00024 #include "notification.h" 00025 #include "notificationgroup.h" 00026 #include "mnotificationproxy.h" 00027 #include "notificationsource.h" 00028 #include "notificationmanagerinterface.h" 00029 00042 class DBusInterfaceNotificationSource : public QObject, public NotificationSource 00043 { 00044 Q_OBJECT 00045 00046 public: 00052 DBusInterfaceNotificationSource(NotificationManagerInterface &interface); 00053 00060 uint notificationUserId(); 00061 00070 uint addNotification(uint notificationUserId, uint groupId, const QString &eventType); 00071 00085 uint addNotification(uint notificationUserId, uint groupId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count); 00086 00101 uint addNotification(uint notificationUserId, uint groupId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count, const QString &identifier); 00102 00111 bool updateNotification(uint notificationUserId, uint notificationId, const QString &eventType); 00112 00126 bool updateNotification(uint notificationUserId, uint notificationId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count); 00127 00142 bool updateNotification(uint notificationUserId, uint notificationId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count, const QString &identifier); 00143 00151 bool removeNotification(uint notificationUserId, uint notificationId); 00152 00160 uint addGroup(uint notificationUserId, const QString &eventType); 00161 00174 uint addGroup(uint notificationUserId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count); 00175 00189 uint addGroup(uint notificationUserId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count, const QString &identifier); 00190 00199 bool updateGroup(uint notificationUserId, uint groupId, const QString &eventType); 00200 00214 bool updateGroup(uint notificationUserId, uint groupId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count); 00215 00230 bool updateGroup(uint notificationUserId, uint groupId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count, const QString &identifier); 00231 00239 bool removeGroup(uint notificationUserId, uint groupId); 00240 00247 QList<uint> notificationIdList(uint notificationUserId); 00248 00255 QList<MNotificationProxy> notificationList(uint notificationUserId); 00256 00263 QList<MNotificationWithIdentifierProxy> notificationListWithIdentifiers(uint notificationUserId); 00264 00271 QList<MNotificationGroupProxy> notificationGroupList(uint notificationUserId); 00272 00279 QList<MNotificationGroupWithIdentifierProxy> notificationGroupListWithIdentifiers(uint notificationUserId); 00280 00288 uint notificationCountInGroup(uint notificationUserId, uint groupId); 00289 }; 00290 00291 #endif // DBUSINTERFACENOTIFICATIONSOURCE_H
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |