1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

dbus: Add initial interface for emergency calls

This commit is contained in:
Guido Günther 2021-12-17 18:49:25 +01:00 committed by Evangelos Ribeiro Tzaras
parent 4fb2115b9b
commit 213b27bf20
3 changed files with 47 additions and 0 deletions

View file

@ -76,6 +76,7 @@
<chapter id="dbus"> <chapter id="dbus">
<title>DBus interfaces</title> <title>DBus interfaces</title>
<xi:include href="../src/dbus/calls-org.gnome.Calls.Call.xml"/> <xi:include href="../src/dbus/calls-org.gnome.Calls.Call.xml"/>
<xi:include href="../src/dbus/calls-org.gnome.Calls.EmergencyCalls.xml"/>
</chapter> </chapter>
<chapter id="gen_dbus_server"> <chapter id="gen_dbus_server">

View file

@ -7,3 +7,8 @@ generated_dbus_sources += gnome.gdbus_codegen('calls-call-dbus',
interface_prefix: 'org.gnome', interface_prefix: 'org.gnome',
object_manager: true, object_manager: true,
namespace: 'CallsDBus') namespace: 'CallsDBus')
generated_dbus_sources += gnome.gdbus_codegen('calls-emergency-call-dbus',
'org.gnome.Calls.EmergencyCalls.xml',
docbook: 'calls',
interface_prefix: 'org.gnome.Calls',
namespace: 'CallsDBus')

View file

@ -0,0 +1,41 @@
<node>
<!--
org.gnome.Calls.EmergencyCalls:
An interface to query emergency numbers and to initiate emergency
calls.
-->
<interface name="org.gnome.Calls.EmergencyCalls">
<!--
GetEmergencyContacts:
@contacts: Available contacts
* "id" (s): The identifier to dial (usually the phone number)
* "name' (s): The contacts name
* "source" (i): The contacts source (e.g. addresbook, sim, ...)
* "properties" (a{sv}): Additional properties
Retrieves the currently known emergency contacts. The key is the item to call
(e.g. for the cellular network the phone number).
-->
<method name="GetEmergencyContacts">
<arg name="contacts" direction="out" type="a(ssia{sv})"/>
</method>
<!--
CallEmergencyContact:
@id: The id retrieved via @GetEmergencyContacts (for cellular networks this is the phone number)
Calls an emergency contact by its id.
-->
<method name="CallEmergencyContact">
<arg name="id" direction="in" type="s"/>
</method>
<!--
EmergencyNumbersChanged:
The list of emergency numbers changed. This can e.g. happen when an origin goes away. The
signal is meant as a hint (it might be emitted although the list of numbers is unchanged).
-->
<signal name="EmergencyNumbersChanged"/>
</interface>
</node>