21 #ifndef GUI_TRAYICON_H 22 #define GUI_TRAYICON_H 24 #include "Helper/Settings/SayonaraClass.h" 26 #include "Interfaces/Notification/NotificationHandler.h" 27 #include "Components/PlayManager/PlayState.h" 29 #include <QSystemTrayIcon> 39 public QSystemTrayIcon,
51 bool event ( QEvent * e )
override;
59 void set_enable_fwd(
bool);
62 void notify(
const QString &title,
const QString &message,
const QString &image_path)
override;
76 void sig_hide_clicked();
77 void sig_close_clicked();
78 void sig_show_clicked();
89 void cur_song_clicked();
93 void mute_changed(
bool muted);
94 void _sl_show_tray_icon();
98 virtual void language_changed();
104 QAction* _show_action=
nullptr;
105 QAction* _close_action=
nullptr;
106 QAction* _play_action=
nullptr;
107 QAction* _stop_action=
nullptr;
108 QAction* _mute_action=
nullptr;
109 QAction* _fwd_action=
nullptr;
110 QAction* _bwd_action=
nullptr;
111 QAction* _cur_song_action=
nullptr;
113 QMenu* _context_menu=
nullptr;
114 QTimer* _timer=
nullptr;
117 void init_context_menu();
Definition: NotificationInterface.h:29
void notify(const MetaData &md) override
notify when Metadata has been changed
Definition: GUI_TrayIcon.h:38
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:29
Global handler for current playback state (Singleton)
Definition: PlayManager.h:37
void sig_wheel_changed(int delta)
PlayState
The PlayState enum.
Definition: PlayState.h:30