31 #ifndef SYSTEMTRAYICON_H
32 #define SYSTEMTRAYICON_H
34 #include <QSystemTrayIcon>
36 #include "definitions/definitions.h"
47 class TrayIconMenu :
public QMenu {
54 explicit TrayIconMenu(
const QString &title, QWidget *parent);
55 virtual ~TrayIconMenu();
61 bool event(QEvent *event);
85 const QString &message,
86 MessageIcon icon = Information,
87 int milliseconds_timeout_hint = TRAY_ICON_BUBBLE_TIMEOUT,
88 QObject *click_target = NULL,
89 const char *click_slot = NULL);
101 void onActivated(QSystemTrayIcon::ActivationReason reason);
109 QObject *m_bubbleClickTarget;
110 char *m_bubbleClickSlot;
113 #endif // SYSTEMTRAYICON_H
SystemTrayIcon(const QString &icon, QObject *parent=0)
Constructor.
void leftMouseClicked()
Emitted if user clicks tray icon with left mouse button.
void showMessage(const QString &title, const QString &message, MessageIcon icon=Information, int milliseconds_timeout_hint=TRAY_ICON_BUBBLE_TIMEOUT, QObject *click_target=NULL, const char *click_slot=NULL)
Displays new balloon tip with message.
void show()
Displays tray icon.
static bool isSystemTrayAvailable()
Indicates whether tray icon is supported.
Application-wide tray icon.