![]() |
Home · All Namespaces · All Classes |
A class for storing notification information. More...
#include <notification.h>

Public Types | |
| enum | NotificationType { ApplicationEvent, SystemEvent } |
Public Member Functions | |
| Notification () | |
| Notification (uint notificationId, uint groupId, uint userId, const NotificationParameters ¶meters, NotificationType type, int timeout) | |
| ~Notification () | |
| uint | notificationId () const |
| uint | userId () const |
| uint | groupId () const |
| const NotificationParameters & | parameters () const |
| void | setParameters (const NotificationParameters ¶meters) |
| void | updateParameters (const NotificationParameters ¶meters) |
| NotificationType | type () const |
| int | timeout () const |
Friends | |
| QDataStream & | operator<< (QDataStream &, const Notification &) |
| QDataStream & | operator>> (QDataStream &, Notification &) |
| QDBusArgument & | operator<< (QDBusArgument &, const Notification ¬ification) |
| const QDBusArgument & | operator>> (const QDBusArgument &, Notification &) |
A class for storing notification information.
The information can also be serialized in and out of a QDataStream.
Definition at line 35 of file notification.h.
Notification types.
Definition at line 41 of file notification.h.
00041 { 00042 ApplicationEvent, 00043 SystemEvent 00044 };
| Notification::Notification | ( | ) |
Empty constructor. Initializes the values to defaults.
Definition at line 25 of file notification.cpp.
00025 : 00026 notificationId_(0), 00027 groupId_(0), 00028 userId_(0), 00029 parameters_(), 00030 type_(ApplicationEvent), 00031 timeout_(0) 00032 { 00033 }
| Notification::Notification | ( | uint | notificationId, | |
| uint | groupId, | |||
| uint | userId, | |||
| const NotificationParameters & | parameters, | |||
| NotificationType | type, | |||
| int | timeout | |||
| ) |
Constructor.
| notificationId | the ID of this notification | |
| groupId | the group ID of this notification | |
| userId | the user ID associated to this notification | |
| parameters | parameters for the notification to be presented | |
| type | the type of the notification to be presented. |
| timeout | The number of milliseconds to present the notification for |
Definition at line 35 of file notification.cpp.
00035 : 00036 notificationId_(notificationId), 00037 groupId_(groupId), 00038 userId_(userId), 00039 parameters_(parameters), 00040 type_(type), 00041 timeout_(timeout) 00042 { 00043 }
| Notification::~Notification | ( | ) |
| uint Notification::groupId | ( | ) | const |
Returns the group ID of this notification.
Definition at line 54 of file notification.cpp.
| uint Notification::notificationId | ( | ) | const |
Returns the ID of this notification.
Definition at line 49 of file notification.cpp.
| const NotificationParameters & Notification::parameters | ( | ) | const |
Returns the parameters list for this notification.
Definition at line 64 of file notification.cpp.
| void Notification::setParameters | ( | const NotificationParameters & | parameters | ) |
Sets the parameters list for this notification.
| parameters | parameters for this notification |
Definition at line 69 of file notification.cpp.
| int Notification::timeout | ( | ) | const |
Returns the timeout of this notification.
Definition at line 84 of file notification.cpp.
| Notification::NotificationType Notification::type | ( | ) | const |
Returns the type of this notification.
Definition at line 79 of file notification.cpp.
| void Notification::updateParameters | ( | const NotificationParameters & | parameters | ) |
Updates the parameters of this notification. The existing parameters in the notification remain as they are. Only new values from the argument are appended/updated.
| parameters | the parameters that will be updated |
Definition at line 74 of file notification.cpp.
00075 { 00076 parameters_.update(parameters); 00077 }

| uint Notification::userId | ( | ) | const |
Returns the user ID associated with this notification.
Definition at line 59 of file notification.cpp.
| QDBusArgument& operator<< | ( | QDBusArgument & | , | |
| const Notification & | notification | |||
| ) | [friend] |
| QDataStream& operator<< | ( | QDataStream & | , | |
| const Notification & | ||||
| ) | [friend] |
| const QDBusArgument& operator>> | ( | const QDBusArgument & | , | |
| Notification & | ||||
| ) | [friend] |
| QDataStream& operator>> | ( | QDataStream & | , | |
| Notification & | ||||
| ) | [friend] |
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:05:08 2010 Doxygen 1.6.1 |
MeeGo Touch |