origin: Add country-code property

And add a binding in CallsManager for the default origin
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-03-25 20:25:09 +01:00
parent 69b170ecfe
commit 7d69d78b70
6 changed files with 59 additions and 1 deletions

View File

@@ -62,6 +62,14 @@ calls_origin_default_init (CallsOriginInterface *iface)
"The list of current calls",
G_PARAM_READABLE));
g_object_interface_install_property (
iface,
g_param_spec_string ("country-code",
"country code",
"The country code of the origin, if any",
NULL,
G_PARAM_READABLE));
signals[SIGNAL_CALL_ADDED] =
g_signal_newv ("call-added",
G_TYPE_FROM_INTERFACE (iface),