![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Cross-platform desktop notification client. More...
#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) |
Show notification message. More... | |
Public Member Functions | |
Notificator (const QString &programName, QSystemTrayIcon *trayIcon, QWidget *parent) | |
Create a new notificator. More... | |
~Notificator () | |
Private Types | |
enum | Mode { None, Freedesktop, QSystemTray, Growl12, Growl13, UserNotificationCenter } |
Private Member Functions | |
void | notifySystray (Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout) |
Private Attributes | |
QWidget * | parent |
QString | programName |
Mode | mode |
QSystemTrayIcon * | trayIcon |
Cross-platform desktop notification client.
Definition at line 24 of file notificator.h.
enum Notificator::Class |
Enumerator | |
---|---|
Information |
Informational message. |
Warning |
Notify user of potential problem. |
Critical |
An error occurred. |
Definition at line 36 of file notificator.h.
|
private |
Definition at line 57 of file notificator.h.
Notificator::Notificator | ( | const QString & | programName, |
QSystemTrayIcon * | trayIcon, | ||
QWidget * | parent | ||
) |
Create a new notificator.
Definition at line 34 of file notificator.cpp.
References Freedesktop, Growl12, Growl13, MacNotificationHandler::hasUserNotificationCenterSupport(), MacNotificationHandler::instance(), mode, QSystemTray, and UserNotificationCenter.
Notificator::~Notificator | ( | ) |
Definition at line 80 of file notificator.cpp.
|
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) |
Definition at line 295 of file notificator.cpp.
References Critical, Freedesktop, Growl12, Growl13, mode, notifySystray(), parent, QSystemTray, and UserNotificationCenter.
Referenced by BitcoinGUI::message().
|
private |
Definition at line 227 of file notificator.cpp.
References Critical, Information, trayIcon, and Warning.
Referenced by notify().
|
private |
Definition at line 66 of file notificator.h.
Referenced by Notificator(), and notify().
|
private |
Definition at line 56 of file notificator.h.
Referenced by notify().
|
private |
Definition at line 65 of file notificator.h.
|
private |
Definition at line 67 of file notificator.h.
Referenced by notifySystray().