Top |
The MMSim is an object providing access to the methods, signals and properties of the SIM interface.
When the SIM is exposed and available in the bus, it is ensured that at least this interface is also available.
const gchar *
mm_sim_get_path (MMSim *self
);
Gets the DBus path of the MMSim object.
Since: 1.0
gchar *
mm_sim_dup_path (MMSim *self
);
Gets a copy of the DBus path of the MMSim object.
The DBus path of the MMSim object. The returned
value should be freed with g_free()
.
[transfer full]
Since: 1.0
gboolean
mm_sim_get_active (MMSim *self
);
Checks whether the MMSim is currently active.
Since: 1.16
const gchar *
mm_sim_get_identifier (MMSim *self
);
Gets the unique SIM identifier of the MMSim object.
self
was constructed. Use
mm_sim_dup_identifier()
if on another thread.The unique identifier of the MMSim object, or
NULL
if it couldn't be retrieved.
[transfer none]
Since: 1.0
gchar *
mm_sim_dup_identifier (MMSim *self
);
Gets a copy of the unique SIM identifier of the MMSim object.
The unique identifier of the MMSim object, or
NULL
if it couldn't be retrieved. The returned value should be freed with
g_free()
.
[transfer full]
Since: 1.0
const gchar *
mm_sim_get_imsi (MMSim *self
);
Gets the International Mobile Subscriber Identity (IMSI) of the MMSim object.
self
was constructed. Use
mm_sim_dup_imsi()
if on another thread.Since: 1.0
gchar *
mm_sim_dup_imsi (MMSim *self
);
Gets a copy of the International Mobile Subscriber Identity (IMSI) of the MMSim object.
The IMSI of the MMSim object, or NULL
if it
couldn't be retrieved. The returned value should be freed with g_free()
.
[transfer full]
Since: 1.0
const gchar *
mm_sim_get_eid (MMSim *self
);
Gets the Embedded UICC ID (or EID) of the MMSim object.
self
was constructed. Use
mm_sim_dup_eid()
if on another thread.Since: 1.16
gchar *
mm_sim_dup_eid (MMSim *self
);
Gets a copy of the Embedded UICC ID (EID) of the MMSim object.
The EID of the MMSim object, or NULL
if it
couldn't be retrieved. The returned value should be freed with g_free()
.
[transfer full]
Since: 1.16
const gchar *
mm_sim_get_operator_identifier (MMSim *self
);
Gets the Operator Identifier of the MMSim object.
self
was constructed. Use
mm_sim_dup_operator_identifier()
if on another thread.The Operator Identifier of the MMSim object, or
NULL
if it couldn't be retrieved.
[transfer none]
Since: 1.0
gchar *
mm_sim_dup_operator_identifier (MMSim *self
);
Gets a copy of the Operator Identifier of the MMSim object.
The Operator Identifier of the MMSim object, or
NULL
if it couldn't be retrieved. The returned value should be freed with
g_free()
.
[transfer full]
Since: 1.0
const gchar *
mm_sim_get_operator_name (MMSim *self
);
Gets the Operator Name of the MMSim object.
self
was constructed. Use
mm_sim_dup_operator_name()
if on another thread.Since: 1.0
gchar *
mm_sim_dup_operator_name (MMSim *self
);
Gets a copy of the Operator Name of the MMSim object.
The Operator Name of the MMSim object, or NULL
if
it couldn't be retrieved. The returned value should be freed with g_free()
.
[transfer full]
Since: 1.0
const gchar * const *
mm_sim_get_emergency_numbers (MMSim *self
);
Gets the list of emergency call numbers programmed in the SIM card.
self
was constructed. Use
mm_sim_dup_emergency_numbers()
if on another thread.The emergency numbers, or NULL
if none available.
Do not free the returned value, it belongs to self
.
[transfer none]
Since: 1.12
gchar **
mm_sim_dup_emergency_numbers (MMSim *self
);
Gets a copy of the list of emergency call numbers programmed in the SIM card.
The emergency numbers, or NULL
if none available.
The returned value should be freed with g_strfreev()
.
[transfer full]
Since: 1.12
GList *
mm_sim_get_preferred_networks (MMSim *self
);
Gets the list of MMSimPreferredNetwork objects exposed by this MMSim.
a list of
MMSimPreferredNetwork objects, or NULL. The returned value should
be freed with g_list_free_full()
using mm_sim_preferred_network_free()
as GDestroyNotify
function.
[transfer full][element-type ModemManager.SimPreferredNetwork]
Since: 1.18
void mm_sim_send_pin (MMSim *self
,const gchar *pin
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends the PIN code to the SIM card.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_sim_send_pin_finish()
to get the result of the operation.
See mm_sim_send_pin_sync()
for the synchronous, blocking version of this
method.
self |
A MMSim. |
|
pin |
The PIN code. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.0
gboolean mm_sim_send_pin_finish (MMSim *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_sim_send_pin()
.
self |
A MMSim. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
gboolean mm_sim_send_pin_sync (MMSim *self
,const gchar *pin
,GCancellable *cancellable
,GError **error
);
Synchronously sends the PIN to the SIM card.
The calling thread is blocked until a reply is received. See
mm_sim_send_pin()
for the asynchronous version of this method.
self |
A MMSim. |
|
pin |
The PIN code. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
void mm_sim_send_puk (MMSim *self
,const gchar *puk
,const gchar *pin
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends the PUK code to the SIM card.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_sim_send_puk_finish()
to get the result of the operation.
See mm_sim_send_puk_sync()
for the synchronous, blocking version of this
method.
self |
A MMSim. |
|
puk |
The PUK code. |
|
pin |
The PIN code. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.0
gboolean mm_sim_send_puk_finish (MMSim *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_sim_send_puk()
.
self |
A MMSim. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
gboolean mm_sim_send_puk_sync (MMSim *self
,const gchar *puk
,const gchar *pin
,GCancellable *cancellable
,GError **error
);
Synchronously sends the PUK to the SIM card.
The calling thread is blocked until a reply is received.
See mm_sim_send_puk()
for the asynchronous version of this method.
self |
A MMSim. |
|
puk |
The PUK code. |
|
pin |
The PIN code. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
void mm_sim_enable_pin (MMSim *self
,const gchar *pin
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously enables requesting the PIN code in the SIM card.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_sim_enable_pin_finish()
to get the result of the operation.
See mm_sim_enable_pin_sync()
for the synchronous, blocking version of this
method.
self |
A MMSim. |
|
pin |
The PIN code. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.0
gboolean mm_sim_enable_pin_finish (MMSim *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_sim_enable_pin()
.
self |
A MMSim. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
gboolean mm_sim_enable_pin_sync (MMSim *self
,const gchar *pin
,GCancellable *cancellable
,GError **error
);
Synchronously enables requesting the PIN code in the SIM card.
The calling thread is blocked until a reply is received.
See mm_sim_enable_pin()
for the asynchronous version of this method.
self |
A MMSim. |
|
pin |
The PIN code. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
void mm_sim_disable_pin (MMSim *self
,const gchar *pin
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously disables requesting the PIN code in the SIM card.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_sim_disable_pin_finish()
to get the result of the operation.
See mm_sim_disable_pin_sync()
for the synchronous, blocking version of this
method.
self |
A MMSim. |
|
pin |
The PIN code. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.0
gboolean mm_sim_disable_pin_finish (MMSim *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_sim_disable_pin()
.
self |
A MMSim. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
gboolean mm_sim_disable_pin_sync (MMSim *self
,const gchar *pin
,GCancellable *cancellable
,GError **error
);
Synchronously disables requesting the PIN code in the SIM card.
The calling thread is blocked until a reply is received.
See mm_sim_disable_pin()
for the asynchronous version of this method.
self |
A MMSim. |
|
pin |
The PIN code. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
void mm_sim_change_pin (MMSim *self
,const gchar *old_pin
,const gchar *new_pin
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously changes the PIN code in the SIM card.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_sim_change_pin_finish()
to get the result of the operation.
See mm_sim_change_pin_sync()
for the synchronous, blocking version of this
method.
self |
A MMSim. |
|
old_pin |
The current PIN code. |
|
new_pin |
The new PIN code to be set. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.0
gboolean mm_sim_change_pin_finish (MMSim *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_sim_change_pin()
.
self |
A MMSim. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
gboolean mm_sim_change_pin_sync (MMSim *self
,const gchar *old_pin
,const gchar *new_pin
,GCancellable *cancellable
,GError **error
);
Synchronously changes the PIN code in the SIM card.
The calling thread is blocked until a reply is received.
See mm_sim_change_pin()
for the asynchronous version of this method.
self |
A MMSim. |
|
old_pin |
The current PIN code. |
|
new_pin |
The new PIN code to be set. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
void mm_sim_set_preferred_networks (MMSim *self
,const GList *preferred_networks
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sets the preferred network list of this MMSim.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_sim_set_preferred_networks_finish()
to get the result of
the operation.
self |
A MMSim. |
|
preferred_networks |
A list of MMSimPreferredNetwork objects. |
[element-type ModemManager.SimPreferredNetwork] |
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.18
gboolean mm_sim_set_preferred_networks_finish (MMSim *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_sim_set_preferred_networks()
.
self |
A MMSim. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.18
gboolean mm_sim_set_preferred_networks_sync (MMSim *self
,const GList *preferred_networks
,GCancellable *cancellable
,GError **error
);
Synchronously sets the preferred network list of this MMSim.
The calling thread is blocked until a reply is received. See
mm_sim_set_preferred_networks()
for the asynchronous
version of this method.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_sim_set_preferred_networks_finish()
to get the result of
the operation.
self |
A MMSim. |
|
preferred_networks |
A list of MMSimPreferredNetwork objects. |
[element-type ModemManager.SimPreferredNetwork] |
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.18
struct MMSim;
The MMSim structure contains private data and should only be accessed using the provided API.