Cross-platform desktop notification client.
More...
#include <notificator.h>
Cross-platform desktop notification client.
Definition at line 22 of file notificator.h.
◆ Class
| Enumerator |
|---|
| Information | Informational message.
|
| Warning | Notify user of potential problem.
|
| Critical | An error occurred.
|
Definition at line 34 of file notificator.h.
◆ Mode
| Enumerator |
|---|
| None | Ignore informational notifications, and show a modal pop-up dialog for Critical notifications.
|
| Freedesktop | Use DBus org.freedesktop.Notifications.
|
| QSystemTray | Use QSystemTrayIcon::showMessage()
|
| UserNotificationCenter | Use the 10.8+ User Notification Center (Mac only)
|
Definition at line 55 of file notificator.h.
◆ Notificator()
Create a new notificator.
- Note
- Ownership of trayIcon is not transferred to this object.
Definition at line 33 of file notificator.cpp.
◆ ~Notificator()
| Notificator::~Notificator |
( |
| ) |
|
◆ notify
Show notification message.
- Parameters
-
| [in] | cls | general message class |
| [in] | title | title shown with message |
| [in] | text | message content |
| [in] | icon | optional icon to show with message |
| [in] | millisTimeout | notification timeout in milliseconds (defaults to 10 seconds) |
- Note
- Platform implementations are free to ignore any of the provided fields except for text.
Definition at line 218 of file notificator.cpp.
◆ notifySystray()
◆ mode
◆ parent
| QWidget* Notificator::parent |
|
private |
◆ programName
◆ trayIcon
The documentation for this class was generated from the following files: