![]() |
Home · All Namespaces · All Classes |
#include <notificationsink.h>


Public Slots | |
| virtual void | addNotification (const Notification ¬ification)=0 |
| virtual void | removeNotification (uint notificationId)=0 |
| virtual void | addGroup (uint groupId, const NotificationParameters ¶meters) |
| virtual void | removeGroup (uint groupId) |
Signals | |
| void | notificationRemovalRequested (uint notificationId) |
| void | notificationGroupClearingRequested (uint groupId) |
Public Member Functions | |
| NotificationSink () | |
| bool | applicationEventsEnabled () |
| Returns whether the the sink should process notifications with ApplicationEvent type. | |
| void | setApplicationEventsEnabled (bool enabled) |
Protected Member Functions | |
| bool | canAddNotification (const Notification ¬ification) |
Notification sink is an abstract interface for classes that can present notifications. Concrete notification sinks are responsible for presenting notifications and possibly notifying the NotificationManagerInterface if the notification was dismissed.
Definition at line 31 of file notificationsink.h.
| NotificationSink::NotificationSink | ( | ) |
Definition at line 22 of file notificationsink.cpp.
: appEventsEnabled(true)
{
}
| void NotificationSink::addGroup | ( | uint | groupId, | |
| const NotificationParameters & | parameters | |||
| ) | [virtual, slot] |
Creates a notification group.
| groupId | the ID of the group | |
| parameters | NotificationParameters for the group |
Definition at line 26 of file notificationsink.cpp.
{
Q_UNUSED(groupId)
Q_UNUSED(parameters)
}
| virtual void NotificationSink::addNotification | ( | const Notification & | notification | ) | [pure virtual, slot] |
Adds a notification to be presented.
| notification | the data of the notification |
Implemented in UnlockNotificationSink.
| bool NotificationSink::applicationEventsEnabled | ( | ) |
Returns whether the the sink should process notifications with ApplicationEvent type.
Definition at line 37 of file notificationsink.cpp.
{
return appEventsEnabled;
}
| bool NotificationSink::canAddNotification | ( | const Notification & | notification | ) | [protected] |
Returns whether the sink should add the given notification
| notification | the notification |
Reimplemented in UnlockNotificationSink.
Definition at line 47 of file notificationsink.cpp.
{
return appEventsEnabled || notification.type() == Notification::SystemEvent;
}

| void NotificationSink::notificationGroupClearingRequested | ( | uint | groupId | ) | [signal] |
Requests removal of notifications in a group.
| groupId | Id of the group to be cleared. |
| void NotificationSink::notificationRemovalRequested | ( | uint | notificationId | ) | [signal] |
Requests removal of a notification from the notification system. This can be connected to the associated NotificationManagerInterface::removeNotification().
| notificationId | Id of the notification to be removed from the system. |
| void NotificationSink::removeGroup | ( | uint | groupId | ) | [virtual, slot] |
Removes a notification group.
| groupId | the ID of the group |
Definition at line 32 of file notificationsink.cpp.
{
Q_UNUSED(groupId)
}
| virtual void NotificationSink::removeNotification | ( | uint | notificationId | ) | [pure virtual, slot] |
Removes a notification.
| notificationId | the ID of the notification to be removed |
Implemented in UnlockNotificationSink.
| void NotificationSink::setApplicationEventsEnabled | ( | bool | enabled | ) |
Sets whether the the sink should process notifications with ApplicationEvent type
| enabled | the new status |
Definition at line 42 of file notificationsink.cpp.
{
appEventsEnabled = enabled;
}
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:19:35 Doxygen 1.7.1 |
MeeGo Touch |