6 #ifndef RAVEN_QT_NOTIFICATOR_H 7 #define RAVEN_QT_NOTIFICATOR_H 9 #if defined(HAVE_CONFIG_H) 17 class QSystemTrayIcon;
53 void notify(
Class cls,
const QString &title,
const QString &text,
54 const QIcon &icon = QIcon(),
int millisTimeout = 10000);
68 QDBusInterface *interface;
70 void notifyDBus(
Class cls,
const QString &title,
const QString &text,
const QIcon &icon,
int millisTimeout);
72 void notifySystray(
Class cls,
const QString &title,
const QString &text,
const QIcon &icon,
int millisTimeout);
74 void notifyMacUserNotificationCenter(
Class cls,
const QString &title,
const QString &text,
const QIcon &icon);
78 #endif // RAVEN_QT_NOTIFICATOR_H
Use DBus org.freedesktop.Notifications.
Notificator(const QString &programName, QSystemTrayIcon *trayIcon, QWidget *parent)
Create a new notificator.
Notify user of potential problem.
Ignore informational notifications, and show a modal pop-up dialog for Critical notifications.
Use the 10.8+ User Notification Center (Mac only)
void notify(Class cls, const QString &title, const QString &text, const QIcon &icon=QIcon(), int millisTimeout=10000)
Show notification message.
Cross-platform desktop notification client.
QSystemTrayIcon * trayIcon
Use QSystemTray::showMessage.
void notifySystray(Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout)