75 void tray_quit_cb([[maybe_unused]]
struct tray_menu *item);
145 std::string_view version,
146 bool version_compatible,
147 std::string_view supported_versions
168 const struct tray &tray_data_for_testing();
175 bool tray_initialized_for_testing();
180 void reset_tray_data_for_testing();
188 const char *resource_path_for_testing(
const char *relative_path);
193 void resolve_tray_icon_paths_for_testing();
Handles the system tray icon and notification system.
Definition system_tray.cpp:89
void tray_donate_github_cb(struct tray_menu *item)
Callback for opening GitHub Sponsors from the system tray.
Definition system_tray.cpp:189
int init_tray()
Initializes the system tray without starting a loop.
Definition system_tray.cpp:766
int init_tray_threaded()
Initializes and runs the system tray in a separate thread.
Definition system_tray.cpp:917
void tray_donate_paypal_cb(struct tray_menu *item)
Callback for opening PayPal donation from the system tray.
Definition system_tray.cpp:197
int process_tray_events()
Processes a single tray event iteration.
Definition system_tray.cpp:770
void update_tray_require_pin()
Spawns a notification for PIN Pairing. Clicking it opens the PIN Web UI Page.
Definition system_tray.cpp:863
void update_tray_virtualhid_driver(const bool installed, const std::string_view version, const bool version_compatible, const std::string_view supported_versions)
Show an update notification for an unsupported Virtual HID Driver.
Definition system_tray.cpp:513
void update_tray_playing(std::string app_name)
Sets the tray icon in playing mode and spawns the appropriate notification.
Definition system_tray.cpp:797
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:819
void prepare_tray_virtualhid_license()
Query the Virtual HID Driver license and prepare the startup tray state.
Definition system_tray.cpp:508
void tray_reset_display_device_config_cb(struct tray_menu *item)
Callback for resetting display device configuration.
Definition system_tray.cpp:238
void tray_restart_cb(struct tray_menu *item)
Callback for restarting Sunshine from the system tray.
Definition system_tray.cpp:244
void update_tray_virtualhid_license(const lvh::LicenseStatus &license, const bool notify_if_unlicensed)
Update the Virtual HID Driver license submenu and optional notification.
Definition system_tray.cpp:480
void tray_open_ui_cb(struct tray_menu *item)
Callback for opening the UI from the system tray.
Definition system_tray.cpp:184
void tray_quit_cb(struct tray_menu *item)
Callback for exiting Sunshine from the system tray.
Definition system_tray.cpp:250
void prepare_tray_virtualhid_driver()
Query the Virtual HID Driver version and prepare its startup notification.
Definition system_tray.cpp:546
int end_tray()
Exit the system tray.
Definition system_tray.cpp:780
void tray_virtualhid_license_cb(struct tray_menu *item)
Callback for opening Virtual HID Driver license settings in the Web UI.
Definition system_tray.cpp:202
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:841
void tray_donate_patreon_cb(struct tray_menu *item)
Callback for opening Patreon from the system tray.
Definition system_tray.cpp:193
void tray_virtualhid_download_cb(struct tray_menu *item)
Callback for opening the latest Virtual HID Driver release.
Definition system_tray.cpp:207