ModemManager Reference Manual | ||||
---|---|---|---|---|
Top | Description | Signals |
org.freedesktop.ModemManager1.Modem.Contactsorg.freedesktop.ModemManager1.Modem.Contacts — The ModemManager Contacts interface. |
Add (IN a{sv} properties, OUT u index); Delete (IN u index); Get (IN u index, OUT a{sv} properties); List (OUT aa{sv} results); Find (IN s pattern, OUT aa{sv} results); GetCount (OUT u count);
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 indexes of SIM cards or the device. Indexes may not be contiguous.
Add (IN a{sv} properties, OUT u index);
Add a new contact.
If any of the property in properties
exceeds the modem's size limit,
that property will be truncated to fit.
Known properties are:
|
Full name of the contact, given as a string value
(signature "s" ).
|
|
Telephone number, given as a string value
(signature "s" ).
|
|
Email address, given as a string value
(signature "s" ).
|
|
Group this contact belongs to, given as a string value
(signature "s" ).
|
|
Additional contact name, given as a string value
(signature "s" ).
|
|
Additional contact telephone number, given as a string value
(signature "s" ).
|
|
Boolean flag to specify whether this entry is hidden or not,
(signature "b" ).
|
|
Phonebook in which the contact is stored, given as a
MMModemContactsStorage,
(signature "u" ).
|
The index
number is an internal private number to ModemManager and does
not correspond to the index of the contact in the modem or SIM itself.
|
Dictionary of properties describing the contact. |
|
The index number of the new contact |
Delete (IN u index);
Delete a contact.
|
The index of the contact to delete. |
Get (IN u index, OUT a{sv} properties);
Retrieve a contact.
|
The index of the contact. |
|
The properties of the contact. |
List (OUT aa{sv} results);
List all contacts.
|
An array of dictionaries, each dictionary representing a contact. |
Find (IN s pattern, OUT aa{sv} results);
Find a contact.
|
The pattern to search for. |
|
An array of dictionaries, each dictionary representing a contact. |