aboutsummaryrefslogtreecommitdiff
path: root/introspection/mm-modem-gsm-ussd.xml
blob: ae6884f0a049c22055b458a298b103f05578eb67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="UTF-8" ?>

<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">

  <interface name="org.freedesktop.ModemManager.Modem.Gsm.Ussd">
    <method name="Initiate">
      <tp:docstring>
        Sends a USSD command string to the network initiating a USSD session.
        When the request is handled by the network, the method returns the
        response or an appropriate error.  The network may be awaiting further
        response from the ME after returning from this method and no new command
        can be initiated until this one is cancelled or ended.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_gsm_ussd_initiate"/>
      <arg name="command" type="s" direction="in">
        <tp:docstring>
          The command to start the USSD session with.
        </tp:docstring>
      </arg>
      <arg name="reply" type="s" direction="out">
        <tp:docstring>
          The network response to the command which started the USSD session.
        </tp:docstring>
      </arg>
    </method>

    <method name="Respond">
      <tp:docstring>
        Respond to a USSD request that is either initiated by the mobile network,
        or that is awaiting further input after Initiate() was called.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_gsm_ussd_respond"/>
      <arg name="response" type="s" direction="in">
        <tp:docstring>
          The response to network-initiated USSD command, or a response to a 
          request for further input.
      </tp:docstring>
      </arg>
    </method>

    <method name="Cancel">
      <tp:docstring>
        Cancel an ongoing USSD session, either mobile or network initiated.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_gsm_ussd_cancel"/>
    </method>

    <property name="State" type="s" access="read">
      <tp:docstring>
        Indicates the state of any ongoing USSD session.  Values may be one of
        the following: "idle" (no active session), "active" (a session is active
        and the mobile is waiting for a response), "user-response" (the network
        is waiting for the client's response, which must be sent using Respond()).
      </tp:docstring>
    </property>

    <property name="NetworkNotification" type="s" access="read">
      <tp:docstring>
        Contains any network-initiated request to which no USSD response is
        required.  When no USSD session is active, or when there is no network-
        initiated request, this property will be a zero-length string.
      </tp:docstring>
    </property>

    <property name="NetworkRequest" type="s" access="read">
      <tp:docstring>
        Contains any pending network-initiated request for a response.  Client
        should call Respond() with the appropriate response to this request.
        When no USSD session is active, or when there is no pending
        network-initiated request, this property will be a zero-length string.
      </tp:docstring>
    </property>

  </interface>
</node>