Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
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, 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 |
Detailed Description
Cross-platform desktop notification client.
Definition at line 24 of file notificator.h.
Member Enumeration Documentation
◆ Class
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.
◆ Mode
|
private |
Definition at line 57 of file notificator.h.
Constructor & Destructor Documentation
◆ Notificator()
Notificator::Notificator | ( | const QString & | programName, |
QSystemTrayIcon * | trayIcon, | ||
QWidget * | parent | ||
) |
Create a new notificator.
- Note
- Ownership of trayIcon is not transferred to this object.
Definition at line 35 of file notificator.cpp.
References Freedesktop, MacNotificationHandler::hasUserNotificationCenterSupport(), MacNotificationHandler::instance(), mode, QSystemTray, and UserNotificationCenter.
◆ ~Notificator()
Notificator::~Notificator | ( | ) |
Definition at line 65 of file notificator.cpp.
Member Function Documentation
◆ notify
|
slot |
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 234 of file notificator.cpp.
References Critical, Freedesktop, mode, notifySystray(), parent, QSystemTray, and UserNotificationCenter.
Referenced by BitcoinGUI::message().
◆ notifySystray()
|
private |
Definition at line 212 of file notificator.cpp.
References Critical, Information, trayIcon, and Warning.
Referenced by notify().
Member Data Documentation
◆ mode
|
private |
Definition at line 64 of file notificator.h.
Referenced by Notificator(), and notify().
◆ parent
|
private |
Definition at line 56 of file notificator.h.
Referenced by notify().
◆ programName
|
private |
Definition at line 63 of file notificator.h.
◆ trayIcon
|
private |
Definition at line 65 of file notificator.h.
Referenced by notifySystray().
The documentation for this class was generated from the following files:
- src/qt/notificator.h
- src/qt/notificator.cpp