A class that represents a notification group.
More...
Inherits MNotification.
List of all members.
Detailed Description
A class that represents a notification group.
Overview
A class that represents a notification group. Notification groups can be used to bundle similar notifications into one so that the individual notifications join a group of notifications on the notification area.
A notification group is not created or updated until the publish() function is called. A notification group must be published before notifications are placed into it.
A list of notification groups already created can be requested. A QCoreApplication must be created before doing the request.
- See also:
- MNotification
-
Notification system
Constructor & Destructor Documentation
Creates a new representation of a notification group. The notification group will not be published until publish() is called. Only the event type needs to be defined. If no summary or body text is defined the notification group will not have a visual representation.
- Parameters:
-
| eventType | the event type of the notification group |
| summary | the summary text to be used in the notification. Can be omitted (defaults to no summary text). |
| body | the body text to be used in the notification. Can be omitted (defaults to no body text). |
MNotificationGroup::~MNotificationGroup |
( |
|
) |
[virtual] |
Destroys the class that represents a notification group.
MNotificationGroup::MNotificationGroup |
( |
|
) |
|
Creates a copy of an existing representation of a notification group. This constructor should only be used for populating the notification group list from D-Bus structures.
- Parameters:
-
| group | the notification representation to a create copy of |
MNotificationGroup::MNotificationGroup |
( |
uint |
id |
) |
[explicit, protected] |
Creates a representation of an existing notification group. Should be used to get a handle to an existing notification group with a known ID.
- Parameters:
-
| id | the ID of the existing notification group |
Member Function Documentation
uint MNotificationGroup::notificationCount |
( |
|
) |
|
Returns amount of notifications in a given group
- Parameters:
-
- Returns:
- amount of notifications in given group
Returns a list of notification groups created by this application but which have not been dismissed by the user yet. Caller of this function gets the ownership of the notification groups, and is responsible for freeing them.
- Returns:
- list of notifications
Friends And Related Function Documentation