Top |
DMS Activate Manual responseDMS Activate Manual response — Methods to manage the DMS Activate Manual response. |
Collection of methods to create requests and parse responses of the DMS Activate Manual message.
QmiMessageDmsActivateManualInput *
qmi_message_dms_activate_manual_input_new
(void
);
Allocates a new QmiMessageDmsActivateManualInput.
the newly created QmiMessageDmsActivateManualInput. The returned value should be freed with qmi_message_dms_activate_manual_input_unref()
.
Since: 1.0
QmiMessageDmsActivateManualInput *
qmi_message_dms_activate_manual_input_ref
(QmiMessageDmsActivateManualInput *self
);
Atomically increments the reference count of self
by one.
Since: 1.0
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.
Since: 1.0
gboolean qmi_message_dms_activate_manual_input_get_prl (QmiMessageDmsActivateManualInput *self
,guint16 *value_prl_prl_total_length
,guint8 *value_prl_prl_segment_sequence
,GArray **value_prl_prl_segment
,GError **error
);
Get the 'PRL' field from self
.
self |
||
value_prl_prl_total_length |
a placeholder for the output guint16, or |
[out][optional] |
value_prl_prl_segment_sequence |
a placeholder for the output sequence number, or |
[out][optional] |
value_prl_prl_segment |
a placeholder for the output GArray of guint8 elements, or |
[out][optional][element-type guint8][transfer none] |
error |
Return location for error or |
Since: 1.6
gboolean qmi_message_dms_activate_manual_input_set_prl (QmiMessageDmsActivateManualInput *self
,guint16 value_prl_prl_total_length
,guint8 value_prl_prl_segment_sequence
,GArray *value_prl_prl_segment
,GError **error
);
Set the 'PRL' field in the message.
self |
||
value_prl_prl_total_length |
a guint16. |
|
value_prl_prl_segment_sequence |
the sequence number. |
|
value_prl_prl_segment |
a GArray of guint8 elements. A new reference to |
[in][element-type guint8][transfer none] |
error |
Return location for error or |
Since: 1.6
gboolean qmi_message_dms_activate_manual_input_get_mn_aaa_key (QmiMessageDmsActivateManualInput *self
,const gchar **value_mn_aaa_key
,GError **error
);
Get the 'MN AAA key' field from self
.
Since: 1.0
gboolean qmi_message_dms_activate_manual_input_set_mn_aaa_key (QmiMessageDmsActivateManualInput *self
,const gchar *value_mn_aaa_key
,GError **error
);
Set the 'MN AAA key' field in the message.
self |
||
value_mn_aaa_key |
a constant string with a maximum length of 16 characters. |
|
error |
Return location for error or |
Since: 1.0
gboolean qmi_message_dms_activate_manual_input_get_mn_ha_key (QmiMessageDmsActivateManualInput *self
,const gchar **value_mn_ha_key
,GError **error
);
Get the 'MN HA key' field from self
.
Since: 1.0
gboolean qmi_message_dms_activate_manual_input_set_mn_ha_key (QmiMessageDmsActivateManualInput *self
,const gchar *value_mn_ha_key
,GError **error
);
Set the 'MN HA key' field in the message.
self |
||
value_mn_ha_key |
a constant string with a maximum length of 16 characters. |
|
error |
Return location for error or |
Since: 1.0
gboolean qmi_message_dms_activate_manual_input_get_info (QmiMessageDmsActivateManualInput *self
,const gchar **value_info_service_programming_code
,guint16 *value_info_system_identification_number
,const gchar **value_info_mobile_directory_number
,const gchar **value_info_mobile_identification_number
,GError **error
);
Get the 'Info' field from self
.
self |
||
value_info_service_programming_code |
a placeholder for the output constant string, or |
[out][optional][transfer none] |
value_info_system_identification_number |
a placeholder for the output guint16, or |
[out][optional] |
value_info_mobile_directory_number |
a placeholder for the output constant string, or |
[out][optional][transfer none] |
value_info_mobile_identification_number |
a placeholder for the output constant string, or |
[out][optional][transfer none] |
error |
Return location for error or |
Since: 1.6
gboolean qmi_message_dms_activate_manual_input_set_info (QmiMessageDmsActivateManualInput *self
,const gchar *value_info_service_programming_code
,guint16 value_info_system_identification_number
,const gchar *value_info_mobile_directory_number
,const gchar *value_info_mobile_identification_number
,GError **error
);
Set the 'Info' field in the message.
self |
||
value_info_service_programming_code |
a constant string of exactly 6 characters. |
|
value_info_system_identification_number |
a guint16. |
|
value_info_mobile_directory_number |
a constant string with a maximum length of 15 characters. |
|
value_info_mobile_identification_number |
a constant string with a maximum length of 15 characters. |
|
error |
Return location for error or |
Since: 1.6
QmiMessageDmsActivateManualOutput *
qmi_message_dms_activate_manual_output_ref
(QmiMessageDmsActivateManualOutput *self
);
Atomically increments the reference count of self
by one.
Since: 1.0
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.
Since: 1.0
gboolean qmi_message_dms_activate_manual_output_get_result (QmiMessageDmsActivateManualOutput *self
,GError **error
);
Get the result of the QMI operation.
Since: 1.0
QmiMessageDmsActivateManualOutput * qmi_message_dms_activate_manual_response_parse (QmiMessage *message
,GError **error
);
Parses a QmiMessage and builds a QmiMessageDmsActivateManualOutput out of it. The operation fails if the message is of the wrong type.
a QmiMessageDmsActivateManualOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_dms_activate_manual_output_unref()
.
Since: 1.34
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.
self |
a QmiClientDms. |
|
input |
||
timeout |
maximum time to wait for the method to complete, in seconds. |
|
cancellable |
a GCancellable or |
|
callback |
a GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
user data to pass to |
Since: 1.0
QmiMessageDmsActivateManualOutput * qmi_client_dms_activate_manual_finish (QmiClientDms *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_dms_activate_manual()
.
self |
a QmiClientDms. |
|
res |
the GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
a QmiMessageDmsActivateManualOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_dms_activate_manual_output_unref()
.
Since: 1.0
typedef struct _QmiMessageDmsActivateManualInput QmiMessageDmsActivateManualInput;
The QmiMessageDmsActivateManualInput structure contains private data and should only be accessed using the provided API.
Since: 1.0
typedef struct _QmiMessageDmsActivateManualOutput QmiMessageDmsActivateManualOutput;
The QmiMessageDmsActivateManualOutput structure contains private data and should only be accessed using the provided API.
Since: 1.0