diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-13 14:57:55 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-14 06:43:49 +0200 |
commit | c2b246414cb7d4bbd6782b7879fa66a7d627177a (patch) | |
tree | 28fc9d5854b219874c6b6f1fabe3b6b0d7b66820 /src/mm-iface-modem-3gpp.h | |
parent | 40816e5c90b73fef238da525af91b69657ceb203 (diff) |
iface-modem-3gpp: update state to REGISTERED after loading operator code/name
Call managers all want to be able to set the operator ID and/or name as soon as
we get registered. We will consider now that whenever we get into registered
state we already have operator code and name updated to the proper values.
Applications shouldn't, though, just rely on those values to be valid as long as
we're registered, as the modem may re-register automatically in some other
network (e.g. going from a roaming network to the home network).
This change involves not setting the state to REGISTERED until operator name
and code loading sequences have been run. We will still signal in the log the
change, with a new 'registering' intermediate state indication.
Diffstat (limited to 'src/mm-iface-modem-3gpp.h')
-rw-r--r-- | src/mm-iface-modem-3gpp.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mm-iface-modem-3gpp.h b/src/mm-iface-modem-3gpp.h index 2bc25613..aaf727cd 100644 --- a/src/mm-iface-modem-3gpp.h +++ b/src/mm-iface-modem-3gpp.h @@ -234,7 +234,13 @@ gboolean mm_iface_modem_3gpp_run_registration_checks_finish (MMIfaceModem3gpp *s GError **error); /* Request to reload current operator */ -void mm_iface_modem_3gpp_reload_current_operator (MMIfaceModem3gpp *self); +void mm_iface_modem_3gpp_reload_current_operator (MMIfaceModem3gpp *self, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mm_iface_modem_3gpp_reload_current_operator_finish (MMIfaceModem3gpp *self, + GAsyncResult *res, + GError **error); +void mm_iface_modem_3gpp_clear_current_operator (MMIfaceModem3gpp *self); /* Allow registering in the network */ gboolean mm_iface_modem_3gpp_register_in_network_finish (MMIfaceModem3gpp *self, |