5#ifndef BITCOIN_QT_NOTIFICATOR_H
6#define BITCOIN_QT_NOTIFICATOR_H
8#if defined(HAVE_CONFIG_H)
9#include <config/bitcoin-config.h>
53 void notify(
Class cls,
const QString &title,
const QString &text,
54 const QIcon &icon = QIcon(),
int millisTimeout = 10000);
70 QDBusInterface *interface;
72 void notifyDBus(
Class cls,
const QString &title,
const QString &text,
73 const QIcon &icon,
int millisTimeout);
78 void notifyMacUserNotificationCenter(
const QString &title,
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.