![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|

Public Member Functions | |
| ScreenCastPortal_impl () | |
| ~ScreenCastPortal_impl () | |
| GDBusConnection * | dbus_connection () const |
| std::future< std::string > | get_future () |
| int | get_pw_fd () |
| uint32_t | get_pw_node () |
| GDBusProxy * | proxy () |
| void | quit_loop () |
| void | run (std::string restore_file, bool show_cursor) |
| void | run_loop () |
| const std::string & | sender_name () const |
| const std::string & | session_path () const |
| const std::string & | session_token () const |
Static Public Attributes | |
| static constexpr uint32_t | REQUEST_RESPONSE_CANCELLED_BY_USER = 1 |
| static constexpr uint32_t | REQUEST_RESPONSE_OK = 0 |
| static constexpr uint32_t | REQUEST_RESPONSE_OTHER_ERROR = 2 |
Private Member Functions | |
| template<auto callback> | |
| void | call_with_request (const char *method_name, std::initializer_list< GVariant * > arguments, GVariantBuilder ¶ms_builder) |
Static Private Member Functions | |
| static void | pipewire_opened (GObject *source, GAsyncResult *res, void *user_data) |
| static void | session_created (uint32_t response, GVariant *results, ScreenCastPortal_impl *s) |
| static void | sources_selected (uint32_t response, GVariant *results, ScreenCastPortal_impl *s) |
| static void | started (uint32_t response, GVariant *results, void *user_data) |
Private Attributes | |
| GDBusConnection * | connection |
| GMainLoop * | dbus_loop |
| std::promise< std::string > | promise |
| int | pw_fd = -1 |
| uint32_t | pw_node = UINT32_MAX |
| std::string | restore_file |
| GDBusProxy * | screencast_proxy |
| session_path_t | session |
| bool | show_cursor = false |
| std::string | unique_name |
Definition at line 110 of file dbus_portal.cpp.
| ScreenCastPortal_impl::ScreenCastPortal_impl | ( | ) |
Definition at line 191 of file dbus_portal.cpp.
References connection, dbus_loop, LOG, LOG_LEVEL_VERBOSE, MOD_NAME, screencast_proxy, session, and unique_name.
| ScreenCastPortal_impl::~ScreenCastPortal_impl | ( | ) |
Definition at line 213 of file dbus_portal.cpp.
References connection, dbus_connection(), dbus_loop, screencast_proxy, and session.

|
private |
Definition at line 253 of file dbus_portal.cpp.
References CallbackWrapper(), connection, LOG, LOG_LEVEL_VERBOSE, MOD_NAME, screencast_proxy, and sender_name().
Referenced by run(), session_created(), and sources_selected().

|
inline |
Definition at line 171 of file dbus_portal.cpp.
References connection.
Referenced by ~ScreenCastPortal_impl(), and run().
|
inline |
|
inline |
|
inline |
|
staticprivate |
Definition at line 311 of file dbus_portal.cpp.
Referenced by started().
|
inline |
Definition at line 167 of file dbus_portal.cpp.
References screencast_proxy.
|
inline |
Definition at line 163 of file dbus_portal.cpp.
References dbus_loop.
| void ScreenCastPortal_impl::run | ( | std::string | restore_file, |
| bool | show_cursor ) |
Definition at line 424 of file dbus_portal.cpp.
References call_with_request(), dbus_connection(), on_portal_session_closed(), params, restore_file, run_loop(), session_path(), session_token(), and show_cursor.

|
inline |
Definition at line 158 of file dbus_portal.cpp.
References dbus_loop, LOG, LOG_LEVEL_VERBOSE, and MOD_NAME.
Referenced by run().
|
inline |
Definition at line 175 of file dbus_portal.cpp.
References unique_name.
Referenced by call_with_request().
|
staticprivate |
Definition at line 384 of file dbus_portal.cpp.
References call_with_request(), LOG, LOG_LEVEL_DEBUG, MOD_NAME, params, promise, REQUEST_RESPONSE_OK, restore_file, session_path(), show_cursor, and sources_selected().

|
inline |
Definition at line 180 of file dbus_portal.cpp.
References session.
Referenced by run(), session_created(), and sources_selected().
|
inline |
|
staticprivate |
Definition at line 367 of file dbus_portal.cpp.
References call_with_request(), LOG, LOG_LEVEL_INFO, MOD_NAME, promise, REQUEST_RESPONSE_OK, session_path(), and started().
Referenced by session_created().

|
staticprivate |
Definition at line 332 of file dbus_portal.cpp.
References LOG, LOG_LEVEL_DEBUG, MOD_NAME, pipewire_opened(), REQUEST_RESPONSE_CANCELLED_BY_USER, and REQUEST_RESPONSE_OK.
Referenced by sources_selected().

|
private |
Definition at line 126 of file dbus_portal.cpp.
Referenced by ScreenCastPortal_impl(), ~ScreenCastPortal_impl(), call_with_request(), and dbus_connection().
|
private |
Definition at line 125 of file dbus_portal.cpp.
Referenced by ScreenCastPortal_impl(), ~ScreenCastPortal_impl(), quit_loop(), and run_loop().
|
private |
Definition at line 137 of file dbus_portal.cpp.
Referenced by get_future(), session_created(), and sources_selected().
|
private |
Definition at line 134 of file dbus_portal.cpp.
Referenced by get_pw_fd().
|
private |
Definition at line 135 of file dbus_portal.cpp.
Referenced by get_pw_node().
|
staticconstexpr |
Definition at line 142 of file dbus_portal.cpp.
Referenced by started().
|
staticconstexpr |
Definition at line 141 of file dbus_portal.cpp.
Referenced by session_created(), sources_selected(), and started().
|
staticconstexpr |
Definition at line 143 of file dbus_portal.cpp.
|
private |
Definition at line 131 of file dbus_portal.cpp.
Referenced by run(), and session_created().
|
private |
Definition at line 127 of file dbus_portal.cpp.
Referenced by ScreenCastPortal_impl(), ~ScreenCastPortal_impl(), call_with_request(), and proxy().
|
private |
Definition at line 129 of file dbus_portal.cpp.
Referenced by ScreenCastPortal_impl(), ~ScreenCastPortal_impl(), session_path(), and session_token().
|
private |
Definition at line 132 of file dbus_portal.cpp.
Referenced by run(), and session_created().
|
private |
Definition at line 128 of file dbus_portal.cpp.
Referenced by ScreenCastPortal_impl(), and sender_name().