aboutsummaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-12-11 22:28:36 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-12-24 14:06:13 +0100
commit049ebb70842ad07bc5c03f096960e909ad36d85c (patch)
tree3390751e639eb07619556afb83d5b2a956c54458 /introspection
parentb90d64192aad518ca027265f5680314af75d2f12 (diff)
api,profile-manager: new 'IndexField' property
For most protocols, the operations to manage profiles require a unique 'profile-id' as index. This applies to AT, QMI and generic MBIM. But for MBIM using the Microsoft Extensions for profile management, this is no longer true; the device expects the 'apn-type' to be the index. This new property lets the user know which is the expected index field in the Delete() and Set() operations.
Diffstat (limited to 'introspection')
-rw-r--r--introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml28
1 files changed, 23 insertions, 5 deletions
diff --git a/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml b/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml
index f3086757..790d9aea 100644
--- a/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml
+++ b/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml
@@ -64,9 +64,11 @@
@requested_properties: the requested profile properties.
@stored_properties: the stored profile properties.
- Creates or updates a connection profile on this modem. If
- <literal>"profile-id"</literal> is not given, a new profile will be
- created; otherwise, the profile with the given ID will be updated.
+ Creates or updates a connection profile on this modem, depending on
+ whether the expected
+ <link linkend="gdbus-property-org-freedesktop-ModemManager1-Modem-Modem3gpp-ProfileManager.IndexField">index field</link>
+ is given or not. If not given, a new profile will be created; otherwise,
+ the profile with the given index will be updated.
Profiles are represented as dictionaries of properties, and any of the
3GPP-specific properties defined in the
@@ -102,7 +104,9 @@
Delete:
@properties: the profile properties.
- Deletes the profile with the <literal>"profile-id"</literal> given in @properties.
+ Deletes the profile with the
+ <link linkend="gdbus-property-org-freedesktop-ModemManager1-Modem-Modem3gpp-ProfileManager.IndexField">index field</link>
+ given in @properties.
If additional settings are given in @properties they are ignored. This
allows the user to easily request the deletion of a profile that has been
@@ -113,7 +117,7 @@
cannot be fully removed. In this case, the method will succeed, but the
size of the list of profiles will not change.
- This method will fail if <literal>"profile-id"</literal> is not given.
+ This method will fail if the expected index field is not given.
The operation may fail if it is attempting to delete a profile
for which connected bearer objects already exist. In this case,
@@ -142,5 +146,19 @@
-->
<signal name="Updated" />
+ <!--
+ IndexField:
+
+ Indicates which field should be considered as unique index, depending
+ on the underlying protocol.
+
+ This will be 'profile-id' by default for all implementations, and only
+ set to 'apn-type' for MBIM devices implementing the Microsoft profile
+ management interface extensions.
+
+ Since: 1.20
+ -->
+ <property name="IndexField" type="s" access="read" />
+
</interface>
</node>