Hermes
0.7.0
Linux game streaming host
Toggle main menu visibility
Loading...
Searching...
No Matches
system_tray.h
Go to the documentation of this file.
1
5
#pragma once
6
10
namespace
system_tray
{
15
void
tray_open_ui_cb
([[maybe_unused]]
struct
tray_menu *item);
16
17
18
void
tray_force_stop_cb(
struct
tray_menu *item);
19
24
29
void
tray_restart_cb
([[maybe_unused]]
struct
tray_menu *item);
30
35
void
tray_quit_cb
([[maybe_unused]]
struct
tray_menu *item);
36
41
int
init_tray
();
42
47
int
process_tray_events
();
48
53
int
end_tray
();
54
59
void
update_tray_playing
(std::string app_name);
60
65
void
update_tray_pausing
(std::string app_name);
66
71
void
update_tray_stopped
(std::string app_name);
72
73
void
74
update_tray_launch_error(std::string app_name,
int
exit_code);
75
85
void
update_tray_session_error
(std::string reason);
86
90
void
update_tray_require_pin
();
91
92
void
update_tray_paired(std::string device_name);
93
94
void
update_tray_client_connected(std::string client_name);
99
int
init_tray_threaded
();
100
105
int
end_tray_threaded
();
106
}
// namespace system_tray
system_tray
Handles the system tray icon and notification system.
Definition
system_tray.cpp:46
system_tray::init_tray
int init_tray()
Initializes the system tray without starting a loop.
Definition
system_tray.cpp:109
system_tray::init_tray_threaded
int init_tray_threaded()
Initializes and runs the system tray in a separate thread.
Definition
system_tray.cpp:355
system_tray::process_tray_events
int process_tray_events()
Processes a single tray event iteration.
Definition
system_tray.cpp:121
system_tray::end_tray_threaded
int end_tray_threaded()
Stops the threaded system tray and waits for the thread to finish.
Definition
system_tray.cpp:405
system_tray::update_tray_require_pin
void update_tray_require_pin()
Spawns a notification for PIN Pairing. Clicking it opens the PIN Web UI Page.
Definition
system_tray.cpp:262
system_tray::update_tray_playing
void update_tray_playing(std::string app_name)
Sets the tray icon in playing mode and spawns the appropriate notification.
Definition
system_tray.cpp:143
system_tray::update_tray_pausing
void update_tray_pausing(std::string app_name)
Sets the tray icon in pausing mode (stream stopped but app running) and spawns the appropriate notifi...
Definition
system_tray.cpp:168
system_tray::tray_restart_cb
void tray_restart_cb(struct tray_menu *item)
Callback for resetting display device configuration.
Definition
system_tray.cpp:65
system_tray::update_tray_session_error
void update_tray_session_error(std::string reason)
Spawns a notification for a session that could not start at all.
Definition
system_tray.cpp:237
system_tray::tray_open_ui_cb
void tray_open_ui_cb(struct tray_menu *item)
Callback for opening the UI from the system tray.
Definition
system_tray.cpp:54
system_tray::tray_quit_cb
void tray_quit_cb(struct tray_menu *item)
Callback for exiting Sunshine from the system tray.
Definition
system_tray.cpp:72
system_tray::end_tray
int end_tray()
Exit the system tray.
Definition
system_tray.cpp:135
system_tray::update_tray_stopped
void update_tray_stopped(std::string app_name)
Sets the tray icon in stopped mode (app and stream stopped) and spawns the appropriate notification.
Definition
system_tray.cpp:189
src
system_tray.h
Generated by
1.18.0