libqmi-glib Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
QmiMessageNasSetTechnologyPreferenceInput; QmiMessageNasSetTechnologyPreferenceOutput; QmiMessageNasSetTechnologyPreferenceInput * qmi_message_nas_set_technology_preference_input_new (void
); QmiMessageNasSetTechnologyPreferenceInput * qmi_message_nas_set_technology_preference_input_ref (QmiMessageNasSetTechnologyPreferenceInput *self
); void qmi_message_nas_set_technology_preference_input_unref (QmiMessageNasSetTechnologyPreferenceInput *self
); gboolean qmi_message_nas_set_technology_preference_input_get_current (QmiMessageNasSetTechnologyPreferenceInput *self
,QmiNasRadioTechnologyPreference *current_technology_preference
,QmiNasPreferenceDuration *current_technology_preference_duration
,GError **error
); gboolean qmi_message_nas_set_technology_preference_input_set_current (QmiMessageNasSetTechnologyPreferenceInput *self
,QmiNasRadioTechnologyPreference current_technology_preference
,QmiNasPreferenceDuration current_technology_preference_duration
,GError **error
); QmiMessageNasSetTechnologyPreferenceOutput * qmi_message_nas_set_technology_preference_output_ref (QmiMessageNasSetTechnologyPreferenceOutput *self
); void qmi_message_nas_set_technology_preference_output_unref (QmiMessageNasSetTechnologyPreferenceOutput *self
); gboolean qmi_message_nas_set_technology_preference_output_get_result (QmiMessageNasSetTechnologyPreferenceOutput *self
,GError **error
); void qmi_client_nas_set_technology_preference (QmiClientNas *self
,QmiMessageNasSetTechnologyPreferenceInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); QmiMessageNasSetTechnologyPreferenceOutput * qmi_client_nas_set_technology_preference_finish (QmiClientNas *self
,GAsyncResult *res
,GError **error
);
GBoxed +----QmiMessageNasSetTechnologyPreferenceInput
GBoxed +----QmiMessageNasSetTechnologyPreferenceOutput
typedef struct _QmiMessageNasSetTechnologyPreferenceInput QmiMessageNasSetTechnologyPreferenceInput;
The QmiMessageNasSetTechnologyPreferenceInput structure contains private data and should only be accessed using the provided API.
typedef struct _QmiMessageNasSetTechnologyPreferenceOutput QmiMessageNasSetTechnologyPreferenceOutput;
The QmiMessageNasSetTechnologyPreferenceOutput structure contains private data and should only be accessed using the provided API.
QmiMessageNasSetTechnologyPreferenceInput * qmi_message_nas_set_technology_preference_input_new
(void
);
Allocates a new QmiMessageNasSetTechnologyPreferenceInput.
Returns : |
the newly created QmiMessageNasSetTechnologyPreferenceInput. The returned value should be freed with qmi_message_nas_set_technology_preference_input_unref() . |
QmiMessageNasSetTechnologyPreferenceInput * qmi_message_nas_set_technology_preference_input_ref
(QmiMessageNasSetTechnologyPreferenceInput *self
);
Atomically increments the reference count of self
by one.
|
a QmiMessageNasSetTechnologyPreferenceInput. |
Returns : |
the new reference to self . |
void qmi_message_nas_set_technology_preference_input_unref
(QmiMessageNasSetTechnologyPreferenceInput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
gboolean qmi_message_nas_set_technology_preference_input_get_current (QmiMessageNasSetTechnologyPreferenceInput *self
,QmiNasRadioTechnologyPreference *current_technology_preference
,QmiNasPreferenceDuration *current_technology_preference_duration
,GError **error
);
Get the 'Current' field from self
.
|
a QmiMessageNasSetTechnologyPreferenceInput. |
|
a placeholder for the output QmiNasRadioTechnologyPreference, or NULL if not required. |
|
a placeholder for the output QmiNasPreferenceDuration, or NULL if not required. |
|
Return location for error or NULL . |
Returns : |
TRUE if the field is found, FALSE otherwise. |
gboolean qmi_message_nas_set_technology_preference_input_set_current (QmiMessageNasSetTechnologyPreferenceInput *self
,QmiNasRadioTechnologyPreference current_technology_preference
,QmiNasPreferenceDuration current_technology_preference_duration
,GError **error
);
Set the 'Current' field in the message.
|
a QmiMessageNasSetTechnologyPreferenceInput. |
|
a QmiNasRadioTechnologyPreference. |
|
a QmiNasPreferenceDuration. |
|
Return location for error or NULL . |
Returns : |
TRUE if value was successfully set, FALSE otherwise. |
QmiMessageNasSetTechnologyPreferenceOutput * qmi_message_nas_set_technology_preference_output_ref
(QmiMessageNasSetTechnologyPreferenceOutput *self
);
Atomically increments the reference count of self
by one.
|
a QmiMessageNasSetTechnologyPreferenceOutput. |
Returns : |
the new reference to self . |
void qmi_message_nas_set_technology_preference_output_unref
(QmiMessageNasSetTechnologyPreferenceOutput *self
);
Atomically decrements the reference count of self
by one.
If the reference count drops to 0, self
is completely disposed.
gboolean qmi_message_nas_set_technology_preference_output_get_result (QmiMessageNasSetTechnologyPreferenceOutput *self
,GError **error
);
Get the result of the QMI operation.
void qmi_client_nas_set_technology_preference (QmiClientNas *self
,QmiMessageNasSetTechnologyPreferenceInput *input
,guint timeout
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously sends a Set Technology Preference 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_set_technology_preference_finish()
to get the result of the operation.
|
a QmiClientNas. |
|
a QmiMessageNasSetTechnologyPreferenceInput. |
|
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 . |
QmiMessageNasSetTechnologyPreferenceOutput * qmi_client_nas_set_technology_preference_finish (QmiClientNas *self
,GAsyncResult *res
,GError **error
);
Finishes an async operation started with qmi_client_nas_set_technology_preference()
.
|
a QmiClientNas. |
|
the GAsyncResult obtained from the GAsyncReadyCallback passed to qmi_client_nas_set_technology_preference() . |
|
Return location for error or NULL . |
Returns : |
a QmiMessageNasSetTechnologyPreferenceOutput, or NULL if error is set. The returned value should be freed with qmi_message_nas_set_technology_preference_output_unref() . |