Top |
struct | MMModemCdma |
#define | MM_MODEM_CDMA_NID_UNKNOWN |
#define | MM_MODEM_CDMA_SID_UNKNOWN |
MMModemCdma implements GDBusInterface, GInitable, GAsyncInitable and MmGdbusModemCdma.
The MMModemCdma is an object providing access to the methods, signals and properties of the CDMA interface.
The CDMA interface is exposed whenever a modem has CDMA capabilities
(MM_MODEM_CAPABILITY_CDMA_EVDO
).
const gchar *
mm_modem_cdma_get_path (MMModemCdma *self
);
Gets the DBus path of the MMObject which implements this interface.
Since: 1.0
gchar *
mm_modem_cdma_dup_path (MMModemCdma *self
);
Gets a copy of the DBus path of the MMObject object which implements this interface.
The DBus path of the MMObject. The returned value
should be freed with g_free()
.
[transfer full]
Since: 1.0
const gchar *
mm_modem_cdma_get_esn (MMModemCdma *self
);
Gets the
Electronic Serial Number,as reported by this MMModemCdma.
The ESN is superceded by MEID, but still used in older devices.
self
was constructed. Use
mm_modem_cdma_dup_esn()
if on another thread.Since: 1.0
gchar *
mm_modem_cdma_dup_esn (MMModemCdma *self
);
Gets a copy of the
Electronic Serial Number,as reported by this MMModemCdma.
The ESN is superceded by MEID, but still used in older devices.
The ESN, or NULL
if none available. The returned
value should be freed with g_free()
.
[transfer full]
Since: 1.0
const gchar *
mm_modem_cdma_get_meid (MMModemCdma *self
);
Gets the
Mobile Equipment Identifier,as reported by this MMModemCdma.
self
was constructed. Use
mm_modem_cdma_dup_meid()
if on another thread.Since: 1.0
gchar *
mm_modem_cdma_dup_meid (MMModemCdma *self
);
Gets a copy of the
Mobile Equipment Identifier,as reported by this MMModemCdma.
The MEID, or NULL
if none available. The returned
value should be freed with g_free()
.
[transfer full]
Since: 1.0
guint
mm_modem_cdma_get_nid (MMModemCdma *self
);
Gets the
Network Identifierof the serving CDMA 1x network, if known, and if the modem is registered with a CDMA 1x network.
Since: 1.0
guint
mm_modem_cdma_get_sid (MMModemCdma *self
);
Gets the
System Identifierof the serving CDMA 1x network, if known, and if the modem is registered with a CDMA 1x network.
Since: 1.0
MMModemCdmaRegistrationState
mm_modem_cdma_get_cdma1x_registration_state
(MMModemCdma *self
);
Gets the state of the registration in the CDMA 1x network.
Since: 1.0
MMModemCdmaRegistrationState
mm_modem_cdma_get_evdo_registration_state
(MMModemCdma *self
);
Gets the state of the registration in the EV-DO network.
Since: 1.0
MMModemCdmaActivationState
mm_modem_cdma_get_activation_state (MMModemCdma *self
);
Gets the state of the activation in the 3GPP2 network.
Since: 1.0
void mm_modem_cdma_activate (MMModemCdma *self
,const gchar *carrier
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to provision the modem for use with a given carrier using the modem's OTA activation functionality, if any.
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_modem_cdma_activate_finish()
to get the result of the operation.
See mm_modem_cdma_activate_sync()
for the synchronous, blocking version of
this method.
self |
A MMModemCdma. |
|
carrier |
Name of the carrier. |
|
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_modem_cdma_activate_finish (MMModemCdma *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_cdma_activate()
.
self |
A MMModemCdma. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
gboolean mm_modem_cdma_activate_sync (MMModemCdma *self
,const gchar *carrier
,GCancellable *cancellable
,GError **error
);
Synchronously requests to provision the modem for use with a given carrier using the modem's OTA activation functionality, if any.
The calling thread is blocked until a reply is received. See
mm_modem_cdma_activate()
for the asynchronous version of this method.
self |
A MMModemCdma. |
|
carrier |
Name of the carrier. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
void mm_modem_cdma_activate_manual (MMModemCdma *self
,MMCdmaManualActivationProperties *properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to provision the modem with the given properties.
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_modem_cdma_activate_manual_finish()
to get the result of
the operation.
See mm_modem_cdma_activate_manual_sync()
for the synchronous, blocking
version of this method.
self |
A MMModemCdma. |
|
properties |
||
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_modem_cdma_activate_manual_finish (MMModemCdma *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_cdma_activate_manual()
.
self |
A MMModemCdma. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
gboolean mm_modem_cdma_activate_manual_sync (MMModemCdma *self
,MMCdmaManualActivationProperties *properties
,GCancellable *cancellable
,GError **error
);
Synchronously requests to provision the modem with the given properties.
The calling thread is blocked until a reply is received. See
mm_modem_cdma_activate_manual()
for the asynchronous version of this method.
self |
A MMModemCdma. |
|
properties |
||
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
struct MMModemCdma;
The MMModemCdma structure contains private data and should only be accessed using the provided API.