Bitcoin
|
#include <notificator.h>
Public Types | |
enum | Class { Information, Warning, Critical } |
Public Slots | |
void | notify (Class cls, const QString &title, const QString &text, const QIcon &icon=QIcon(), int millisTimeout=10000) |
Public Member Functions | |
Notificator (const QString &programName, QSystemTrayIcon *trayIcon, QWidget *parent) | |
~Notificator () | |
Private Types | |
enum | Mode { None, Freedesktop, QSystemTray, UserNotificationCenter } |
Private Member Functions | |
void | notifySystray (Class cls, const QString &title, const QString &text, int millisTimeout) |
Private Attributes | |
QWidget * | parent |
QString | programName |
Mode | mode |
QSystemTrayIcon * | trayIcon |
Cross-platform desktop notification client.
enum Notificator::Class |
|
private |
Notificator::Notificator | ( | const QString & | programName, |
QSystemTrayIcon * | trayIcon, | ||
QWidget * | parent | ||
) |
Create a new notificator.
Notificator::~Notificator | ( | ) |
|
slot |
Show notification message.
[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) |
|
private |
|
private |
|
private |
|
private |
|
private |