Top |
Collection of methods to create requests and parse responses of the UIM Unblock PIN message.
QmiMessageUimUnblockPinInput *
qmi_message_uim_unblock_pin_input_new (void
);
Allocates a new QmiMessageUimUnblockPinInput.
the newly created QmiMessageUimUnblockPinInput. The returned value should be freed with qmi_message_uim_unblock_pin_input_unref()
.
Since: 1.14
QmiMessageUimUnblockPinInput *
qmi_message_uim_unblock_pin_input_ref (QmiMessageUimUnblockPinInput *self
);
Atomically increments the reference count of self
by one.
Since: 1.14
void
qmi_message_uim_unblock_pin_input_unref
(QmiMessageUimUnblockPinInput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.14
gboolean qmi_message_uim_unblock_pin_input_get_response_in_indication_token (QmiMessageUimUnblockPinInput *self
,guint32 *value_response_in_indication_token
,GError **error
);
Get the 'Response In Indication Token' field from self
.
Since: 1.14
gboolean qmi_message_uim_unblock_pin_input_set_response_in_indication_token (QmiMessageUimUnblockPinInput *self
,guint32 value_response_in_indication_token
,GError **error
);
Set the 'Response In Indication Token' field in the message.
Since: 1.14
gboolean qmi_message_uim_unblock_pin_input_get_info (QmiMessageUimUnblockPinInput *self
,QmiUimPinId *value_info_pin_id
,const gchar **value_info_puk
,const gchar **value_info_new_pin
,GError **error
);
Get the 'Info' field from self
.
self |
||
value_info_pin_id |
a placeholder for the output QmiUimPinId, or |
[out][optional] |
value_info_puk |
a placeholder for the output constant string, or |
[out][optional][transfer none] |
value_info_new_pin |
a placeholder for the output constant string, or |
[out][optional][transfer none] |
error |
Return location for error or |
Since: 1.14
gboolean qmi_message_uim_unblock_pin_input_set_info (QmiMessageUimUnblockPinInput *self
,QmiUimPinId value_info_pin_id
,const gchar *value_info_puk
,const gchar *value_info_new_pin
,GError **error
);
Set the 'Info' field in the message.
self |
||
value_info_pin_id |
a QmiUimPinId. |
|
value_info_puk |
a constant string. |
|
value_info_new_pin |
a constant string. |
|
error |
Return location for error or |
Since: 1.14
gboolean qmi_message_uim_unblock_pin_input_get_session (QmiMessageUimUnblockPinInput *self
,QmiUimSessionType *value_session_session_type
,GArray **value_session_application_identifier
,GError **error
);
Get the 'Session' field from self
.
self |
||
value_session_session_type |
a placeholder for the output QmiUimSessionType, or |
[out][optional] |
value_session_application_identifier |
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.22
gboolean qmi_message_uim_unblock_pin_input_set_session (QmiMessageUimUnblockPinInput *self
,QmiUimSessionType value_session_session_type
,GArray *value_session_application_identifier
,GError **error
);
Set the 'Session' field in the message.
self |
||
value_session_session_type |
||
value_session_application_identifier |
a GArray of guint8 elements. A new reference to |
[in][element-type guint8][transfer none] |
error |
Return location for error or |
Since: 1.22
QmiMessageUimUnblockPinOutput *
qmi_message_uim_unblock_pin_output_ref
(QmiMessageUimUnblockPinOutput *self
);
Atomically increments the reference count of self
by one.
Since: 1.14
void
qmi_message_uim_unblock_pin_output_unref
(QmiMessageUimUnblockPinOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.14
gboolean qmi_message_uim_unblock_pin_output_get_card_result (QmiMessageUimUnblockPinOutput *self
,guint8 *value_card_result_sw1
,guint8 *value_card_result_sw2
,GError **error
);
Get the 'Card Result' field from self
.
Since: 1.14
gboolean qmi_message_uim_unblock_pin_output_get_result (QmiMessageUimUnblockPinOutput *self
,GError **error
);
Get the result of the QMI operation.
Since: 1.14
gboolean qmi_message_uim_unblock_pin_output_get_retries_remaining (QmiMessageUimUnblockPinOutput *self
,guint8 *value_retries_remaining_verify_retries_left
,guint8 *value_retries_remaining_unblock_retries_left
,GError **error
);
Get the 'Retries Remaining' field from self
.
Since: 1.14
gboolean qmi_message_uim_unblock_pin_output_get_response_in_indication_token (QmiMessageUimUnblockPinOutput *self
,guint32 *value_response_in_indication_token
,GError **error
);
Get the 'Response In Indication Token' field from self
.
Since: 1.14
QmiMessageUimUnblockPinOutput * qmi_message_uim_unblock_pin_response_parse (QmiMessage *message
,GError **error
);
Parses a QmiMessage and builds a QmiMessageUimUnblockPinOutput out of it. The operation fails if the message is of the wrong type.
a QmiMessageUimUnblockPinOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_uim_unblock_pin_output_unref()
.
Since: 1.34
void qmi_client_uim_unblock_pin (QmiClientUim *self
,QmiMessageUimUnblockPinInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Unblock PIN 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_uim_unblock_pin_finish()
to get the result of the operation.
self |
a QmiClientUim. |
|
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.14
QmiMessageUimUnblockPinOutput * qmi_client_uim_unblock_pin_finish (QmiClientUim *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_uim_unblock_pin()
.
self |
a QmiClientUim. |
|
res |
the GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
a QmiMessageUimUnblockPinOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_uim_unblock_pin_output_unref()
.
Since: 1.14
typedef struct _QmiMessageUimUnblockPinInput QmiMessageUimUnblockPinInput;
The QmiMessageUimUnblockPinInput structure contains private data and should only be accessed using the provided API.
Since: 1.14
typedef struct _QmiMessageUimUnblockPinOutput QmiMessageUimUnblockPinOutput;
The QmiMessageUimUnblockPinOutput structure contains private data and should only be accessed using the provided API.
Since: 1.14