Commit f5d98f83 authored by Zeeshan Ali's avatar Zeeshan Ali

service-manager: Add 'AvailableAccuracyLevel' prop

Add D-Bus property to specify available accuracy level. For now we just
hardcode it to report that we can provide exact accuracy.
parent d043e1fe
......@@ -447,6 +447,13 @@ gclue_service_manager_set_property (GObject *object,
static void
gclue_service_manager_constructed (GObject *object)
/* FIXME: We need to probe the sources, somehow */
gclue_manager_set_available_accuracy_level (GCLUE_MANAGER (object),
static void
gclue_service_manager_class_init (GClueServiceManagerClass *klass)
......@@ -457,6 +464,7 @@ gclue_service_manager_class_init (GClueServiceManagerClass *klass)
object_class->finalize = gclue_service_manager_finalize;
object_class->get_property = gclue_service_manager_get_property;
object_class->set_property = gclue_service_manager_set_property;
object_class->constructed = gclue_service_manager_constructed;
g_type_class_add_private (object_class, sizeof (GClueServiceManagerPrivate));
......@@ -26,6 +26,14 @@
<property name="InUse" type="b" access="read"/>
The level of available accuracy, as
<link linkend="GClueAccuracyLevel">GClueAccuracyLevel</link>.
<property name="AvailableAccuracyLevel" type="u" access="read"/>
@client: The path for newly created client object
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment