api,sim: new 'Active' property

In preparation for the multi-SIM setup, we need a way to tell whether
a given SIM card is active or not in the system.

On systems with one single SIM slot, the available SIM card will
always be active.

On Multi-SIM Single-Standby setups we may have multiple SIM slots with
multiple SIM cards, but only one of them will be active at any given
time.

On Multi-SIM Multi-Standby setups we may have multiple SIM slots with
multiple SIM cards that may be active at the same time. E.g. the QMI
protocol allows up to 5 different active SIM cards (primary,
secondary, tertiary...).
This commit is contained in:
Aleksander Morgado
2020-08-01 09:59:13 +02:00
parent 48973e3d72
commit 86a183778b
18 changed files with 52 additions and 0 deletions

View File

@@ -1209,6 +1209,7 @@ MMSim
<SUBSECTION Getters>
mm_sim_get_path
mm_sim_dup_path
mm_sim_get_active
mm_sim_get_identifier
mm_sim_dup_identifier
mm_sim_get_imsi
@@ -3088,6 +3089,7 @@ mm_gdbus_object_manager_client_get_type
MmGdbusSim
MmGdbusSimIface
<SUBSECTION Getters>
mm_gdbus_sim_get_active
mm_gdbus_sim_get_imsi
mm_gdbus_sim_dup_imsi
mm_gdbus_sim_get_sim_identifier
@@ -3112,6 +3114,7 @@ mm_gdbus_sim_call_change_pin
mm_gdbus_sim_call_change_pin_finish
mm_gdbus_sim_call_change_pin_sync
<SUBSECTION Private>
mm_gdbus_sim_set_active
mm_gdbus_sim_set_imsi
mm_gdbus_sim_set_operator_identifier
mm_gdbus_sim_set_operator_name