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.
gchar *
mm_modem_cdma_dup_path (MMModemCdma *self
);
Gets a copy of the DBus path of the MMObject object which implements this interface.
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.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.
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.gchar *
mm_modem_cdma_dup_meid (MMModemCdma *self
);
Gets a copy of the Mobile Equipment Identifier, as reported by this MMModemCdma.
guint
mm_modem_cdma_get_nid (MMModemCdma *self
);
Gets the Network Identifier of the serving CDMA 1x network, if known, and if the modem is registered with a CDMA 1x network.
guint
mm_modem_cdma_get_sid (MMModemCdma *self
);
Gets the System Identifier of the serving CDMA 1x network, if known, and if the modem is registered with a CDMA 1x network.
MMModemCdmaRegistrationState
mm_modem_cdma_get_cdma1x_registration_state
(MMModemCdma *self
);
Gets the state of the registration in the CDMA 1x network.
MMModemCdmaRegistrationState
mm_modem_cdma_get_evdo_registration_state
(MMModemCdma *self
);
Gets the state of the registration in the EV-DO network.
MMModemCdmaActivationState
mm_modem_cdma_get_activation_state (MMModemCdma *self
);
Gets the state of the activation in the 3GPP2 network.
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 thread-default main loop 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 |
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 |
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 |
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 thread-default main loop 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 |
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 |
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 |
struct MMModemCdma;
The MMModemCdma structure contains private data and should only be accessed using the provided API.