libqmi-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
QmiMessageWmsRawReadInput; QmiMessageWmsRawReadOutput; QmiMessageWmsRawReadInput * qmi_message_wms_raw_read_input_new (void
); QmiMessageWmsRawReadInput * qmi_message_wms_raw_read_input_ref (QmiMessageWmsRawReadInput *self
); void qmi_message_wms_raw_read_input_unref (QmiMessageWmsRawReadInput *self
); gboolean qmi_message_wms_raw_read_input_get_sms_on_ims (QmiMessageWmsRawReadInput *self
,gboolean *sms_on_ims
,GError **error
); gboolean qmi_message_wms_raw_read_input_set_sms_on_ims (QmiMessageWmsRawReadInput *self
,gboolean sms_on_ims
,GError **error
); gboolean qmi_message_wms_raw_read_input_get_message_mode (QmiMessageWmsRawReadInput *self
,QmiWmsMessageMode *message_mode
,GError **error
); gboolean qmi_message_wms_raw_read_input_set_message_mode (QmiMessageWmsRawReadInput *self
,QmiWmsMessageMode message_mode
,GError **error
); gboolean qmi_message_wms_raw_read_input_get_message_memory_storage_id (QmiMessageWmsRawReadInput *self
,QmiWmsStorageType *message_memory_storage_id_storage_type
,guint32 *message_memory_storage_id_memory_index
,GError **error
); gboolean qmi_message_wms_raw_read_input_set_message_memory_storage_id (QmiMessageWmsRawReadInput *self
,QmiWmsStorageType message_memory_storage_id_storage_type
,guint32 message_memory_storage_id_memory_index
,GError **error
); QmiMessageWmsRawReadOutput * qmi_message_wms_raw_read_output_ref (QmiMessageWmsRawReadOutput *self
); void qmi_message_wms_raw_read_output_unref (QmiMessageWmsRawReadOutput *self
); gboolean qmi_message_wms_raw_read_output_get_result (QmiMessageWmsRawReadOutput *self
,GError **error
); gboolean qmi_message_wms_raw_read_output_get_raw_message_data (QmiMessageWmsRawReadOutput *self
,QmiWmsMessageTagType *raw_message_data_message_tag
,QmiWmsMessageFormat *raw_message_data_format
,GArray **raw_message_data_raw_data
,GError **error
); void qmi_client_wms_raw_read (QmiClientWms *self
,QmiMessageWmsRawReadInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); QmiMessageWmsRawReadOutput * qmi_client_wms_raw_read_finish (QmiClientWms *self
,GAsyncResult *res
,GError **error
);
typedef struct _QmiMessageWmsRawReadInput QmiMessageWmsRawReadInput;
The QmiMessageWmsRawReadInput structure contains private data and should only be accessed using the provided API.
typedef struct _QmiMessageWmsRawReadOutput QmiMessageWmsRawReadOutput;
The QmiMessageWmsRawReadOutput structure contains private data and should only be accessed using the provided API.
QmiMessageWmsRawReadInput * qmi_message_wms_raw_read_input_new
(void
);
Allocates a new QmiMessageWmsRawReadInput.
Returns : |
the newly created QmiMessageWmsRawReadInput. The returned value should be freed with qmi_message_wms_raw_read_input_unref() . |
QmiMessageWmsRawReadInput * qmi_message_wms_raw_read_input_ref
(QmiMessageWmsRawReadInput *self
);
Atomically increments the reference count of self
by one.
|
a QmiMessageWmsRawReadInput. |
Returns : |
the new reference to self . |
void qmi_message_wms_raw_read_input_unref
(QmiMessageWmsRawReadInput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
|
a QmiMessageWmsRawReadInput. |
gboolean qmi_message_wms_raw_read_input_get_sms_on_ims (QmiMessageWmsRawReadInput *self
,gboolean *sms_on_ims
,GError **error
);
Get the 'SMS on IMS' field from self
.
gboolean qmi_message_wms_raw_read_input_set_sms_on_ims (QmiMessageWmsRawReadInput *self
,gboolean sms_on_ims
,GError **error
);
Set the 'SMS on IMS' field in the message.
|
a QmiMessageWmsRawReadInput. |
|
a gboolean. |
|
Return location for error or NULL . |
Returns : |
TRUE if value was successfully set, FALSE otherwise. |
gboolean qmi_message_wms_raw_read_input_get_message_mode (QmiMessageWmsRawReadInput *self
,QmiWmsMessageMode *message_mode
,GError **error
);
Get the 'Message Mode' field from self
.
|
a QmiMessageWmsRawReadInput. |
|
a placeholder for the output QmiWmsMessageMode, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_wms_raw_read_input_set_message_mode (QmiMessageWmsRawReadInput *self
,QmiWmsMessageMode message_mode
,GError **error
);
Set the 'Message Mode' field in the message.
|
a QmiMessageWmsRawReadInput. |
|
a QmiWmsMessageMode. |
|
Return location for error or NULL . |
Returns : |
TRUE if value was successfully set, FALSE otherwise. |
gboolean qmi_message_wms_raw_read_input_get_message_memory_storage_id (QmiMessageWmsRawReadInput *self
,QmiWmsStorageType *message_memory_storage_id_storage_type
,guint32 *message_memory_storage_id_memory_index
,GError **error
);
Get the 'Message Memory Storage ID' field from self
.
|
a QmiMessageWmsRawReadInput. |
|
a placeholder for the output QmiWmsStorageType, or NULL if not required. |
|
a placeholder for the output guint32, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_wms_raw_read_input_set_message_memory_storage_id (QmiMessageWmsRawReadInput *self
,QmiWmsStorageType message_memory_storage_id_storage_type
,guint32 message_memory_storage_id_memory_index
,GError **error
);
Set the 'Message Memory Storage ID' field in the message.
|
a QmiMessageWmsRawReadInput. |
|
a QmiWmsStorageType. |
|
a guint32. |
|
Return location for error or NULL . |
Returns : |
TRUE if value was successfully set, FALSE otherwise. |
QmiMessageWmsRawReadOutput * qmi_message_wms_raw_read_output_ref
(QmiMessageWmsRawReadOutput *self
);
Atomically increments the reference count of self
by one.
|
a QmiMessageWmsRawReadOutput. |
Returns : |
the new reference to self . |
void qmi_message_wms_raw_read_output_unref
(QmiMessageWmsRawReadOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
|
a QmiMessageWmsRawReadOutput. |
gboolean qmi_message_wms_raw_read_output_get_result (QmiMessageWmsRawReadOutput *self
,GError **error
);
Get the result of the QMI operation.
gboolean qmi_message_wms_raw_read_output_get_raw_message_data (QmiMessageWmsRawReadOutput *self
,QmiWmsMessageTagType *raw_message_data_message_tag
,QmiWmsMessageFormat *raw_message_data_format
,GArray **raw_message_data_raw_data
,GError **error
);
Get the 'Raw Message Data' field from self
.
|
a QmiMessageWmsRawReadOutput. |
|
a placeholder for the output QmiWmsMessageTagType, or NULL if not required. |
|
a placeholder for the output QmiWmsMessageFormat, 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. |
void qmi_client_wms_raw_read (QmiClientWms *self
,QmiMessageWmsRawReadInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Raw Read 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_wms_raw_read_finish()
to get the result of the operation.
|
a QmiClientWms. |
|
a QmiMessageWmsRawReadInput. |
|
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 . |
QmiMessageWmsRawReadOutput * qmi_client_wms_raw_read_finish (QmiClientWms *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_wms_raw_read()
.
|
a QmiClientWms. |
|
the GAsyncResult obtained from the GAsyncReadyCallback passed to qmi_client_wms_raw_read() . |
|
Return location for error or NULL . |
Returns : |
a QmiMessageWmsRawReadOutput, or NULL if error is set. The returned value should be freed with qmi_message_wms_raw_read_output_unref() . |