libqmi-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
QmiMessageNasGetSignalStrengthInput; QmiMessageNasGetSignalStrengthOutput; QmiMessageNasGetSignalStrengthOutputErrorRateListElement; QmiMessageNasGetSignalStrengthOutputEcioListElement; QmiMessageNasGetSignalStrengthOutputRssiListElement; QmiMessageNasGetSignalStrengthOutputStrengthListElement; QmiMessageNasGetSignalStrengthInput * qmi_message_nas_get_signal_strength_input_new (void
); QmiMessageNasGetSignalStrengthInput * qmi_message_nas_get_signal_strength_input_ref (QmiMessageNasGetSignalStrengthInput *self
); void qmi_message_nas_get_signal_strength_input_unref (QmiMessageNasGetSignalStrengthInput *self
); gboolean qmi_message_nas_get_signal_strength_input_get_request_mask (QmiMessageNasGetSignalStrengthInput *self
,QmiNasSignalStrengthRequest *request_mask
,GError **error
); gboolean qmi_message_nas_get_signal_strength_input_set_request_mask (QmiMessageNasGetSignalStrengthInput *self
,QmiNasSignalStrengthRequest request_mask
,GError **error
); QmiMessageNasGetSignalStrengthOutput * qmi_message_nas_get_signal_strength_output_ref (QmiMessageNasGetSignalStrengthOutput *self
); void qmi_message_nas_get_signal_strength_output_unref (QmiMessageNasGetSignalStrengthOutput *self
); gboolean qmi_message_nas_get_signal_strength_output_get_result (QmiMessageNasGetSignalStrengthOutput *self
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_lte_rsrp (QmiMessageNasGetSignalStrengthOutput *self
,gint16 *lte_rsrp
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_lte_snr (QmiMessageNasGetSignalStrengthOutput *self
,gint16 *lte_snr
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_rsrq (QmiMessageNasGetSignalStrengthOutput *self
,gint8 *rsrq_rsrq
,QmiNasRadioInterface *rsrq_radio_interface
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_error_rate_list (QmiMessageNasGetSignalStrengthOutput *self
,GArray **error_rate_list
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_sinr (QmiMessageNasGetSignalStrengthOutput *self
,QmiNasEvdoSinrLevel *sinr
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_io (QmiMessageNasGetSignalStrengthOutput *self
,gint32 *io
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_ecio_list (QmiMessageNasGetSignalStrengthOutput *self
,GArray **ecio_list
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_rssi_list (QmiMessageNasGetSignalStrengthOutput *self
,GArray **rssi_list
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_strength_list (QmiMessageNasGetSignalStrengthOutput *self
,GArray **strength_list
,GError **error
); gboolean qmi_message_nas_get_signal_strength_output_get_signal_strength (QmiMessageNasGetSignalStrengthOutput *self
,gint8 *signal_strength_strength
,QmiNasRadioInterface *signal_strength_radio_interface
,GError **error
); void qmi_client_nas_get_signal_strength (QmiClientNas *self
,QmiMessageNasGetSignalStrengthInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); QmiMessageNasGetSignalStrengthOutput * qmi_client_nas_get_signal_strength_finish (QmiClientNas *self
,GAsyncResult *res
,GError **error
);
GBoxed +----QmiMessageNasGetSignalStrengthInput
GBoxed +----QmiMessageNasGetSignalStrengthOutput
typedef struct _QmiMessageNasGetSignalStrengthInput QmiMessageNasGetSignalStrengthInput;
The QmiMessageNasGetSignalStrengthInput structure contains private data and should only be accessed using the provided API.
typedef struct _QmiMessageNasGetSignalStrengthOutput QmiMessageNasGetSignalStrengthOutput;
The QmiMessageNasGetSignalStrengthOutput structure contains private data and should only be accessed using the provided API.
typedef struct { guint16 rate; QmiNasRadioInterface radio_interface; } QmiMessageNasGetSignalStrengthOutputErrorRateListElement;
A QmiMessageNasGetSignalStrengthOutputErrorRateListElement struct.
guint16 |
a guint16. |
QmiNasRadioInterface |
a QmiNasRadioInterface. |
typedef struct { gint8 ecio; QmiNasRadioInterface radio_interface; } QmiMessageNasGetSignalStrengthOutputEcioListElement;
A QmiMessageNasGetSignalStrengthOutputEcioListElement struct.
gint8 |
a gint8. |
QmiNasRadioInterface |
a QmiNasRadioInterface. |
typedef struct { guint8 rssi; QmiNasRadioInterface radio_interface; } QmiMessageNasGetSignalStrengthOutputRssiListElement;
A QmiMessageNasGetSignalStrengthOutputRssiListElement struct.
guint8 |
a guint8. |
QmiNasRadioInterface |
a QmiNasRadioInterface. |
typedef struct { gint8 strength; QmiNasRadioInterface radio_interface; } QmiMessageNasGetSignalStrengthOutputStrengthListElement;
A QmiMessageNasGetSignalStrengthOutputStrengthListElement struct.
gint8 |
a gint8. |
QmiNasRadioInterface |
a QmiNasRadioInterface. |
QmiMessageNasGetSignalStrengthInput * qmi_message_nas_get_signal_strength_input_new
(void
);
Allocates a new QmiMessageNasGetSignalStrengthInput.
Returns : |
the newly created QmiMessageNasGetSignalStrengthInput. The returned value should be freed with qmi_message_nas_get_signal_strength_input_unref() . |
QmiMessageNasGetSignalStrengthInput * qmi_message_nas_get_signal_strength_input_ref
(QmiMessageNasGetSignalStrengthInput *self
);
Atomically increments the reference count of self
by one.
|
a QmiMessageNasGetSignalStrengthInput. |
Returns : |
the new reference to self . |
void qmi_message_nas_get_signal_strength_input_unref
(QmiMessageNasGetSignalStrengthInput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
|
a QmiMessageNasGetSignalStrengthInput. |
gboolean qmi_message_nas_get_signal_strength_input_get_request_mask (QmiMessageNasGetSignalStrengthInput *self
,QmiNasSignalStrengthRequest *request_mask
,GError **error
);
Get the 'Request Mask' field from self
.
|
a QmiMessageNasGetSignalStrengthInput. |
|
a placeholder for the output QmiNasSignalStrengthRequest, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_nas_get_signal_strength_input_set_request_mask (QmiMessageNasGetSignalStrengthInput *self
,QmiNasSignalStrengthRequest request_mask
,GError **error
);
Set the 'Request Mask' field in the message.
|
a QmiMessageNasGetSignalStrengthInput. |
|
a QmiNasSignalStrengthRequest. |
|
Return location for error or NULL . |
Returns : |
TRUE if value was successfully set, FALSE otherwise. |
QmiMessageNasGetSignalStrengthOutput * qmi_message_nas_get_signal_strength_output_ref
(QmiMessageNasGetSignalStrengthOutput *self
);
Atomically increments the reference count of self
by one.
|
a QmiMessageNasGetSignalStrengthOutput. |
Returns : |
the new reference to self . |
void qmi_message_nas_get_signal_strength_output_unref
(QmiMessageNasGetSignalStrengthOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
|
a QmiMessageNasGetSignalStrengthOutput. |
gboolean qmi_message_nas_get_signal_strength_output_get_result (QmiMessageNasGetSignalStrengthOutput *self
,GError **error
);
Get the result of the QMI operation.
gboolean qmi_message_nas_get_signal_strength_output_get_lte_rsrp (QmiMessageNasGetSignalStrengthOutput *self
,gint16 *lte_rsrp
,GError **error
);
Get the 'LTE RSRP' field from self
.
gboolean qmi_message_nas_get_signal_strength_output_get_lte_snr (QmiMessageNasGetSignalStrengthOutput *self
,gint16 *lte_snr
,GError **error
);
Get the 'LTE SNR' field from self
.
gboolean qmi_message_nas_get_signal_strength_output_get_rsrq (QmiMessageNasGetSignalStrengthOutput *self
,gint8 *rsrq_rsrq
,QmiNasRadioInterface *rsrq_radio_interface
,GError **error
);
Get the 'RSRQ' field from self
.
|
a QmiMessageNasGetSignalStrengthOutput. |
|
a placeholder for the output gint8, or NULL if not required. |
|
a placeholder for the output QmiNasRadioInterface, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_nas_get_signal_strength_output_get_error_rate_list (QmiMessageNasGetSignalStrengthOutput *self
,GArray **error_rate_list
,GError **error
);
Get the 'Error Rate List' field from self
.
|
a QmiMessageNasGetSignalStrengthOutput. |
|
a placeholder for the output GArray of QmiMessageNasGetSignalStrengthOutputErrorRateListElement 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_nas_get_signal_strength_output_get_sinr (QmiMessageNasGetSignalStrengthOutput *self
,QmiNasEvdoSinrLevel *sinr
,GError **error
);
Get the 'SINR' field from self
.
|
a QmiMessageNasGetSignalStrengthOutput. |
|
a placeholder for the output QmiNasEvdoSinrLevel, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_nas_get_signal_strength_output_get_io (QmiMessageNasGetSignalStrengthOutput *self
,gint32 *io
,GError **error
);
Get the 'IO' field from self
.
gboolean qmi_message_nas_get_signal_strength_output_get_ecio_list (QmiMessageNasGetSignalStrengthOutput *self
,GArray **ecio_list
,GError **error
);
Get the 'ECIO List' field from self
.
|
a QmiMessageNasGetSignalStrengthOutput. |
|
a placeholder for the output GArray of QmiMessageNasGetSignalStrengthOutputEcioListElement 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_nas_get_signal_strength_output_get_rssi_list (QmiMessageNasGetSignalStrengthOutput *self
,GArray **rssi_list
,GError **error
);
Get the 'RSSI List' field from self
.
|
a QmiMessageNasGetSignalStrengthOutput. |
|
a placeholder for the output GArray of QmiMessageNasGetSignalStrengthOutputRssiListElement 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_nas_get_signal_strength_output_get_strength_list (QmiMessageNasGetSignalStrengthOutput *self
,GArray **strength_list
,GError **error
);
Get the 'Strength List' field from self
.
|
a QmiMessageNasGetSignalStrengthOutput. |
|
a placeholder for the output GArray of QmiMessageNasGetSignalStrengthOutputStrengthListElement 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_nas_get_signal_strength_output_get_signal_strength (QmiMessageNasGetSignalStrengthOutput *self
,gint8 *signal_strength_strength
,QmiNasRadioInterface *signal_strength_radio_interface
,GError **error
);
Get the 'Signal Strength' field from self
.
|
a QmiMessageNasGetSignalStrengthOutput. |
|
a placeholder for the output gint8, or NULL if not required. |
|
a placeholder for the output QmiNasRadioInterface, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
void qmi_client_nas_get_signal_strength (QmiClientNas *self
,QmiMessageNasGetSignalStrengthInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Get Signal Strength 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_nas_get_signal_strength_finish()
to get the result of the operation.
|
a QmiClientNas. |
|
a QmiMessageNasGetSignalStrengthInput. |
|
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 . |
QmiMessageNasGetSignalStrengthOutput * qmi_client_nas_get_signal_strength_finish (QmiClientNas *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_nas_get_signal_strength()
.
|
a QmiClientNas. |
|
the GAsyncResult obtained from the GAsyncReadyCallback passed to qmi_client_nas_get_signal_strength() . |
|
Return location for error or NULL . |
Returns : |
a QmiMessageNasGetSignalStrengthOutput, or NULL if error is set. The returned value should be freed with qmi_message_nas_get_signal_strength_output_unref() . |