libmm-glib,iface-modem-location: add MMLocation3gpp 3 digit MNC support

MMLocation3gpp provides MCC/MNC information as integers, so it can not
make distinction between operator codes such as XXX01 and XXX001.

This commit deprecates mm_location_3gpp_get_mobile_network_code() and
implements a new function mm_location_3gpp_get_operator_code() which
provides the MCC+MNC in string format.

The mm_location_3gpp_get_mobile_country_code() is still available as
returning the MCC as an integer does not have ambiguity issues.
This commit is contained in:
Teijo Kinnunen
2021-05-06 14:35:41 +03:00
parent 14c4f27ae4
commit 879ec1a5d4
6 changed files with 204 additions and 155 deletions

View File

@@ -509,6 +509,7 @@ MMLocation3gpp
<SUBSECTION Getters>
mm_location_3gpp_get_mobile_country_code
mm_location_3gpp_get_mobile_network_code
mm_location_3gpp_get_operator_code
mm_location_3gpp_get_location_area_code
mm_location_3gpp_get_tracking_area_code
mm_location_3gpp_get_cell_id
@@ -519,8 +520,7 @@ mm_location_3gpp_new_from_string_variant
mm_location_3gpp_set_cell_id
mm_location_3gpp_set_location_area_code
mm_location_3gpp_set_tracking_area_code
mm_location_3gpp_set_mobile_country_code
mm_location_3gpp_set_mobile_network_code
mm_location_3gpp_set_operator_code
mm_location_3gpp_reset
<SUBSECTION Standard>
MMLocation3gppClass