Skip to content
Snippets Groups Projects
Commit 076fe6fc authored by Vivien Didelot's avatar Vivien Didelot Committed by Tristan Matthews
Browse files

gnome: rename VideoControls to VideoManager

This commit update to GNOME client code with the previously renamed
VideoManager class.

Refs #46643

Change-Id: Iee9af85192d776fdda9638817f2bc0853e7fde42
parent 36e0124a
Branches
Tags
No related merge requests found
...@@ -16,8 +16,8 @@ presencemanager-glue.h: presencemanager-introspec.xml Makefile.am ...@@ -16,8 +16,8 @@ presencemanager-glue.h: presencemanager-introspec.xml Makefile.am
endif endif
if SFL_VIDEO if SFL_VIDEO
BUILT_SOURCES+=video_controls-glue.h BUILT_SOURCES+=videomanager-glue.h
video_controls-glue.h: video_controls-introspec.xml Makefile.am videomanager-glue.h: videomanager-introspec.xml Makefile.am
dbus-binding-tool --mode=glib-client $< > $@ dbus-binding-tool --mode=glib-client $< > $@
endif endif
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include "callmanager-glue.h" #include "callmanager-glue.h"
#include "configurationmanager-glue.h" #include "configurationmanager-glue.h"
#ifdef SFL_VIDEO #ifdef SFL_VIDEO
#include "video_controls-glue.h" #include "videomanager-glue.h"
#endif #endif
#include "instance-glue.h" #include "instance-glue.h"
#include "preferencesdialog.h" #include "preferencesdialog.h"
...@@ -1032,12 +1032,12 @@ gboolean dbus_connect(GError **error, SFLPhoneClient *client) ...@@ -1032,12 +1032,12 @@ gboolean dbus_connect(GError **error, SFLPhoneClient *client)
#endif #endif
#ifdef SFL_VIDEO #ifdef SFL_VIDEO
const gchar *videocontrols_object_instance = "/org/sflphone/SFLphone/VideoControls"; const gchar *videomanager_object_instance = "/org/sflphone/SFLphone/VideoManager";
const gchar *videocontrols_interface = "org.sflphone.SFLphone.VideoControls"; const gchar *videomanager_interface = "org.sflphone.SFLphone.VideoManager";
video_proxy = dbus_g_proxy_new_for_name(connection, dbus_message_bus_name, video_proxy = dbus_g_proxy_new_for_name(connection, dbus_message_bus_name,
videocontrols_object_instance, videocontrols_interface); videomanager_object_instance, videomanager_interface);
if (video_proxy == NULL) { if (video_proxy == NULL) {
g_warning("Error: Failed to connect to %s", videocontrols_object_instance); g_warning("Error: Failed to connect to %s", videomanager_object_instance);
return FALSE; return FALSE;
} }
/* Video related signals */ /* Video related signals */
...@@ -1447,7 +1447,7 @@ dbus_get_video_codecs(const gchar *accountID) ...@@ -1447,7 +1447,7 @@ dbus_get_video_codecs(const gchar *accountID)
{ {
GError *error = NULL; GError *error = NULL;
GPtrArray *array = NULL; GPtrArray *array = NULL;
org_sflphone_SFLphone_VideoControls_get_codecs(video_proxy, accountID, &array, &error); org_sflphone_SFLphone_VideoManager_get_codecs(video_proxy, accountID, &array, &error);
check_error(error); check_error(error);
return array; return array;
} }
...@@ -1456,7 +1456,7 @@ void ...@@ -1456,7 +1456,7 @@ void
dbus_set_video_codecs(const gchar *accountID, const GPtrArray *list) dbus_set_video_codecs(const gchar *accountID, const GPtrArray *list)
{ {
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_set_codecs(video_proxy, accountID, list, &error); org_sflphone_SFLphone_VideoManager_set_codecs(video_proxy, accountID, list, &error);
check_error(error); check_error(error);
} }
...@@ -1465,7 +1465,7 @@ dbus_switch_video_input(const gchar *resource) ...@@ -1465,7 +1465,7 @@ dbus_switch_video_input(const gchar *resource)
{ {
GError *error = NULL; GError *error = NULL;
gboolean switched; gboolean switched;
org_sflphone_SFLphone_VideoControls_switch_input(video_proxy, resource, &switched, &error); org_sflphone_SFLphone_VideoManager_switch_input(video_proxy, resource, &switched, &error);
check_error(error); check_error(error);
return switched; return switched;
} }
...@@ -1908,7 +1908,7 @@ dbus_get_active_video_device_channel() ...@@ -1908,7 +1908,7 @@ dbus_get_active_video_device_channel()
gchar *str = NULL; gchar *str = NULL;
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_get_active_device_channel(video_proxy, &str, &error); org_sflphone_SFLphone_VideoManager_get_active_device_channel(video_proxy, &str, &error);
check_error(error); check_error(error);
return str; return str;
...@@ -1920,7 +1920,7 @@ dbus_get_active_video_device_size() ...@@ -1920,7 +1920,7 @@ dbus_get_active_video_device_size()
gchar *str = NULL; gchar *str = NULL;
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_get_active_device_size(video_proxy, &str, &error); org_sflphone_SFLphone_VideoManager_get_active_device_size(video_proxy, &str, &error);
check_error(error); check_error(error);
return str; return str;
...@@ -1932,7 +1932,7 @@ dbus_get_active_video_device_rate() ...@@ -1932,7 +1932,7 @@ dbus_get_active_video_device_rate()
gchar *str = NULL; gchar *str = NULL;
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_get_active_device_rate(video_proxy, &str, &error); org_sflphone_SFLphone_VideoManager_get_active_device_rate(video_proxy, &str, &error);
check_error(error); check_error(error);
return str; return str;
...@@ -1944,7 +1944,7 @@ dbus_get_active_video_device() ...@@ -1944,7 +1944,7 @@ dbus_get_active_video_device()
gchar *str = NULL; gchar *str = NULL;
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_get_active_device(video_proxy, &str, &error); org_sflphone_SFLphone_VideoManager_get_active_device(video_proxy, &str, &error);
check_error(error); check_error(error);
return str; return str;
...@@ -1954,7 +1954,7 @@ void ...@@ -1954,7 +1954,7 @@ void
dbus_set_active_video_device(const gchar *device) dbus_set_active_video_device(const gchar *device)
{ {
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_set_active_device(video_proxy, device, &error); org_sflphone_SFLphone_VideoManager_set_active_device(video_proxy, device, &error);
check_error(error); check_error(error);
} }
...@@ -1962,7 +1962,7 @@ void ...@@ -1962,7 +1962,7 @@ void
dbus_set_active_video_device_channel(const gchar *channel) dbus_set_active_video_device_channel(const gchar *channel)
{ {
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_set_active_device_channel(video_proxy, channel, &error); org_sflphone_SFLphone_VideoManager_set_active_device_channel(video_proxy, channel, &error);
check_error(error); check_error(error);
} }
...@@ -1970,7 +1970,7 @@ void ...@@ -1970,7 +1970,7 @@ void
dbus_set_active_video_device_size(const gchar *size) dbus_set_active_video_device_size(const gchar *size)
{ {
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_set_active_device_size(video_proxy, size, &error); org_sflphone_SFLphone_VideoManager_set_active_device_size(video_proxy, size, &error);
check_error(error); check_error(error);
} }
...@@ -1978,7 +1978,7 @@ void ...@@ -1978,7 +1978,7 @@ void
dbus_set_active_video_device_rate(const gchar *rate) dbus_set_active_video_device_rate(const gchar *rate)
{ {
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_set_active_device_rate(video_proxy, rate, &error); org_sflphone_SFLphone_VideoManager_set_active_device_rate(video_proxy, rate, &error);
check_error(error); check_error(error);
} }
...@@ -1988,7 +1988,7 @@ dbus_get_video_device_list() ...@@ -1988,7 +1988,7 @@ dbus_get_video_device_list()
gchar **array = NULL; gchar **array = NULL;
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_get_device_list(video_proxy, &array, &error); org_sflphone_SFLphone_VideoManager_get_device_list(video_proxy, &array, &error);
check_error(error); check_error(error);
return array; return array;
} }
...@@ -2001,7 +2001,7 @@ dbus_get_video_device_channel_list(const gchar *dev) ...@@ -2001,7 +2001,7 @@ dbus_get_video_device_channel_list(const gchar *dev)
{ {
gchar **array = NULL; gchar **array = NULL;
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_get_device_channel_list(video_proxy, dev, &array, &error); org_sflphone_SFLphone_VideoManager_get_device_channel_list(video_proxy, dev, &array, &error);
check_error(error); check_error(error);
return array; return array;
} }
...@@ -2015,7 +2015,7 @@ dbus_get_video_device_size_list(const gchar *dev, const gchar *channel) ...@@ -2015,7 +2015,7 @@ dbus_get_video_device_size_list(const gchar *dev, const gchar *channel)
gchar **array = NULL; gchar **array = NULL;
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_get_device_size_list(video_proxy, dev, channel, &array, &error); org_sflphone_SFLphone_VideoManager_get_device_size_list(video_proxy, dev, channel, &array, &error);
check_error(error); check_error(error);
return array; return array;
} }
...@@ -2029,7 +2029,7 @@ dbus_get_video_device_rate_list(const gchar *dev, const gchar *channel, const gc ...@@ -2029,7 +2029,7 @@ dbus_get_video_device_rate_list(const gchar *dev, const gchar *channel, const gc
gchar **array = NULL; gchar **array = NULL;
GError *error = NULL; GError *error = NULL;
org_sflphone_SFLphone_VideoControls_get_device_rate_list(video_proxy, dev, channel, size, &array, &error); org_sflphone_SFLphone_VideoManager_get_device_rate_list(video_proxy, dev, channel, size, &array, &error);
check_error(error); check_error(error);
return array; return array;
} }
...@@ -2298,14 +2298,14 @@ void ...@@ -2298,14 +2298,14 @@ void
dbus_start_video_camera() dbus_start_video_camera()
{ {
set_camera_button_sensitivity(FALSE); set_camera_button_sensitivity(FALSE);
org_sflphone_SFLphone_VideoControls_start_camera_async(video_proxy, video_camera_async_cb, NULL); org_sflphone_SFLphone_VideoManager_start_camera_async(video_proxy, video_camera_async_cb, NULL);
} }
void void
dbus_stop_video_camera() dbus_stop_video_camera()
{ {
set_camera_button_sensitivity(FALSE); set_camera_button_sensitivity(FALSE);
org_sflphone_SFLphone_VideoControls_stop_camera_async(video_proxy, video_camera_async_cb, NULL); org_sflphone_SFLphone_VideoManager_stop_camera_async(video_proxy, video_camera_async_cb, NULL);
} }
gboolean gboolean
...@@ -2313,7 +2313,7 @@ dbus_has_video_camera_started() ...@@ -2313,7 +2313,7 @@ dbus_has_video_camera_started()
{ {
GError *error = NULL; GError *error = NULL;
gboolean started = FALSE; gboolean started = FALSE;
org_sflphone_SFLphone_VideoControls_has_camera_started(video_proxy, &started, &error); org_sflphone_SFLphone_VideoManager_has_camera_started(video_proxy, &started, &error);
check_error(error); check_error(error);
return started; return started;
} }
......
<?xml version="1.0" ?> <?xml version="1.0" ?>
<node name="/video_controls-introspec" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> <node name="/videomanager-introspec" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.sflphone.SFLphone.VideoControls"> <interface name="org.sflphone.SFLphone.VideoManager">
<!-- Video device methods --> <!-- Video device methods -->
<method name="getDeviceList" tp:name-for-bindings="getDeviceList"> <method name="getDeviceList" tp:name-for-bindings="getDeviceList">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment