aboutsummaryrefslogtreecommitdiff
path: root/introspection/org.freedesktop.ModemManager.Modem.xml
blob: 9d06f97cb9e7ae05225efca8579296296413d16d (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
<?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">
    <method name="Enable">
      <tp:docstring>
        Enable the device. Initializes the modem.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_enable"/>
      <arg name="enable" type="b" direction="in">
        <tp:docstring>
          True to enable the device, False to disable.
        </tp:docstring>
      </arg>
    </method>

    <method name="Connect">
      <tp:docstring>
        Dial in.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_connect"/>
      <arg name="number" type="s" direction="in">
        <tp:docstring>
          The number to use for dialing.
        </tp:docstring>
      </arg>
    </method>

    <method name="Disconnect">
      <tp:docstring>
        Disconnect modem.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_disconnect"/>
    </method>

    <method name="GetIP4Config">
      <tp:docstring>
        Request the IP4 configuration from the device.
        Note that it'll only be supported for IPMethod MM_MODEM_IP_METHOD_STATIC.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_get_ip4_config"/>
      <arg name="address" type="(uuuu)" direction="out">
        Structure containing IP4 address, DNS1, DNS2, DNS3.
        The DNS list is padded with 0's if there's less than 3 DNS servers.
      </arg>
    </method>

    <method name="GetIP4ConfigEx">
      <tp:docstring>
        Request the IPv4 configuration from the device.  Supported for all
        modes (DHCP, static, PPP) and should be used in preference to
        GetIP4Config.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_get_ip4_config_ex"/>
      <arg name="method" type="u" direction="out" tp:type="MM_MODEM_IP_METHOD">
        IP configuration method to be used.
      </arg>
      <arg name="properties" type="a{sv}" direction="out">
        Dictionary of IPv4 configuration details, including "address",
        "prefix", "gateway", "dns1", "dns2", etc.  All IP addresses given
        as strings; "prefix" given as a unsigned integer value.  Most values
        are only relevant for the MM_MODEM_IP_METHOD_STATIC IPMethod.
      </arg>
    </method>

    <method name="GetInfo">
      <tp:docstring>
        Get the card information (manufacturer, modem, version).
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_get_info"/>
      <arg name="info" type="(sss)" direction="out">
        <tp:docstring>
          Structure containing manufacturer, model, and version (revision) of the card.
        </tp:docstring>
      </arg>
    </method>

    <method name="Reset">
      <tp:docstring>
        Clear non-persistent configuration and state, and return the device to
        a newly-powered-on state.  This command may power-cycle the device.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_reset"/>
    </method>

    <method name="FactoryReset">
      <tp:docstring>
        Clear the modem's configuration (including persistent configuration and
        state), and return the device to a factory-default state. This command
        may or may not power-cycle the device.
      </tp:docstring>
      <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
      <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_factory_reset"/>
      <arg name="code" type="s" direction="in">
        Carrier-supplied code required to reset the modem.  Ignored if not required.
      </arg>
    </method>

    <signal name="StateChanged">
      <tp:docstring>
        The modem's state (see the State property) changed.
      </tp:docstring>
      <arg name="old" type="u" tp:type="MM_MODEM_STATE">
        <tp:docstring>
          Old state.
        </tp:docstring>
      </arg>
      <arg name="new" type="u" tp:type="MM_MODEM_STATE">
        <tp:docstring>
          New state.
        </tp:docstring>
      </arg>
      <arg name="reason" type="u" tp:type="MM_MODEM_STATE_REASON">
        <tp:docstring>
          Reason for this state change.
        </tp:docstring>
      </arg>
    </signal>

    <property name="Device" type="s" access="read">
      <tp:docstring>
        The modem port to use for IP configuration and traffic.
      </tp:docstring>
    </property>

    <property name="DeviceIdentifier" type="s" access="read">
      <tp:docstring>
        A best-effort device identifier based on various device information like
        model name, firmware revision, USB/PCI/PCMCIA IDs, and other properties.
        This ID is not guaranteed to be unique and may be shared between
        identical devices with the same firmware, but is intended to be
        "unique enough" for use as a casual device identifier for various
        user experience operations.  This is not the device's IMEI or ESN since
        those may not be available before unlocking the device via a PIN.
      </tp:docstring>
    </property>

    <property name="MasterDevice" type="s" access="read">
      <tp:docstring>
        The physical modem device reference (ie, USB, PCI, PCMCIA device), which
        may be dependent upon the operating system.  In Linux for example, this
        points to a sysfs path of the usb_device object.
      </tp:docstring>
    </property>

    <property name="Driver" type="s" access="read">
      <tp:docstring>
        The driver handling the device.
      </tp:docstring>
    </property>

    <property name="Type" type="u" access="read" tp:type="MM_MODEM_TYPE">
      <tp:docstring>
        The modem type.
      </tp:docstring>
    </property>

    <property name="Enabled" type="b" access="read">
      <tp:docstring>
        TRUE if the modem is enabled (ie, powered and usable), FALSE if it is disabled.
      </tp:docstring>
    </property>

    <property name="EquipmentIdentifier" type="s" access="read">
      <tp:docstring>
        The identity of the device. This will be the IMEI number for
        GSM devices and the hex-format ESN/MEID for CDMA devices.
      </tp:docstring>
    </property>

    <property name="UnlockRequired" type="s" access="read">
      <tp:docstring>
        Empty if the device is usable without an unlock code or has already
        been unlocked. If the device needs to be unlocked before becoming usable this
        property contains the specific unlock code required.  Valid unlock code values
        are "" (blank), "sim-pin", "sim-puk", "ph-sim-pin", "ph-fsim-pin",
        "ph-fsim-puk", "sim-pin2", "sim-puk2", "ph-net-pin", "ph-net-puk",
        "ph-netsub-pin", "ph-netsub-puk", "ph-sp-pin", "ph-sp-puk", "ph-corp-pin", and
        "ph-corp-puk".
      </tp:docstring>
    </property>

    <property name="UnlockRetries" type="u" access="read">
      <tp:docstring>
        The number of unlock retries remaining for the unlock code given by the
        property UnlockRequired, or 999 if the device does not support reporting
        unlock retries. If UnlockRequired is blank, the value of this property
        is not meaningful.
      </tp:docstring>
    </property>

    <property name="PinRetryCounts" type="a{su}" access="read">
      <tp:docstring>
        A dictionary in which the keys are the names of the unlock codes
        specified for the UnlockRequiredProperty, and the values are integers
        giving the number of PIN tries remaining before the code becomes
        blocked (requiring a PUK) or permanently blocked. Dictionary entries
        exist only for the codes for which the modem is able to report retry
        counts.
      </tp:docstring>
    </property>

    <property name="IpMethod" type="u" access="read" tp:type="MM_MODEM_IP_METHOD">
      <tp:docstring>
        The IP configuration method.
      </tp:docstring>
    </property>

    <property name="SupportedIpTypes" type="u" access="read" tp:type="MM_MODEM_IP_TYPE">
      <tp:docstring>
        The supported IP types; one or more of IPv4, IPv6, and dual-stack IPv4 + IPv6.
      </tp:docstring>
    </property>

    <property name="IpTimeout" type="u" access="read">
      <tp:docstring>
        Maximum time to wait for a successful IP establishment, when PPP is used.
      </tp:docstring>
    </property>

    <!-- Enabled should be folded into this. -->
    <property name="State" type="u" access="read" tp:type="MM_MODEM_STATE">
      <tp:docstring>
        State of the modem.
      </tp:docstring>
    </property>

    <tp:enum name="MM_MODEM_TYPE" type="u">
      <tp:enumvalue suffix="UNKNOWN" value="0">
        <tp:docstring>
          Unknown device.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="GSM" value="1">
        <tp:docstring>
          A GSM device.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="CDMA" value="2">
        <tp:docstring>
          A CDMA device.
        </tp:docstring>
      </tp:enumvalue>
    </tp:enum>

    <tp:enum name="MM_MODEM_IP_METHOD" type="u">
      <tp:enumvalue suffix="PPP" value="0">
        <tp:docstring>
          Use PPP to get the address.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="STATIC" value="1">
        <tp:docstring>
          Static configuration, the modem will provide IP information.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="DHCP" value="2">
        <tp:docstring>
          Use DHCP
        </tp:docstring>
      </tp:enumvalue>
    </tp:enum>

    <tp:flags name="MM_MODEM_IP_TYPE" type="u">
      <tp:flag suffix="UNKNOWN" value="0x0">
        <tp:docstring>
          Unknown or invalid type.
        </tp:docstring>
      </tp:flag>
      <tp:flag suffix="IPV4" value="0x1">
        <tp:docstring>
          IPv4-only addressing is supported.
        </tp:docstring>
      </tp:flag>
      <tp:flag suffix="IPV6" value="0x2">
        <tp:docstring>
          IPv6-only addressing is supported
        </tp:docstring>
      </tp:flag>
      <tp:flag suffix="IPV4V6" value="0x4">
        <tp:docstring>
          Simultaneous dual-stack IPv4 and IPv6 addressing is supported.
        </tp:docstring>
      </tp:flag>
    </tp:flags>

    <tp:enum name="MM_MODEM_STATE" type="u">
      <tp:enumvalue suffix="UNKNOWN" value="0">
        <tp:docstring>
          State unknown or not reportable.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="DISABLED" value="10">
        <tp:docstring>
          Modem is disabled.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="DISABLING" value="20">
        <tp:docstring>
          Modem is being disabled.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="ENABLING" value="30">
        <tp:docstring>
          Modem is being enabled.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="ENABLED" value="40">
        <tp:docstring>
          Modem is enabled.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="SEARCHING" value="50">
        <tp:docstring>
          Modem is searching networks.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="REGISTERED" value="60">
        <tp:docstring>
          Modem is registered in a network.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="DISCONNECTING" value="70">
        <tp:docstring>
          Modem is being disconnected.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="CONNECTING" value="80">
        <tp:docstring>
          Modem is being connected.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="CONNECTED" value="90">
        <tp:docstring>
          Modem is connected
        </tp:docstring>
      </tp:enumvalue>
    </tp:enum>

    <tp:enum name="MM_MODEM_STATE_REASON" type="u">
      <tp:enumvalue suffix="NONE" value="0">
        <tp:docstring>
          Reason unknown or not reportable.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="USER_REQUESTED" value="1">
        <tp:docstring>
          State change was requested by an interface user.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="SUSPEND" value="2">
        <tp:docstring>
          State change was caused by a system suspend.
        </tp:docstring>
      </tp:enumvalue>
      <tp:enumvalue suffix="ROAMING_NOT_ALLOWED" value="3">
        <tp:docstring>
          State change was caused because the modem is roaming and roaming
          is not allowed.
        </tp:docstring>
      </tp:enumvalue>
    </tp:enum>

  </interface>
</node>