api,introspection: new `ActivationState' property in the CDMA interface

This commit is contained in:
Aleksander Morgado
2012-10-09 17:45:43 +02:00
parent 9367f239db
commit 3e33f1bc4d
4 changed files with 30 additions and 0 deletions

View File

@@ -288,6 +288,7 @@ mm_modem_cdma_get_nid
mm_modem_cdma_get_sid
mm_modem_cdma_get_cdma1x_registration_state
mm_modem_cdma_get_evdo_registration_state
mm_modem_cdma_get_activation_state
<SUBSECTION Methods>
mm_modem_cdma_activate
mm_modem_cdma_activate_finish
@@ -1579,6 +1580,7 @@ MmGdbusModemCdmaIface
<SUBSECTION Getters>
mm_gdbus_modem_cdma_get_cdma1x_registration_state
mm_gdbus_modem_cdma_get_evdo_registration_state
mm_gdbus_modem_cdma_get_activation_state
mm_gdbus_modem_cdma_get_esn
mm_gdbus_modem_cdma_dup_esn
mm_gdbus_modem_cdma_get_meid
@@ -1593,6 +1595,7 @@ mm_gdbus_modem_cdma_call_activate_manual
mm_gdbus_modem_cdma_call_activate_manual_finish
mm_gdbus_modem_cdma_call_activate_manual_sync
<SUBSECTION Private>
mm_gdbus_modem_cdma_set_activation_state
mm_gdbus_modem_cdma_set_cdma1x_registration_state
mm_gdbus_modem_cdma_set_esn
mm_gdbus_modem_cdma_set_evdo_registration_state

View File

@@ -61,6 +61,14 @@
<arg name="status_changes" type="a{sv}" />
</signal>
<!--
ActivationState:
A <link linkend="MMModemCdmaActivationState">MMModemCdmaActivationState</link>
value specifying the state of the activation in the 3GPP2 network.
-->
<property name="ActivationState" type="u" access="read" />
<!--
Meid:

View File

@@ -247,6 +247,24 @@ mm_modem_cdma_get_evdo_registration_state (MMModemCdma *self)
/*****************************************************************************/
/**
* mm_modem_cdma_get_activation_state:
* @self: A #MMModemCdma.
*
* Gets the state of the activation in the 3GPP2 network.
*
* Returns: a #MMModemCdmaActivationState.
*/
MMModemCdmaActivationState
mm_modem_cdma_get_activation_state (MMModemCdma *self)
{
g_return_val_if_fail (MM_IS_MODEM_CDMA (self), MM_MODEM_CDMA_ACTIVATION_STATE_UNKNOWN);
return mm_gdbus_modem_cdma_get_activation_state (MM_GDBUS_MODEM_CDMA (self));
}
/*****************************************************************************/
/**
* mm_modem_cdma_activate_finish:
* @self: A #MMModemCdma.

View File

@@ -90,6 +90,7 @@ guint mm_modem_cdma_get_nid (MMModemCdma *self);
MMModemCdmaRegistrationState mm_modem_cdma_get_cdma1x_registration_state (MMModemCdma *self);
MMModemCdmaRegistrationState mm_modem_cdma_get_evdo_registration_state (MMModemCdma *self);
MMModemCdmaActivationState mm_modem_cdma_get_activation_state (MMModemCdma *self);
void mm_modem_cdma_activate (MMModemCdma *self,
const gchar *carrier,