|
Hermes 0.7.0
Linux game streaming host
|
Definitions for the system tray icon and notification system. More...
#include <atomic>#include <chrono>#include <csignal>#include <format>#include <string>#include <thread>#include <boost/filesystem.hpp>#include <boost/process/v1/environment.hpp>#include <tray/src/tray.h>#include "config.h"#include "confighttp.h"#include "logging.h"#include "platform/common.h"#include "process.h"#include "network.h"#include "src/entry_handler.h"#include "platform/linux/misc.h"Go to the source code of this file.
Namespaces | |
| namespace | system_tray |
| Handles the system tray icon and notification system. | |
Macros | |
| #define | TRAY_ICON "/usr/share/icons/hicolor/scalable/status/" HERMES_TRAY_PREFIX "-tray.svg" |
| #define | TRAY_ICON_PLAYING "/usr/share/icons/hicolor/scalable/status/" HERMES_TRAY_PREFIX "-playing.svg" |
| #define | TRAY_ICON_PAUSING "/usr/share/icons/hicolor/scalable/status/" HERMES_TRAY_PREFIX "-pausing.svg" |
| #define | TRAY_ICON_LOCKED "/usr/share/icons/hicolor/scalable/status/" HERMES_TRAY_PREFIX "-locked.svg" |
| #define | TRAY_MSG_NO_APP_RUNNING "Reload Apps" |
| #define | BOOST_PROCESS_VERSION 1 |
Functions | |
| void | system_tray::tray_open_ui_cb (struct tray_menu *item) |
| Callback for opening the UI from the system tray. | |
| void | system_tray::tray_force_stop_cb (struct tray_menu *item) |
| void | system_tray::tray_restart_cb (struct tray_menu *item) |
| Callback for resetting display device configuration. | |
| void | system_tray::tray_quit_cb (struct tray_menu *item) |
| Callback for exiting Sunshine from the system tray. | |
| int | system_tray::init_tray () |
| Initializes the system tray without starting a loop. | |
| int | system_tray::process_tray_events () |
| Processes a single tray event iteration. | |
| int | system_tray::end_tray () |
| Exit the system tray. | |
| void | system_tray::update_tray_playing (std::string app_name) |
| Sets the tray icon in playing mode and spawns the appropriate notification. | |
| void | system_tray::update_tray_pausing (std::string app_name) |
| Sets the tray icon in pausing mode (stream stopped but app running) and spawns the appropriate notification. | |
| void | system_tray::update_tray_stopped (std::string app_name) |
| Sets the tray icon in stopped mode (app and stream stopped) and spawns the appropriate notification. | |
| void | system_tray::update_tray_launch_error (std::string app_name, int exit_code) |
| void | system_tray::update_tray_session_error (std::string reason) |
| Spawns a notification for a session that could not start at all. | |
| void | system_tray::update_tray_require_pin () |
| Spawns a notification for PIN Pairing. Clicking it opens the PIN Web UI Page. | |
| void | system_tray::update_tray_paired (std::string device_name) |
| void | system_tray::update_tray_client_connected (std::string client_name) |
| int | system_tray::init_tray_threaded () |
| Initializes and runs the system tray in a separate thread. | |
| int | system_tray::end_tray_threaded () |
| Stops the threaded system tray and waits for the thread to finish. | |
Definitions for the system tray icon and notification system.
Definition in file system_tray.cpp.
| #define BOOST_PROCESS_VERSION 1 |
Definition at line 17 of file system_tray.cpp.
| #define TRAY_ICON "/usr/share/icons/hicolor/scalable/status/" HERMES_TRAY_PREFIX "-tray.svg" |
Definition at line 9 of file system_tray.cpp.
| #define TRAY_ICON_LOCKED "/usr/share/icons/hicolor/scalable/status/" HERMES_TRAY_PREFIX "-locked.svg" |
Definition at line 12 of file system_tray.cpp.
| #define TRAY_ICON_PAUSING "/usr/share/icons/hicolor/scalable/status/" HERMES_TRAY_PREFIX "-pausing.svg" |
Definition at line 11 of file system_tray.cpp.
| #define TRAY_ICON_PLAYING "/usr/share/icons/hicolor/scalable/status/" HERMES_TRAY_PREFIX "-playing.svg" |
Definition at line 10 of file system_tray.cpp.
| #define TRAY_MSG_NO_APP_RUNNING "Reload Apps" |
Definition at line 14 of file system_tray.cpp.