Top |
UIM Read Transparent responseUIM Read Transparent response — Methods to manage the UIM Read Transparent response. |
GBoxed ├── QmiMessageUimReadTransparentInput ╰── QmiMessageUimReadTransparentOutput
Collection of methods to create requests and parse responses of the UIM Read Transparent message.
QmiMessageUimReadTransparentInput *
qmi_message_uim_read_transparent_input_new
(void
);
Allocates a new QmiMessageUimReadTransparentInput.
the newly created QmiMessageUimReadTransparentInput. The returned value should be freed with qmi_message_uim_read_transparent_input_unref()
.
Since: 1.6
QmiMessageUimReadTransparentInput *
qmi_message_uim_read_transparent_input_ref
(QmiMessageUimReadTransparentInput *self
);
Atomically increments the reference count of self
by one.
Since: 1.6
void
qmi_message_uim_read_transparent_input_unref
(QmiMessageUimReadTransparentInput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.6
gboolean qmi_message_uim_read_transparent_input_get_encrypt_data (QmiMessageUimReadTransparentInput *self
,gboolean *value_encrypt_data
,GError **error
);
Get the 'Encrypt Data' field from self
.
Since: 1.6
gboolean qmi_message_uim_read_transparent_input_set_encrypt_data (QmiMessageUimReadTransparentInput *self
,gboolean value_encrypt_data
,GError **error
);
Set the 'Encrypt Data' field in the message.
Since: 1.6
gboolean qmi_message_uim_read_transparent_input_get_response_in_indication_token (QmiMessageUimReadTransparentInput *self
,guint32 *value_response_in_indication_token
,GError **error
);
Get the 'Response In Indication Token' field from self
.
Since: 1.6
gboolean qmi_message_uim_read_transparent_input_set_response_in_indication_token (QmiMessageUimReadTransparentInput *self
,guint32 value_response_in_indication_token
,GError **error
);
Set the 'Response In Indication Token' field in the message.
Since: 1.6
gboolean qmi_message_uim_read_transparent_input_get_read_information (QmiMessageUimReadTransparentInput *self
,guint16 *value_read_information_offset
,guint16 *value_read_information_length
,GError **error
);
Get the 'Read Information' field from self
.
Since: 1.6
gboolean qmi_message_uim_read_transparent_input_set_read_information (QmiMessageUimReadTransparentInput *self
,guint16 value_read_information_offset
,guint16 value_read_information_length
,GError **error
);
Set the 'Read Information' field in the message.
Since: 1.6
gboolean qmi_message_uim_read_transparent_input_get_file (QmiMessageUimReadTransparentInput *self
,guint16 *value_file_file_id
,GArray **value_file_file_path
,GError **error
);
Get the 'File' field from self
.
self |
||
value_file_file_id |
a placeholder for the output guint16, or |
[out][optional] |
value_file_file_path |
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_uim_read_transparent_input_set_file (QmiMessageUimReadTransparentInput *self
,guint16 value_file_file_id
,GArray *value_file_file_path
,GError **error
);
Set the 'File' field in the message.
self |
||
value_file_file_id |
a guint16. |
|
value_file_file_path |
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_uim_read_transparent_input_get_session (QmiMessageUimReadTransparentInput *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_read_transparent_input_set_session (QmiMessageUimReadTransparentInput *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
QmiMessageUimReadTransparentOutput *
qmi_message_uim_read_transparent_output_ref
(QmiMessageUimReadTransparentOutput *self
);
Atomically increments the reference count of self
by one.
Since: 1.6
void
qmi_message_uim_read_transparent_output_unref
(QmiMessageUimReadTransparentOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
Since: 1.6
gboolean qmi_message_uim_read_transparent_output_get_card_result (QmiMessageUimReadTransparentOutput *self
,guint8 *value_card_result_sw1
,guint8 *value_card_result_sw2
,GError **error
);
Get the 'Card result' field from self
.
Since: 1.6
gboolean qmi_message_uim_read_transparent_output_get_result (QmiMessageUimReadTransparentOutput *self
,GError **error
);
Get the result of the QMI operation.
Since: 1.6
gboolean qmi_message_uim_read_transparent_output_get_read_result (QmiMessageUimReadTransparentOutput *self
,GArray **value_read_result
,GError **error
);
Get the 'Read result' field from self
.
Since: 1.6
gboolean qmi_message_uim_read_transparent_output_get_response_in_indication_token (QmiMessageUimReadTransparentOutput *self
,guint32 *value_response_in_indication_token
,GError **error
);
Get the 'Response In Indication Token' field from self
.
Since: 1.6
gboolean qmi_message_uim_read_transparent_output_get_encrypted_data (QmiMessageUimReadTransparentOutput *self
,gboolean *value_encrypted_data
,GError **error
);
Get the 'Encrypted Data' field from self
.
Since: 1.6
QmiMessageUimReadTransparentOutput * qmi_message_uim_read_transparent_response_parse (QmiMessage *message
,GError **error
);
Parses a QmiMessage and builds a QmiMessageUimReadTransparentOutput out of it. The operation fails if the message is of the wrong type.
a QmiMessageUimReadTransparentOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_uim_read_transparent_output_unref()
.
Since: 1.34
void qmi_client_uim_read_transparent (QmiClientUim *self
,QmiMessageUimReadTransparentInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Read Transparent 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_read_transparent_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.6
QmiMessageUimReadTransparentOutput * qmi_client_uim_read_transparent_finish (QmiClientUim *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_uim_read_transparent()
.
self |
a QmiClientUim. |
|
res |
the GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
a QmiMessageUimReadTransparentOutput, or NULL
if error
is set. The returned value should be freed with qmi_message_uim_read_transparent_output_unref()
.
Since: 1.6
typedef struct _QmiMessageUimReadTransparentInput QmiMessageUimReadTransparentInput;
The QmiMessageUimReadTransparentInput structure contains private data and should only be accessed using the provided API.
Since: 1.6
typedef struct _QmiMessageUimReadTransparentOutput QmiMessageUimReadTransparentOutput;
The QmiMessageUimReadTransparentOutput structure contains private data and should only be accessed using the provided API.
Since: 1.6