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

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.

                                                                               :
    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)));
}

Here is the call graph for this function:

NotificationArea::~NotificationArea (  )  [virtual]

Destroys the NotificationArea.

Definition at line 48 of file notificationarea.cpp.

{
    delete notificationAreaSink;
}


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.

{
    notificationAreaSink->setHonorPrivacySetting(honor);
}

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 Thu Nov 4 2010 18:19:35
Doxygen 1.7.1
MeeGo Touch