Home · All Namespaces · All Classes

NotificationArea Class Reference

#include <notificationarea.h>

Inheritance diagram for NotificationArea:
Inheritance graph
[legend]
Collaboration diagram for NotificationArea:
Collaboration graph
[legend]

List of all members.

Signals

void notificationRemovalRequested (uint notificationId)
void notificationGroupClearingRequested (uint groupId)
void bannerClicked ()
 A signal that is emitted whenever an event banner on the notification area is clicked.

Public Member Functions

 NotificationArea (MWidget *parent=NULL, bool notificationsClickable=true)
virtual ~NotificationArea ()
void setHonorPrivacySetting (bool honor)

Detailed Description

The NotificationArea is a widget that shows notifications.

Definition at line 34 of file notificationarea.h.


Constructor & Destructor Documentation

NotificationArea::NotificationArea ( MWidget *  parent = NULL,
bool  notificationsClickable = true 
)

Constructs a NotificationArea widget.

Parameters:
parent the parent widget of the NotificationArea, defaults to NULL

Definition at line 26 of file notificationarea.cpp.

00026                                                                                :
00027     MWidgetController(new NotificationAreaModel, parent),
00028     notificationAreaSink(new NotificationAreaSink)
00029 {
00030     // Connect notification signals
00031     NotificationManager *notificationManager = &Sysuid::instance()->notificationManager();
00032     notificationAreaSink->setNotificationsClickable(notificationsClickable);
00033     connect(notificationManager, SIGNAL(groupUpdated(uint, const NotificationParameters &)), notificationAreaSink, SLOT(addGroup(uint, const NotificationParameters &)));
00034     connect(notificationManager, SIGNAL(groupRemoved(uint)), notificationAreaSink, SLOT(removeGroup(uint)));
00035     connect(notificationManager, SIGNAL(notificationRemoved(uint)), notificationAreaSink, SLOT(removeNotification(uint)));
00036     connect(notificationManager, SIGNAL(notificationRestored(const Notification &)), notificationAreaSink, SLOT(addNotification(const Notification &)));
00037     connect(notificationManager, SIGNAL(notificationUpdated(const Notification &)), notificationAreaSink, SLOT(addNotification(const Notification &)));
00038     connect(notificationAreaSink, SIGNAL(addNotification(MBanner &)), this, SLOT(addNotification(MBanner &)));
00039     connect(notificationAreaSink, SIGNAL(removeNotification(MBanner &)), this, SLOT(removeNotification(MBanner &)));
00040     connect(notificationAreaSink, SIGNAL(notificationRemovalRequested(uint)), notificationManager, SLOT(removeNotification(uint)));
00041     connect(notificationAreaSink, SIGNAL(notificationGroupClearingRequested(uint)), notificationManager, SLOT(removeNotificationsInGroup(uint)));
00042     connect(notificationAreaSink, SIGNAL(notificationAddedToGroup(MBanner &)), this, SLOT(moveNotificationToTop(MBanner &)));
00043     connect(notificationAreaSink, SIGNAL(bannerClicked()), this, SIGNAL(bannerClicked()));
00044     connect(this, SIGNAL(notificationRemovalRequested(uint)), notificationAreaSink, SIGNAL(notificationRemovalRequested(uint)));
00045     connect(this, SIGNAL(notificationGroupClearingRequested(uint)), notificationAreaSink, SIGNAL(notificationGroupClearingRequested(uint)));
00046 }

Here is the call graph for this function:

NotificationArea::~NotificationArea (  )  [virtual]

Destroys the NotificationArea.

Definition at line 48 of file notificationarea.cpp.

00049 {
00050     delete notificationAreaSink;
00051 }


Member Function Documentation

void NotificationArea::bannerClicked (  )  [signal]

A signal that is emitted whenever an event banner on the notification area is clicked.

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

Requests removal of notifications in a group.

Parameters:
groupId Id of the group to be cleared.
void NotificationArea::notificationRemovalRequested ( uint  notificationId  )  [signal]

Requests removal of a notification from the notification system.

Parameters:
notificationId Id of the notification to be removed from the system.
void NotificationArea::setHonorPrivacySetting ( bool  honor  ) 

Controls whether the notification banners on this area should only show a generic text instead of the full notification text if the /desktop/meego/privacy/private_lockscreen_notifications GConf key is set to true. If the GConf key is not honored the private mode is never used.

Parameters:
honor if true, privacy setting is honored. If false, the privacy setting is ignored.

Definition at line 102 of file notificationarea.cpp.

00103 {
00104     notificationAreaSink->setHonorPrivacySetting(honor);
00105 }

Here is the call graph for this function:


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

Copyright © 2010 Nokia Corporation Generated on Wed Nov 10 16:05:08 2010
Doxygen 1.6.1
MeeGo Touch