libqmi-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
QmiMessageDmsActivateManualInput; QmiMessageDmsActivateManualOutput; QmiMessageDmsActivateManualInput * qmi_message_dms_activate_manual_input_new (void
); QmiMessageDmsActivateManualInput * qmi_message_dms_activate_manual_input_ref (QmiMessageDmsActivateManualInput *self
); void qmi_message_dms_activate_manual_input_unref (QmiMessageDmsActivateManualInput *self
); gboolean qmi_message_dms_activate_manual_input_get_prl (QmiMessageDmsActivateManualInput *self
,guint16 *prl_prl_total_length
,guint8 *prl_prl_segment_sequence
,GArray **prl_prl_segment
,GError **error
); gboolean qmi_message_dms_activate_manual_input_set_prl (QmiMessageDmsActivateManualInput *self
,guint16 prl_prl_total_length
,guint8 prl_prl_segment_sequence
,GArray *prl_prl_segment
,GError **error
); gboolean qmi_message_dms_activate_manual_input_get_mn_aaa_key (QmiMessageDmsActivateManualInput *self
,const gchar **mn_aaa_key
,GError **error
); gboolean qmi_message_dms_activate_manual_input_set_mn_aaa_key (QmiMessageDmsActivateManualInput *self
,const gchar *mn_aaa_key
,GError **error
); gboolean qmi_message_dms_activate_manual_input_get_mn_ha_key (QmiMessageDmsActivateManualInput *self
,const gchar **mn_ha_key
,GError **error
); gboolean qmi_message_dms_activate_manual_input_set_mn_ha_key (QmiMessageDmsActivateManualInput *self
,const gchar *mn_ha_key
,GError **error
); gboolean qmi_message_dms_activate_manual_input_get_info (QmiMessageDmsActivateManualInput *self
,const gchar **info_service_programming_code
,guint16 *info_system_identification_number
,const gchar **info_mobile_directory_number
,const gchar **info_mobile_identification_number
,GError **error
); gboolean qmi_message_dms_activate_manual_input_set_info (QmiMessageDmsActivateManualInput *self
,const gchar *info_service_programming_code
,guint16 info_system_identification_number
,const gchar *info_mobile_directory_number
,const gchar *info_mobile_identification_number
,GError **error
); QmiMessageDmsActivateManualOutput * qmi_message_dms_activate_manual_output_ref (QmiMessageDmsActivateManualOutput *self
); void qmi_message_dms_activate_manual_output_unref (QmiMessageDmsActivateManualOutput *self
); gboolean qmi_message_dms_activate_manual_output_get_result (QmiMessageDmsActivateManualOutput *self
,GError **error
); void qmi_client_dms_activate_manual (QmiClientDms *self
,QmiMessageDmsActivateManualInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); QmiMessageDmsActivateManualOutput * qmi_client_dms_activate_manual_finish (QmiClientDms *self
,GAsyncResult *res
,GError **error
);
GBoxed +----QmiMessageDmsActivateManualInput
GBoxed +----QmiMessageDmsActivateManualOutput
typedef struct _QmiMessageDmsActivateManualInput QmiMessageDmsActivateManualInput;
The QmiMessageDmsActivateManualInput structure contains private data and should only be accessed using the provided API.
typedef struct _QmiMessageDmsActivateManualOutput QmiMessageDmsActivateManualOutput;
The QmiMessageDmsActivateManualOutput structure contains private data and should only be accessed using the provided API.
QmiMessageDmsActivateManualInput * qmi_message_dms_activate_manual_input_new
(void
);
Allocates a new QmiMessageDmsActivateManualInput.
Returns : |
the newly created QmiMessageDmsActivateManualInput. The returned value should be freed with qmi_message_dms_activate_manual_input_unref() . |
QmiMessageDmsActivateManualInput * qmi_message_dms_activate_manual_input_ref
(QmiMessageDmsActivateManualInput *self
);
Atomically increments the reference count of self
by one.
|
a QmiMessageDmsActivateManualInput. |
Returns : |
the new reference to self . |
void qmi_message_dms_activate_manual_input_unref
(QmiMessageDmsActivateManualInput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
|
a QmiMessageDmsActivateManualInput. |
gboolean qmi_message_dms_activate_manual_input_get_prl (QmiMessageDmsActivateManualInput *self
,guint16 *prl_prl_total_length
,guint8 *prl_prl_segment_sequence
,GArray **prl_prl_segment
,GError **error
);
Get the 'PRL' field from self
.
|
a QmiMessageDmsActivateManualInput. |
|
a placeholder for the output guint16, or NULL if not required. |
|
a placeholder for the output sequence number, or NULL if not required. |
|
a placeholder for the output GArray of guint8 elements, or NULL if not required. Do not free it, it is owned by self . |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_dms_activate_manual_input_set_prl (QmiMessageDmsActivateManualInput *self
,guint16 prl_prl_total_length
,guint8 prl_prl_segment_sequence
,GArray *prl_prl_segment
,GError **error
);
Set the 'PRL' field in the message.
|
a QmiMessageDmsActivateManualInput. |
|
a guint16. |
|
the sequence number. |
|
a GArray of guint8 elements. A new reference to prl_prl_segment will be taken. |
|
Return location for error or NULL . |
Returns : |
TRUE if value was successfully set, FALSE otherwise. |
gboolean qmi_message_dms_activate_manual_input_get_mn_aaa_key (QmiMessageDmsActivateManualInput *self
,const gchar **mn_aaa_key
,GError **error
);
Get the 'MN AAA key' field from self
.
|
a QmiMessageDmsActivateManualInput. |
|
a placeholder for the output constant string, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_dms_activate_manual_input_set_mn_aaa_key (QmiMessageDmsActivateManualInput *self
,const gchar *mn_aaa_key
,GError **error
);
Set the 'MN AAA key' field in the message.
|
a QmiMessageDmsActivateManualInput. |
|
a constant string with a maximum length of 16 characters. |
|
Return location for error or NULL . |
Returns : |
TRUE if value was successfully set, FALSE otherwise. |
gboolean qmi_message_dms_activate_manual_input_get_mn_ha_key (QmiMessageDmsActivateManualInput *self
,const gchar **mn_ha_key
,GError **error
);
Get the 'MN HA key' field from self
.
|
a QmiMessageDmsActivateManualInput. |
|
a placeholder for the output constant string, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_dms_activate_manual_input_set_mn_ha_key (QmiMessageDmsActivateManualInput *self
,const gchar *mn_ha_key
,GError **error
);
Set the 'MN HA key' field in the message.
|
a QmiMessageDmsActivateManualInput. |
|
a constant string with a maximum length of 16 characters. |
|
Return location for error or NULL . |
Returns : |
TRUE if value was successfully set, FALSE otherwise. |
gboolean qmi_message_dms_activate_manual_input_get_info (QmiMessageDmsActivateManualInput *self
,const gchar **info_service_programming_code
,guint16 *info_system_identification_number
,const gchar **info_mobile_directory_number
,const gchar **info_mobile_identification_number
,GError **error
);
Get the 'Info' field from self
.
|
a QmiMessageDmsActivateManualInput. |
|
a placeholder for the output constant string, or NULL if not required. |
|
a placeholder for the output guint16, or NULL if not required. |
|
a placeholder for the output constant string, or NULL if not required. |
|
a placeholder for the output constant string, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_dms_activate_manual_input_set_info (QmiMessageDmsActivateManualInput *self
,const gchar *info_service_programming_code
,guint16 info_system_identification_number
,const gchar *info_mobile_directory_number
,const gchar *info_mobile_identification_number
,GError **error
);
Set the 'Info' field in the message.
|
a QmiMessageDmsActivateManualInput. |
|
a constant string of exactly 6 characters. |
|
a guint16. |
|
a constant string with a maximum length of 15 characters. |
|
a constant string with a maximum length of 15 characters. |
|
Return location for error or NULL . |
Returns : |
TRUE if value was successfully set, FALSE otherwise. |
QmiMessageDmsActivateManualOutput * qmi_message_dms_activate_manual_output_ref
(QmiMessageDmsActivateManualOutput *self
);
Atomically increments the reference count of self
by one.
|
a QmiMessageDmsActivateManualOutput. |
Returns : |
the new reference to self . |
void qmi_message_dms_activate_manual_output_unref
(QmiMessageDmsActivateManualOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
|
a QmiMessageDmsActivateManualOutput. |
gboolean qmi_message_dms_activate_manual_output_get_result (QmiMessageDmsActivateManualOutput *self
,GError **error
);
Get the result of the QMI operation.
void qmi_client_dms_activate_manual (QmiClientDms *self
,QmiMessageDmsActivateManualInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Activate Manual request to the device.
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 qmi_client_dms_activate_manual_finish()
to get the result of the operation.
|
a QmiClientDms. |
|
a QmiMessageDmsActivateManualInput. |
|
maximum time to wait for the method to complete, in seconds. |
|
a GCancellable or NULL . |
|
a GAsyncReadyCallback to call when the request is satisfied. |
|
user data to pass to callback . |
QmiMessageDmsActivateManualOutput * qmi_client_dms_activate_manual_finish (QmiClientDms *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_dms_activate_manual()
.
|
a QmiClientDms. |
|
the GAsyncResult obtained from the GAsyncReadyCallback passed to qmi_client_dms_activate_manual() . |
|
Return location for error or NULL . |
Returns : |
a QmiMessageDmsActivateManualOutput, or NULL if error is set. The returned value should be freed with qmi_message_dms_activate_manual_output_unref() . |