6#include <albert/export.h>
29 const QString &text = {},
30 QObject *parent =
nullptr);
50 const QString &
text()
const;
81 class ALBERT_NO_EXPORT Private;
82 std::unique_ptr<Private> d;
83 friend class ALBERT_NO_EXPORT QNotificationManager;
The notification class.
Definition notification.h:20
Notification(const QString &title={}, const QString &text={}, QObject *parent=nullptr)
Constructs a notification with the given title and text.
void send()
Send the notification to the notification server.
void activated()
Emitted when the notification is activated, i.e.
void setTitle(const QString &title)
Sets the title of the notification to title.
const QString & text() const
Returns the text of the notification.
void dismiss()
Dismiss the notification.
const QString & title() const
Returns the title of the notification.
~Notification()
Destructs the notification.
void setText(const QString &text)
Sets the text of the notification to text.