#include <albert/notification.h>
The notification class.
This is basically a wrapper around the QNotification class.
- See also
- https://github.com/QtCommunity/QNotification
|
void | activated () |
| Emitted when the notification is activated.
|
|
|
| Notification (const QString &title={}, const QString &text={}, QObject *parent=nullptr) |
|
| ~Notification () |
|
const QString & | title () const |
| The title of the notification.
|
|
void | setTitle (const QString &title) |
| Set the title of the notification.
|
|
const QString & | text () const |
| The text of the notification.
|
|
void | setText (const QString &text) |
| Set the text of the notification.
|
|
void | send () |
| Send the notification to the notification server.
|
|
void | dismiss () |
| Dismiss the notification.
|
|
◆ Notification()
albert::Notification::Notification |
( |
const QString & |
title = {} , |
|
|
const QString & |
text = {} , |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ ~Notification()
albert::Notification::~Notification |
( |
| ) |
|
◆ activated
void albert::Notification::activated |
( |
| ) |
|
|
signal |
Emitted when the notification is activated.
I.e. the user clicked on the notification.
◆ dismiss()
void albert::Notification::dismiss |
( |
| ) |
|
Dismiss the notification.
This will remove the notification from the notification server.
◆ send()
void albert::Notification::send |
( |
| ) |
|
Send the notification to the notification server.
This will add the notification to the notification server and present it to the user (Subject to the users settings).
◆ setText()
void albert::Notification::setText |
( |
const QString & |
text | ) |
|
Set the text of the notification.
- Parameters
-
text | The text of the notification. |
◆ setTitle()
void albert::Notification::setTitle |
( |
const QString & |
title | ) |
|
Set the title of the notification.
- Parameters
-
title | The title of the notification. |
◆ text()
const QString & albert::Notification::text |
( |
| ) |
const |
The text of the notification.
- Returns
- The text of the notification.
◆ title()
const QString & albert::Notification::title |
( |
| ) |
const |
The title of the notification.
- Returns
- The title of the notification.
◆ QNotificationManager
friend class ALBERT_NO_EXPORT QNotificationManager |
|
friend |
The documentation for this class was generated from the following file: