5#ifndef BITCOIN_QT_NOTIFICATOR_H
6#define BITCOIN_QT_NOTIFICATOR_H
8#include <bitcoin-build-config.h>
50 void notify(
Class cls,
const QString &title,
const QString &text,
51 const QIcon &icon = QIcon(),
int millisTimeout = 10000);
65 QDBusInterface* interface{
nullptr};
67 void notifyDBus(
Class cls,
const QString &title,
const QString &text,
const QIcon &icon,
int millisTimeout);
69 void notifySystray(
Class cls,
const QString &title,
const QString &text,
int millisTimeout);
71 void notifyMacUserNotificationCenter(
const QString &title,
const QString &text);
Cross-platform desktop notification client.
@ Information
Informational message.
@ Critical
An error occurred.
@ Warning
Notify user of potential problem.
@ UserNotificationCenter
Use the 10.8+ User Notification Center (Mac only)
@ QSystemTray
Use QSystemTrayIcon::showMessage()
@ Freedesktop
Use DBus org.freedesktop.Notifications.
@ None
Ignore informational notifications, and show a modal pop-up dialog for Critical notifications.
void notifySystray(Class cls, const QString &title, const QString &text, int millisTimeout)
Notificator(const QString &programName, QSystemTrayIcon *trayIcon, QWidget *parent)
Create a new notificator.
QSystemTrayIcon * trayIcon
void notify(Class cls, const QString &title, const QString &text, const QIcon &icon=QIcon(), int millisTimeout=10000)
Show notification message.