| libmm-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
MMCdmaManualActivationPropertiesMMCdmaManualActivationProperties — Helper object to handle manual CDMA activation properties. |
struct MMCdmaManualActivationProperties; MMCdmaManualActivationProperties * mm_cdma_manual_activation_properties_new (void); const gchar * mm_cdma_manual_activation_properties_get_spc (MMCdmaManualActivationProperties *self); gboolean mm_cdma_manual_activation_properties_set_spc (MMCdmaManualActivationProperties *self,const gchar *spc,GError **error); guint16 mm_cdma_manual_activation_properties_get_sid (MMCdmaManualActivationProperties *self); void mm_cdma_manual_activation_properties_set_sid (MMCdmaManualActivationProperties *self,guint16 sid); const gchar * mm_cdma_manual_activation_properties_get_mdn (MMCdmaManualActivationProperties *self); gboolean mm_cdma_manual_activation_properties_set_mdn (MMCdmaManualActivationProperties *self,const gchar *mdn,GError **error); const gchar * mm_cdma_manual_activation_properties_get_min (MMCdmaManualActivationProperties *self); gboolean mm_cdma_manual_activation_properties_set_min (MMCdmaManualActivationProperties *self,const gchar *min,GError **error); const gchar * mm_cdma_manual_activation_properties_get_mn_ha_key (MMCdmaManualActivationProperties *self); gboolean mm_cdma_manual_activation_properties_set_mn_ha_key (MMCdmaManualActivationProperties *self,const gchar *mn_ha_key,GError **error); const gchar * mm_cdma_manual_activation_properties_get_mn_aaa_key (MMCdmaManualActivationProperties *self); gboolean mm_cdma_manual_activation_properties_set_mn_aaa_key (MMCdmaManualActivationProperties *self,const gchar *mn_aaa_key,GError **error); const guint8 * mm_cdma_manual_activation_properties_get_prl (MMCdmaManualActivationProperties *self,gsize *prl_len); GByteArray * mm_cdma_manual_activation_properties_peek_prl_bytearray (MMCdmaManualActivationProperties *self); GByteArray * mm_cdma_manual_activation_properties_get_prl_bytearray (MMCdmaManualActivationProperties *self); gboolean mm_cdma_manual_activation_properties_set_prl (MMCdmaManualActivationProperties *self,const guint8 *prl,gsize prl_length,GError **error); gboolean mm_cdma_manual_activation_properties_set_prl_bytearray (MMCdmaManualActivationProperties *self,GByteArray *prl,GError **error);
The MMCdmaManualActivationProperties is an object handling the properties required during a manual CDMA activation request.
struct MMCdmaManualActivationProperties;
The MMCdmaManualActivationProperties structure contains private data and should only be accessed using the provided API.
MMCdmaManualActivationProperties * mm_cdma_manual_activation_properties_new
(void);
Creates a new MMCdmaManualActivationProperties object.
Returns : |
A MMCdmaManualActivationProperties. The returned value should be freed with g_object_unref(). [transfer full]
|
const gchar * mm_cdma_manual_activation_properties_get_spc
(MMCdmaManualActivationProperties *self);
Gets the Service Programming Code.
|
A MMCdmaManualActivationProperties. |
Returns : |
The SPC. Do not free the returned value, it is owned by self. [transfer none]
|
gboolean mm_cdma_manual_activation_properties_set_spc (MMCdmaManualActivationProperties *self,const gchar *spc,GError **error);
Sets the Service Programming Code.
|
A MMCdmaManualActivationProperties. |
|
The SPC string, exactly 6 digits. |
|
Return location for error or NULL. |
Returns : |
TRUE if the SPC was successfully set, or FALSE if error is set. |
guint16 mm_cdma_manual_activation_properties_get_sid
(MMCdmaManualActivationProperties *self);
Gets the System Identification Number.
|
A MMCdmaManualActivationProperties. |
Returns : |
The SID. |
void mm_cdma_manual_activation_properties_set_sid (MMCdmaManualActivationProperties *self,guint16 sid);
Sets the Service Identification Number.
|
A MMCdmaManualActivationProperties. |
|
The SID. |
const gchar * mm_cdma_manual_activation_properties_get_mdn
(MMCdmaManualActivationProperties *self);
Gets the Mobile Directory Number.
|
A MMCdmaManualActivationProperties. |
Returns : |
The MDN. Do not free the returned value, it is owned by self. [transfer none]
|
gboolean mm_cdma_manual_activation_properties_set_mdn (MMCdmaManualActivationProperties *self,const gchar *mdn,GError **error);
Sets the Mobile Directory Number.
|
A MMCdmaManualActivationProperties. |
|
The MDN string, maximum 15 characters. |
|
Return location for error or NULL. |
Returns : |
TRUE if the MDN was successfully set, or FALSE if error is set. |
const gchar * mm_cdma_manual_activation_properties_get_min
(MMCdmaManualActivationProperties *self);
Gets the Mobile Indentification Number.
|
A MMCdmaManualActivationProperties. |
Returns : |
The MIN. Do not free the returned value, it is owned by self. [transfer none]
|
gboolean mm_cdma_manual_activation_properties_set_min (MMCdmaManualActivationProperties *self,const gchar *min,GError **error);
Sets the Mobile Identification Number.
|
A MMCdmaManualActivationProperties. |
|
The MIN string, maximum 15 characters. |
|
Return location for error or NULL. |
Returns : |
TRUE if the MIN was successfully set, or FALSE if error is set. |
const gchar * mm_cdma_manual_activation_properties_get_mn_ha_key
(MMCdmaManualActivationProperties *self);
Gets the MN-HA key.
|
A MMCdmaManualActivationProperties. |
Returns : |
The MN-HA key. Do not free the returned value, it is owned by self. [transfer none]
|
gboolean mm_cdma_manual_activation_properties_set_mn_ha_key (MMCdmaManualActivationProperties *self,const gchar *mn_ha_key,GError **error);
Sets the Mobile Identification Number.
|
A MMCdmaManualActivationProperties. |
|
The MN-HA key string, maximum 16 characters. |
|
Return location for error or NULL. |
Returns : |
TRUE if the MN-HA key was successfully set, or FALSE if error is set. |
const gchar * mm_cdma_manual_activation_properties_get_mn_aaa_key
(MMCdmaManualActivationProperties *self);
Gets the MN-AAA key.
|
A MMCdmaManualActivationProperties. |
Returns : |
The MN-AAA key. Do not free the returned value, it is owned by self. [transfer none]
|
gboolean mm_cdma_manual_activation_properties_set_mn_aaa_key (MMCdmaManualActivationProperties *self,const gchar *mn_aaa_key,GError **error);
Sets the Mobile Identification Number.
|
A MMCdmaManualActivationProperties. |
|
The MN-AAA key string, maximum 16 characters. |
|
Return location for error or NULL. |
Returns : |
TRUE if the MN-AAA key was successfully set, or FALSE if error is set. |
const guint8 * mm_cdma_manual_activation_properties_get_prl (MMCdmaManualActivationProperties *self,gsize *prl_len);
Gets the Preferred Roaming List.
|
A MMCdmaManualActivationProperties. |
|
Size of the returned PRL. [out] |
Returns : |
The PRL. Do not free the returned value, it is owned by self. [transfer none]
|
GByteArray * mm_cdma_manual_activation_properties_peek_prl_bytearray
(MMCdmaManualActivationProperties *self);
Gets the Preferred Roaming List.
|
A MMCdmaManualActivationProperties. |
Returns : |
A GByteArray with the PRL, or NULL if it doesn't contain any. Do not free the returned value, it is owned by self. [transfer none]
|
GByteArray * mm_cdma_manual_activation_properties_get_prl_bytearray
(MMCdmaManualActivationProperties *self);
Gets the Preferred Roaming List.
|
A MMCdmaManualActivationProperties. |
Returns : |
A GByteArray with the PRL, or NULL if it doesn't contain any. The returned value should be freed with g_byte_array_unref(). [transfer full]
|
gboolean mm_cdma_manual_activation_properties_set_prl (MMCdmaManualActivationProperties *self,const guint8 *prl,gsize prl_length,GError **error);
Sets the Preferred Roaming List.
|
A MMCdmaManualActivationProperties. |
|
The PRL. |
|
Length of prl. |
|
Return location for error or NULL. |
Returns : |
TRUE if the PRL was successfully set, or FALSE if error is set. |
gboolean mm_cdma_manual_activation_properties_set_prl_bytearray (MMCdmaManualActivationProperties *self,GByteArray *prl,GError **error);
Sets the Preferred Roaming List.
|
A MMCdmaManualActivationProperties. |
|
A GByteArray with the PRL to set. This method takes a new reference of prl. |
|
Return location for error or NULL. |
Returns : |
TRUE if the PRL was successfully set, or FALSE if error is set. |