mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 18:57:37 +00:00
dbus: Add initial interface for emergency calls
This commit is contained in:
parent
4fb2115b9b
commit
213b27bf20
3 changed files with 47 additions and 0 deletions
|
@ -76,6 +76,7 @@
|
|||
<chapter id="dbus">
|
||||
<title>DBus interfaces</title>
|
||||
<xi:include href="../src/dbus/calls-org.gnome.Calls.Call.xml"/>
|
||||
<xi:include href="../src/dbus/calls-org.gnome.Calls.EmergencyCalls.xml"/>
|
||||
</chapter>
|
||||
|
||||
<chapter id="gen_dbus_server">
|
||||
|
|
|
@ -7,3 +7,8 @@ generated_dbus_sources += gnome.gdbus_codegen('calls-call-dbus',
|
|||
interface_prefix: 'org.gnome',
|
||||
object_manager: true,
|
||||
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')
|
||||
|
|
41
src/dbus/org.gnome.Calls.EmergencyCalls.xml
Normal file
41
src/dbus/org.gnome.Calls.EmergencyCalls.xml
Normal 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>
|
Loading…
Reference in a new issue