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


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) |
The NotificationArea is a widget that shows notifications.
Definition at line 34 of file notificationarea.h.
| NotificationArea::NotificationArea | ( | MWidget * | parent = NULL, |
|
| bool | notificationsClickable = true | |||
| ) |
Constructs a NotificationArea widget.
| parent | the parent widget of the NotificationArea, defaults to NULL |
Definition at line 26 of file notificationarea.cpp.
:
MWidgetController(new NotificationAreaModel, parent),
notificationAreaSink(new NotificationAreaSink)
{
// Connect notification signals
NotificationManager *notificationManager = &Sysuid::instance()->notificationManager();
notificationAreaSink->setNotificationsClickable(notificationsClickable);
connect(notificationManager, SIGNAL(groupUpdated(uint, const NotificationParameters &)), notificationAreaSink, SLOT(addGroup(uint, const NotificationParameters &)));
connect(notificationManager, SIGNAL(groupRemoved(uint)), notificationAreaSink, SLOT(removeGroup(uint)));
connect(notificationManager, SIGNAL(notificationRemoved(uint)), notificationAreaSink, SLOT(removeNotification(uint)));
connect(notificationManager, SIGNAL(notificationRestored(const Notification &)), notificationAreaSink, SLOT(addNotification(const Notification &)));
connect(notificationManager, SIGNAL(notificationUpdated(const Notification &)), notificationAreaSink, SLOT(addNotification(const Notification &)));
connect(notificationAreaSink, SIGNAL(addNotification(MBanner &)), this, SLOT(addNotification(MBanner &)));
connect(notificationAreaSink, SIGNAL(removeNotification(MBanner &)), this, SLOT(removeNotification(MBanner &)));
connect(notificationAreaSink, SIGNAL(notificationRemovalRequested(uint)), notificationManager, SLOT(removeNotification(uint)));
connect(notificationAreaSink, SIGNAL(notificationGroupClearingRequested(uint)), notificationManager, SLOT(removeNotificationsInGroup(uint)));
connect(notificationAreaSink, SIGNAL(notificationAddedToGroup(MBanner &)), this, SLOT(moveNotificationToTop(MBanner &)));
connect(notificationAreaSink, SIGNAL(bannerClicked()), this, SIGNAL(bannerClicked()));
connect(this, SIGNAL(notificationRemovalRequested(uint)), notificationAreaSink, SIGNAL(notificationRemovalRequested(uint)));
connect(this, SIGNAL(notificationGroupClearingRequested(uint)), notificationAreaSink, SIGNAL(notificationGroupClearingRequested(uint)));
}

| NotificationArea::~NotificationArea | ( | ) | [virtual] |
Destroys the NotificationArea.
Definition at line 48 of file notificationarea.cpp.
{
delete notificationAreaSink;
}
| 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.
| groupId | Id of the group to be cleared. |
| void NotificationArea::notificationRemovalRequested | ( | uint | notificationId | ) | [signal] |
Requests removal of a notification from the notification system.
| 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.
| honor | if true, privacy setting is honored. If false, the privacy setting is ignored. |
Definition at line 102 of file notificationarea.cpp.
{
notificationAreaSink->setHonorPrivacySetting(honor);
}

| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:19:35 Doxygen 1.7.1 |
MeeGo Touch |