22 #ifndef GUI_TRAYICON_H 23 #define GUI_TRAYICON_H 25 #include "Helper/Settings/SayonaraClass.h" 27 #include "Interfaces/Notification/NotificationHandler.h" 28 #include "Components/PlayManager/PlayManager.h" 30 #include <QSystemTrayIcon> 39 public QSystemTrayIcon,
51 bool event ( QEvent * e )
override;
54 void set_enable_play(
bool);
55 void set_enable_stop(
bool);
56 void set_enable_mute(
bool);
57 void set_enable_fwd(
bool);
58 void set_enable_bwd(
bool);
61 void notify(
const QString &title,
const QString &message,
const QString &image_path)
override;
75 void sig_hide_clicked();
76 void sig_close_clicked();
77 void sig_show_clicked();
88 void cur_song_clicked();
92 void mute_changed(
bool muted);
96 virtual void language_changed();
102 QAction* _show_action=
nullptr;
103 QAction* _close_action=
nullptr;
104 QAction* _play_action=
nullptr;
105 QAction* _stop_action=
nullptr;
106 QAction* _mute_action=
nullptr;
107 QAction* _fwd_action=
nullptr;
108 QAction* _bwd_action=
nullptr;
109 QAction* _cur_song_action=
nullptr;
111 QMenu* _context_menu=
nullptr;
112 QTimer* _timer=
nullptr;
Definition: NotificationInterface.h:32
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:31
PlayState
Current Playing state.
Definition: PlayManager.h:79
Global handler for current playback state (Singleton)
Definition: PlayManager.h:67
void sig_wheel_changed(int delta)