Home · All Namespaces · All Classes
Public Slots | Signals | Public Member Functions | Protected Member Functions

NotificationSink Class Reference

#include <notificationsink.h>

Inheritance diagram for NotificationSink:
Inheritance graph
[legend]

List of all members.

Public Slots

virtual void addNotification (const Notification &notification)=0
virtual void removeNotification (uint notificationId)=0
virtual void addGroup (uint groupId, const NotificationParameters &parameters)
virtual void removeGroup (uint groupId)

Signals

void notificationRemovalRequested (uint notificationId)
void notificationGroupClearingRequested (uint groupId)

Public Member Functions

 NotificationSink (QObject *parent=NULL)
bool applicationEventsEnabled ()
 Returns whether the the sink should process notifications with ApplicationEvent type.
void setApplicationEventsEnabled (bool enabled)

Protected Member Functions

bool canAddNotification (const Notification &notification)

Detailed Description

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.


Constructor & Destructor Documentation

NotificationSink::NotificationSink ( QObject *  parent = NULL  ) 

Member Function Documentation

void NotificationSink::addGroup ( uint  groupId,
const NotificationParameters parameters 
) [virtual, slot]

Creates a notification group.

Parameters:
groupId the ID of the group
parameters NotificationParameters for the group
virtual void NotificationSink::addNotification ( const Notification notification  )  [pure virtual, slot]

Adds a notification to be presented.

Parameters:
notification the data of the notification

Implemented in UnlockNotificationSink.

bool NotificationSink::applicationEventsEnabled (  ) 

Returns whether the the sink should process notifications with ApplicationEvent type.

bool NotificationSink::canAddNotification ( const Notification notification  )  [protected]

Returns whether the sink should add the given notification

Parameters:
notification the notification

Reimplemented in UnlockNotificationSink.

void NotificationSink::notificationGroupClearingRequested ( uint  groupId  )  [signal]

Requests removal of notifications in a group.

Parameters:
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().

Parameters:
notificationId Id of the notification to be removed from the system.
void NotificationSink::removeGroup ( uint  groupId  )  [virtual, slot]

Removes a notification group.

Parameters:
groupId the ID of the group
virtual void NotificationSink::removeNotification ( uint  notificationId  )  [pure virtual, slot]

Removes a notification.

Parameters:
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

Parameters:
enabled the new status

The documentation for this class was generated from the following files:

Copyright © 2011 Nokia Corporation Generated on Tue Aug 30 2011 16:38:13
Doxygen 1.7.1
MeeGo Touch