mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 12:25:31 +00:00
origin: Get rid of "numeric-addresses" property
This commit is contained in:
parent
6d031e2ab6
commit
66224c9a48
6 changed files with 0 additions and 51 deletions
|
@ -59,7 +59,6 @@ enum {
|
||||||
|
|
||||||
PROP_CALLS,
|
PROP_CALLS,
|
||||||
PROP_COUNTRY_CODE,
|
PROP_COUNTRY_CODE,
|
||||||
PROP_NUMERIC,
|
|
||||||
PROP_LAST_PROP,
|
PROP_LAST_PROP,
|
||||||
};
|
};
|
||||||
static GParamSpec *props[PROP_LAST_PROP];
|
static GParamSpec *props[PROP_LAST_PROP];
|
||||||
|
@ -215,10 +214,6 @@ get_property (GObject *object,
|
||||||
g_value_set_string (value, NULL);
|
g_value_set_string (value, NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_NUMERIC:
|
|
||||||
g_value_set_boolean (value, TRUE);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
||||||
break;
|
break;
|
||||||
|
@ -274,7 +269,6 @@ calls_dummy_origin_class_init (CallsDummyOriginClass *klass)
|
||||||
IMPLEMENTS (PROP_NAME, "name");
|
IMPLEMENTS (PROP_NAME, "name");
|
||||||
IMPLEMENTS (PROP_CALLS, "calls");
|
IMPLEMENTS (PROP_CALLS, "calls");
|
||||||
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
||||||
IMPLEMENTS (PROP_NUMERIC, "numeric-addresses");
|
|
||||||
|
|
||||||
#undef IMPLEMENTS
|
#undef IMPLEMENTS
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,6 @@ enum {
|
||||||
PROP_CALLS,
|
PROP_CALLS,
|
||||||
PROP_MODEM,
|
PROP_MODEM,
|
||||||
PROP_COUNTRY_CODE,
|
PROP_COUNTRY_CODE,
|
||||||
PROP_NUMERIC,
|
|
||||||
PROP_LAST_PROP,
|
PROP_LAST_PROP,
|
||||||
};
|
};
|
||||||
static GParamSpec *props[PROP_LAST_PROP];
|
static GParamSpec *props[PROP_LAST_PROP];
|
||||||
|
@ -673,10 +672,6 @@ get_property (GObject *object,
|
||||||
g_value_set_string (value, self->country_code);
|
g_value_set_string (value, self->country_code);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_NUMERIC:
|
|
||||||
g_value_set_boolean (value, TRUE);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
||||||
break;
|
break;
|
||||||
|
@ -892,7 +887,6 @@ calls_mm_origin_class_init (CallsMMOriginClass *klass)
|
||||||
IMPLEMENTS (PROP_NAME, "name");
|
IMPLEMENTS (PROP_NAME, "name");
|
||||||
IMPLEMENTS (PROP_CALLS, "calls");
|
IMPLEMENTS (PROP_CALLS, "calls");
|
||||||
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
||||||
IMPLEMENTS (PROP_NUMERIC, "numeric-addresses");
|
|
||||||
|
|
||||||
#undef IMPLEMENTS
|
#undef IMPLEMENTS
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,6 @@ enum {
|
||||||
PROP_CALLS,
|
PROP_CALLS,
|
||||||
PROP_MODEM,
|
PROP_MODEM,
|
||||||
PROP_COUNTRY_CODE,
|
PROP_COUNTRY_CODE,
|
||||||
PROP_NUMERIC,
|
|
||||||
PROP_LAST_PROP,
|
PROP_LAST_PROP,
|
||||||
};
|
};
|
||||||
static GParamSpec *props[PROP_LAST_PROP];
|
static GParamSpec *props[PROP_LAST_PROP];
|
||||||
|
@ -177,10 +176,6 @@ get_property (GObject *object,
|
||||||
g_value_set_string (value, NULL);
|
g_value_set_string (value, NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_NUMERIC:
|
|
||||||
g_value_set_boolean (value, TRUE);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
||||||
break;
|
break;
|
||||||
|
@ -577,7 +572,6 @@ calls_ofono_origin_class_init (CallsOfonoOriginClass *klass)
|
||||||
IMPLEMENTS (PROP_NAME, "name");
|
IMPLEMENTS (PROP_NAME, "name");
|
||||||
IMPLEMENTS (PROP_CALLS, "calls");
|
IMPLEMENTS (PROP_CALLS, "calls");
|
||||||
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
||||||
IMPLEMENTS (PROP_NUMERIC, "numeric-addresses");
|
|
||||||
|
|
||||||
#undef IMPLEMENTS
|
#undef IMPLEMENTS
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,6 @@ enum {
|
||||||
PROP_ACC_ADDRESS,
|
PROP_ACC_ADDRESS,
|
||||||
PROP_CALLS,
|
PROP_CALLS,
|
||||||
PROP_COUNTRY_CODE,
|
PROP_COUNTRY_CODE,
|
||||||
PROP_NUMERIC,
|
|
||||||
PROP_LAST_PROP,
|
PROP_LAST_PROP,
|
||||||
};
|
};
|
||||||
static GParamSpec *props[PROP_LAST_PROP];
|
static GParamSpec *props[PROP_LAST_PROP];
|
||||||
|
@ -1257,10 +1256,6 @@ calls_sip_origin_get_property (GObject *object,
|
||||||
g_value_set_string (value, NULL);
|
g_value_set_string (value, NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_NUMERIC:
|
|
||||||
g_value_set_boolean (value, FALSE);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
||||||
break;
|
break;
|
||||||
|
@ -1425,7 +1420,6 @@ calls_sip_origin_class_init (CallsSipOriginClass *klass)
|
||||||
IMPLEMENTS (PROP_NAME, "name");
|
IMPLEMENTS (PROP_NAME, "name");
|
||||||
IMPLEMENTS (PROP_CALLS, "calls");
|
IMPLEMENTS (PROP_CALLS, "calls");
|
||||||
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
IMPLEMENTS (PROP_COUNTRY_CODE, "country-code");
|
||||||
IMPLEMENTS (PROP_NUMERIC, "numeric-addresses");
|
|
||||||
|
|
||||||
#undef IMPLEMENTS
|
#undef IMPLEMENTS
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,14 +70,6 @@ calls_origin_default_init (CallsOriginInterface *iface)
|
||||||
NULL,
|
NULL,
|
||||||
G_PARAM_READABLE));
|
G_PARAM_READABLE));
|
||||||
|
|
||||||
g_object_interface_install_property (
|
|
||||||
iface,
|
|
||||||
g_param_spec_boolean ("numeric-addresses",
|
|
||||||
"Numeric addresses",
|
|
||||||
"Whether this origin can only dial numeric addresses (aka numbers)",
|
|
||||||
TRUE,
|
|
||||||
G_PARAM_READABLE));
|
|
||||||
|
|
||||||
signals[SIGNAL_CALL_ADDED] =
|
signals[SIGNAL_CALL_ADDED] =
|
||||||
g_signal_newv ("call-added",
|
g_signal_newv ("call-added",
|
||||||
G_TYPE_FROM_INTERFACE (iface),
|
G_TYPE_FROM_INTERFACE (iface),
|
||||||
|
@ -121,24 +113,6 @@ DEFINE_ORIGIN_GETTER(name, char *, NULL);
|
||||||
*/
|
*/
|
||||||
DEFINE_ORIGIN_GETTER(calls, GList *, NULL);
|
DEFINE_ORIGIN_GETTER(calls, GList *, NULL);
|
||||||
|
|
||||||
/**
|
|
||||||
* calls_origin_get_numeric_addresses:
|
|
||||||
* @self: a #CallsOrigin
|
|
||||||
*
|
|
||||||
* Returns: %TRUE if this origin can only dial numeric addresses (i.e. telephone numbers),
|
|
||||||
* %FALSE otherwise.
|
|
||||||
*/
|
|
||||||
gboolean
|
|
||||||
calls_origin_get_numeric_addresses (CallsOrigin *origin)
|
|
||||||
{
|
|
||||||
gboolean numeric;
|
|
||||||
|
|
||||||
g_return_val_if_fail (CALLS_IS_ORIGIN (origin), FALSE);
|
|
||||||
|
|
||||||
g_object_get (origin, "numeric-addresses", &numeric, NULL);
|
|
||||||
return numeric;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* calls_origin_foreach_call:
|
* calls_origin_foreach_call:
|
||||||
* @self: a #CallsOrigin
|
* @self: a #CallsOrigin
|
||||||
|
|
|
@ -52,7 +52,6 @@ typedef void (*CallsOriginForeachCallFunc) (gpointer param, CallsCall* call, Cal
|
||||||
|
|
||||||
char * calls_origin_get_name (CallsOrigin *self);
|
char * calls_origin_get_name (CallsOrigin *self);
|
||||||
GList * calls_origin_get_calls (CallsOrigin *self);
|
GList * calls_origin_get_calls (CallsOrigin *self);
|
||||||
gboolean calls_origin_get_numeric_addresses (CallsOrigin *self);
|
|
||||||
void calls_origin_foreach_call (CallsOrigin *self,
|
void calls_origin_foreach_call (CallsOrigin *self,
|
||||||
CallsOriginForeachCallFunc callback,
|
CallsOriginForeachCallFunc callback,
|
||||||
gpointer param);
|
gpointer param);
|
||||||
|
|
Loading…
Reference in a new issue