![]() |
Home · All Namespaces · All Classes |
#include <dbusinterfacenotificationsource.h>
Public Member Functions | |
DBusInterfaceNotificationSource (NotificationManagerInterface &interface) | |
uint | notificationUserId () |
uint | addNotification (uint notificationUserId, uint groupId, const QString &eventType) |
uint | addNotification (uint notificationUserId, uint groupId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count) |
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) |
bool | updateNotification (uint notificationUserId, uint notificationId, const QString &eventType) |
bool | updateNotification (uint notificationUserId, uint notificationId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count) |
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) |
bool | removeNotification (uint notificationUserId, uint notificationId) |
uint | addGroup (uint notificationUserId, const QString &eventType) |
uint | addGroup (uint notificationUserId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count) |
uint | addGroup (uint notificationUserId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count, const QString &identifier) |
bool | updateGroup (uint notificationUserId, uint groupId, const QString &eventType) |
bool | updateGroup (uint notificationUserId, uint groupId, const QString &eventType, const QString &summary, const QString &body, const QString &action, const QString &imageURI, uint count) |
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) |
bool | removeGroup (uint notificationUserId, uint groupId) |
QList< uint > | notificationIdList (uint notificationUserId) |
QList< MNotificationProxy > | notificationList (uint notificationUserId) |
QList < MNotificationWithIdentifierProxy > | notificationListWithIdentifiers (uint notificationUserId) |
QList< MNotificationGroupProxy > | notificationGroupList (uint notificationUserId) |
QList < MNotificationGroupWithIdentifierProxy > | notificationGroupListWithIdentifiers (uint notificationUserId) |
uint | notificationCountInGroup (uint notificationUserId, uint groupId) |
Publishes a D-Bus interface with which application developers can create and manage notifications.
DBusInterfaceNotificationSourceAdaptor defines the D-Bus API which calls this source to trigger the notifications.
The new API can be tested using the following commands:
dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.notificationUserId dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:<return_val_from_previous_cmd> uint32:0 string:'new-message' string:'Message received' string:'Hello M' string:'link' string:'Icon-close' uint32:1
DBusInterfaceNotificationSource::DBusInterfaceNotificationSource | ( | NotificationManagerInterface & | interface | ) |
Creates a new DBusInterfaceNotitificationSource.
interface | the NotificationManagerInterface to post the notifications to |
uint DBusInterfaceNotificationSource::addGroup | ( | uint | notificationUserId, | |
const QString & | eventType | |||
) |
Adds a new notification group.
notificationUserId | the ID of the user of notifications | |
eventType | the event type of the notification |
uint DBusInterfaceNotificationSource::addGroup | ( | uint | notificationUserId, | |
const QString & | eventType, | |||
const QString & | summary, | |||
const QString & | body, | |||
const QString & | action, | |||
const QString & | imageURI, | |||
uint | count | |||
) |
Adds a new notification group.
notificationUserId | the ID of the user of notifications | |
eventType | the event type of the notification | |
summary | the summary text to be used in the notification | |
body | the body text to be used in the notification | |
action | the ID of the content to be used in the notification | |
imageURI | the ID of the icon to be used in the notification | |
count | the number of items inside this group |
uint DBusInterfaceNotificationSource::addGroup | ( | uint | notificationUserId, | |
const QString & | eventType, | |||
const QString & | summary, | |||
const QString & | body, | |||
const QString & | action, | |||
const QString & | imageURI, | |||
uint | count, | |||
const QString & | identifier | |||
) |
Adds a new notification group.
notificationUserId | the ID of the user of notifications | |
eventType | the event type of the notification | |
summary | the summary text to be used in the notification | |
body | the body text to be used in the notification | |
action | the ID of the content to be used in the notification | |
imageURI | the ID of the icon to be used in the notification | |
count | the number of items inside this group | |
identifier | the user supplied identifier |
uint DBusInterfaceNotificationSource::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 | |||
) |
Adds a new notification.
notificationUserId | the ID of the user of notifications | |
groupId | the ID of the notification group to put the notification in | |
eventType | the event type of the notification | |
summary | the summary text to be used in the notification | |
body | the body text to be used in the notification | |
action | the ID of the content to be used in the notification | |
imageURI | the ID of the icon to be used in the notification | |
count | the number of items inside this notification | |
identifier | the user supplied identifier |
uint DBusInterfaceNotificationSource::addNotification | ( | uint | notificationUserId, | |
uint | groupId, | |||
const QString & | eventType | |||
) |
Adds a new notification.
notificationUserId | the ID of the user of notifications | |
groupId | the ID of the notification group to put the notification in | |
eventType | the event type of the notification |
uint DBusInterfaceNotificationSource::addNotification | ( | uint | notificationUserId, | |
uint | groupId, | |||
const QString & | eventType, | |||
const QString & | summary, | |||
const QString & | body, | |||
const QString & | action, | |||
const QString & | imageURI, | |||
uint | count | |||
) |
Adds a new notification.
notificationUserId | the ID of the user of notifications | |
groupId | the ID of the notification group to put the notification in | |
eventType | the event type of the notification | |
summary | the summary text to be used in the notification | |
body | the body text to be used in the notification | |
action | the ID of the content to be used in the notification | |
imageURI | the ID of the icon to be used in the notification | |
count | the number of items inside this notification |
uint DBusInterfaceNotificationSource::notificationCountInGroup | ( | uint | notificationUserId, | |
uint | groupId | |||
) |
Returns amount of notifications in a given group
notificationUserId | the ID of the user of notifications | |
groupId | the group ID |
QList< MNotificationGroupProxy > DBusInterfaceNotificationSource::notificationGroupList | ( | uint | notificationUserId | ) |
Returns list of notification groups by user id
notificationUserId | the ID of the user of notifications |
QList< MNotificationGroupWithIdentifierProxy > DBusInterfaceNotificationSource::notificationGroupListWithIdentifiers | ( | uint | notificationUserId | ) |
Returns list of notification groups with associated identifiers by user id
notificationUserId | the ID of the user of notifications |
QList< uint > DBusInterfaceNotificationSource::notificationIdList | ( | uint | notificationUserId | ) |
Returns list of notification ids by user id
notificationUserId | the ID of the user of notifications |
QList< MNotificationProxy > DBusInterfaceNotificationSource::notificationList | ( | uint | notificationUserId | ) |
Returns list of notifications by user id
notificationUserId | the ID of the user of notifications |
QList< MNotificationWithIdentifierProxy > DBusInterfaceNotificationSource::notificationListWithIdentifiers | ( | uint | notificationUserId | ) |
Returns list of notifications with associated identifiers by user id
notificationUserId | the ID of the user of notifications |
uint DBusInterfaceNotificationSource::notificationUserId | ( | ) |
Returns a user ID for the notification system. The user ID has to be supplied with every notification system call.
bool DBusInterfaceNotificationSource::removeGroup | ( | uint | notificationUserId, | |
uint | groupId | |||
) |
Removes a notification group and all notifications in the group.
notificationUserId | the ID of the user of notifications | |
groupId | the ID of the notification group to be removed |
bool DBusInterfaceNotificationSource::removeNotification | ( | uint | notificationUserId, | |
uint | notificationId | |||
) |
Removes a notification.
notificationUserId | the ID of the user of notifications | |
notificationId | the ID of the notification to be removed |
bool DBusInterfaceNotificationSource::updateGroup | ( | uint | notificationUserId, | |
uint | groupId, | |||
const QString & | eventType, | |||
const QString & | summary, | |||
const QString & | body, | |||
const QString & | action, | |||
const QString & | imageURI, | |||
uint | count | |||
) |
Updates an existing notification group.
notificationUserId | the ID of the user of notifications | |
groupId | the ID of the notification group to be updated | |
eventType | the event type of the notification | |
summary | the summary text to be used in the notification | |
body | the body text to be used in the notification | |
action | the ID of the content to be used in the notification | |
imageURI | the ID of the icon to be used in the notification | |
count | the number of items inside this group |
bool DBusInterfaceNotificationSource::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 | |||
) |
Updates an existing notification group.
notificationUserId | the ID of the user of notifications | |
groupId | the ID of the notification group to be updated | |
eventType | the event type of the notification | |
summary | the summary text to be used in the notification | |
body | the body text to be used in the notification | |
action | the ID of the content to be used in the notification | |
imageURI | the ID of the icon to be used in the notification | |
count | the number of items inside this group | |
identifier | the user supplied identifier |
bool DBusInterfaceNotificationSource::updateGroup | ( | uint | notificationUserId, | |
uint | groupId, | |||
const QString & | eventType | |||
) |
Updates an existing notification group.
notificationUserId | the ID of the user of notifications | |
groupId | the ID of the notification group to be updated | |
eventType | the event type of the notification |
bool DBusInterfaceNotificationSource::updateNotification | ( | uint | notificationUserId, | |
uint | notificationId, | |||
const QString & | eventType | |||
) |
Updates an existing notification.
notificationUserId | the ID of the user of notifications | |
notificationId | the ID of the notification to be updated | |
eventType | the event type of the notification |
bool DBusInterfaceNotificationSource::updateNotification | ( | uint | notificationUserId, | |
uint | notificationId, | |||
const QString & | eventType, | |||
const QString & | summary, | |||
const QString & | body, | |||
const QString & | action, | |||
const QString & | imageURI, | |||
uint | count | |||
) |
Updates an existing notification.
notificationUserId | the ID of the user of notifications | |
notificationId | the ID of the notification to be updated | |
eventType | the event type of the notification | |
summary | the summary text to be used in the notification | |
body | the body text to be used in the notification | |
action | the ID of the content to be used in the notification | |
imageURI | the ID of the icon to be used in the notification | |
count | the number of items inside this notification |
bool DBusInterfaceNotificationSource::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 | |||
) |
Updates an existing notification.
notificationUserId | the ID of the user of notifications | |
notificationId | the ID of the notification to be updated | |
eventType | the event type of the notification | |
summary | the summary text to be used in the notification | |
body | the body text to be used in the notification | |
action | the ID of the content to be used in the notification | |
imageURI | the ID of the icon to be used in the notification | |
count | the number of items inside this notification | |
identifier | the user supplied identifier |
Copyright © 2011 Nokia Corporation | Generated on Tue Aug 30 2011 16:38:12 Doxygen 1.7.1 |
MeeGo Touch |