Spec out and implement a command to get a GSM SIM SPN value.

Using a SIM with a SPN, run the following command:
dbus-send --system --dest=org.freedesktop.ModemManager --print-reply /org/freedesktop/ModemManager/Modems/0 org.freedesktop.ModemManager.Modem.Gsm.Card.GetSpn

Change-Id: I8f36c8432f40fa4e3cb3f8c6ceef16b2bdadf2a1
Reviewed-on: http://gerrit.chromium.org/gerrit/1464
Reviewed-by: Nathan J. Williams <njw@chromium.org>
Tested-by: Nathan J. Williams <njw@chromium.org>
This commit is contained in:
Nathan Williams
2011-06-02 17:45:56 -05:00
committed by Dan Williams
parent dfab00bf1e
commit a1378ae8e8
4 changed files with 169 additions and 0 deletions
@@ -42,6 +42,19 @@
</arg>
</method>
<method name="GetSpn">
<tp:docstring>
Returns the SPN (Service Provider Name) from the SIM card,
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_gsm_modem_get_spn"/>
<arg name="spn" type="s" direction="out">
<tp:docstring>
The Service Provider Name.
</tp:docstring>
</arg>
</method>
<method name="SendPuk">
<tp:docstring>
Send the PUK and a new PIN to unlock the SIM card.