From 18231c9f8df809aacd4534d0a081125e8d6569df Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 1 Aug 2011 17:47:38 -0500 Subject: [PATCH] api: refine new API based on suggestions from Eric Shienbrood --- ...freedesktop.ModemManager1.Modem.Bearer.xml | 6 ++- ...eedesktop.ModemManager1.Modem.Contacts.xml | 45 +++++++++++++++++-- new/org.freedesktop.ModemManager1.Modem.xml | 26 ++++++++--- new/org.freedesktop.ModemManager1.Sim.xml | 15 ++++++- 4 files changed, 80 insertions(+), 12 deletions(-) diff --git a/new/org.freedesktop.ModemManager1.Modem.Bearer.xml b/new/org.freedesktop.ModemManager1.Modem.Bearer.xml index 180641d8..a441840a 100644 --- a/new/org.freedesktop.ModemManager1.Modem.Bearer.xml +++ b/new/org.freedesktop.ModemManager1.Modem.Bearer.xml @@ -20,7 +20,11 @@ - The number to use for dialing. + The number to use for dialing (optional). Usually not required, in + which case it should be an empty (zero-length) string. Only required + for POTS connections or in certain special circumstances. If a number + is given for 3GPP (GSM/UMTS/LTE) based devices, it is always ignored, + as the number is generated internally if one is required at all. diff --git a/new/org.freedesktop.ModemManager1.Modem.Contacts.xml b/new/org.freedesktop.ModemManager1.Modem.Contacts.xml index 7ddab3c4..8e3c85f0 100644 --- a/new/org.freedesktop.ModemManager1.Modem.Contacts.xml +++ b/new/org.freedesktop.ModemManager1.Modem.Contacts.xml @@ -3,6 +3,15 @@ + + This interface provides access to contacts stored in various locations, + including SIM cards, device storage, and other locations. Operations + generally operate on all contacts regardless of their actual storage + location. Contacts are referred to by index numbers, which are internal + to ModemManager and do not represent indexs of SIM cards or the device. + Indexes may not be contiguous. + + Add a new contact. @@ -50,7 +59,7 @@ - Retrieve a contact from the SIM card. + Retrieve a contact. @@ -82,7 +91,7 @@ - Find a contact from the SIM card. + Find a contact. @@ -101,7 +110,7 @@ - Get the number of contacts stored on the SIM card. + Get the number of contacts. @@ -112,6 +121,36 @@ + + + + + Emitted when a new contact is added. + + + + The index number of the new contact. + + + + + The properties of the contact including those properties defined by + the Add method. + + + + + + + Emitted when a contact has been deleted. + + + + Index number of the now deleted contact. + + + + diff --git a/new/org.freedesktop.ModemManager1.Modem.xml b/new/org.freedesktop.ModemManager1.Modem.xml index 32a6a93f..15eb1b9c 100644 --- a/new/org.freedesktop.ModemManager1.Modem.xml +++ b/new/org.freedesktop.ModemManager1.Modem.xml @@ -60,6 +60,11 @@ ** FIXME: how about QoS? + + + On success, the object path of the newly created bearer. + + @@ -252,28 +257,30 @@ The allowed access technologies (eg 2G/3G/4G preference) the device is - allowed to use when connecting to a network. For POTS devices, only - the "any" mode is supported. + currently allowed to use when connecting to a network. For POTS + devices, only the "any" mode is supported. - Access technology selection modes supported by the device. + Access technology selection modes supported by the device. For POTS + devices, only the "any" mode will be returned. - The allowed radio frequency and technology bands the device may use when + The allowed radio frequency and technology bands the device is currently allowed to use when connecting to a network. For POTS devices, only - the "any" mode is supported. + the "any" value is supported. - Radio frequency and technology bands supported by the device. + Radio frequency and technology bands supported by the device. For POTS + devices, only the "any" value will be returned. @@ -307,7 +314,12 @@ - Modem has at LTE data capability. + Modem has LTE data capability. + + + + + Modem has LTE Advanced data capability. diff --git a/new/org.freedesktop.ModemManager1.Sim.xml b/new/org.freedesktop.ModemManager1.Sim.xml index 14c34aea..77724f03 100644 --- a/new/org.freedesktop.ModemManager1.Sim.xml +++ b/new/org.freedesktop.ModemManager1.Sim.xml @@ -27,13 +27,26 @@ - + The operator ID formatted as an MCC/MNC code. + + + Returns the name of the operator as given by the SIM card, if known. + + + + + + The operator name. + + + + Send the PUK and a new PIN to unlock the SIM card.