NAS Get Network Time response

NAS Get Network Time response — Methods to manage the NAS Get Network Time response.

Functions

Types and Values

Object Hierarchy

    GBoxed
    ╰── QmiMessageNasGetNetworkTimeOutput

Description

Collection of methods to create requests and parse responses of the NAS Get Network Time message.

Functions

qmi_message_nas_get_network_time_output_ref ()

QmiMessageNasGetNetworkTimeOutput *
qmi_message_nas_get_network_time_output_ref
                               (QmiMessageNasGetNetworkTimeOutput *self);

Atomically increments the reference count of self by one.

Parameters

Returns

the new reference to self .

Since: 1.36


qmi_message_nas_get_network_time_output_unref ()

void
qmi_message_nas_get_network_time_output_unref
                               (QmiMessageNasGetNetworkTimeOutput *self);

Atomically decrements the reference count of self by one. If the reference count drops to 0, self is completely disposed.

Parameters

Since: 1.36


qmi_message_nas_get_network_time_output_get_3gpp_time ()

gboolean
qmi_message_nas_get_network_time_output_get_3gpp_time
                               (QmiMessageNasGetNetworkTimeOutput *self,
                                guint16 *value_3gpp_time_universal_time_year,
                                guint8 *value_3gpp_time_universal_time_month,
                                guint8 *value_3gpp_time_universal_time_day,
                                guint8 *value_3gpp_time_universal_time_hour,
                                guint8 *value_3gpp_time_universal_time_minute,
                                guint8 *value_3gpp_time_universal_time_second,
                                QmiNasDayOfWeek *value_3gpp_time_universal_time_day_of_week,
                                gint8 *value_3gpp_time_timezone_offset,
                                QmiNasDaylightSavingsAdjustment *value_3gpp_time_daylight_savings_adjustment,
                                QmiNasRadioInterface *value_3gpp_time_radio_interface,
                                GError **error);

Get the '3GPP Time' field from self .

Parameters

self

a QmiMessageNasGetNetworkTimeOutput.

 

value_3gpp_time_universal_time_year

a placeholder for the output guint16, or NULL if not required.

[out][optional]

value_3gpp_time_universal_time_month

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp_time_universal_time_day

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp_time_universal_time_hour

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp_time_universal_time_minute

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp_time_universal_time_second

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp_time_universal_time_day_of_week

a placeholder for the output QmiNasDayOfWeek, or NULL if not required.

[out][optional]

value_3gpp_time_timezone_offset

a placeholder for the output gint8, or NULL if not required.

[out][optional]

value_3gpp_time_daylight_savings_adjustment

a placeholder for the output QmiNasDaylightSavingsAdjustment, or NULL if not required.

[out][optional]

value_3gpp_time_radio_interface

a placeholder for the output QmiNasRadioInterface, or NULL if not required.

[out][optional]

error

Return location for error or NULL.

 

Returns

TRUE if the field is found, FALSE otherwise.

[skip]

Since: 1.36


qmi_message_nas_get_network_time_output_get_3gpp2_time ()

gboolean
qmi_message_nas_get_network_time_output_get_3gpp2_time
                               (QmiMessageNasGetNetworkTimeOutput *self,
                                guint16 *value_3gpp2_time_universal_time_year,
                                guint8 *value_3gpp2_time_universal_time_month,
                                guint8 *value_3gpp2_time_universal_time_day,
                                guint8 *value_3gpp2_time_universal_time_hour,
                                guint8 *value_3gpp2_time_universal_time_minute,
                                guint8 *value_3gpp2_time_universal_time_second,
                                QmiNasDayOfWeek *value_3gpp2_time_universal_time_day_of_week,
                                gint8 *value_3gpp2_time_timezone_offset,
                                QmiNasDaylightSavingsAdjustment *value_3gpp2_time_daylight_savings_adjustment,
                                QmiNasRadioInterface *value_3gpp2_time_radio_interface,
                                GError **error);

Get the '3GPP2 Time' field from self .

Parameters

self

a QmiMessageNasGetNetworkTimeOutput.

 

value_3gpp2_time_universal_time_year

a placeholder for the output guint16, or NULL if not required.

[out][optional]

value_3gpp2_time_universal_time_month

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp2_time_universal_time_day

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp2_time_universal_time_hour

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp2_time_universal_time_minute

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp2_time_universal_time_second

a placeholder for the output guint8, or NULL if not required.

[out][optional]

value_3gpp2_time_universal_time_day_of_week

a placeholder for the output QmiNasDayOfWeek, or NULL if not required.

[out][optional]

value_3gpp2_time_timezone_offset

a placeholder for the output gint8, or NULL if not required.

[out][optional]

value_3gpp2_time_daylight_savings_adjustment

a placeholder for the output QmiNasDaylightSavingsAdjustment, or NULL if not required.

[out][optional]

value_3gpp2_time_radio_interface

a placeholder for the output QmiNasRadioInterface, or NULL if not required.

[out][optional]

error

Return location for error or NULL.

 

Returns

TRUE if the field is found, FALSE otherwise.

[skip]

Since: 1.36


qmi_message_nas_get_network_time_output_get_result ()

gboolean
qmi_message_nas_get_network_time_output_get_result
                               (QmiMessageNasGetNetworkTimeOutput *self,
                                GError **error);

Get the result of the QMI operation.

Parameters

self

a QmiMessageNasGetNetworkTimeOutput.

 

error

Return location for error or NULL.

 

Returns

TRUE if the QMI operation succeeded, FALSE if error is set.

[skip]

Since: 1.36


qmi_message_nas_get_network_time_response_parse ()

QmiMessageNasGetNetworkTimeOutput *
qmi_message_nas_get_network_time_response_parse
                               (QmiMessage *message,
                                GError **error);

Parses a QmiMessage and builds a QmiMessageNasGetNetworkTimeOutput out of it. The operation fails if the message is of the wrong type.

Parameters

message

a QmiMessage.

 

error

return location for error or NULL.

 

Returns

a QmiMessageNasGetNetworkTimeOutput, or NULL if error is set. The returned value should be freed with qmi_message_nas_get_network_time_output_unref().

Since: 1.36


qmi_client_nas_get_network_time ()

void
qmi_client_nas_get_network_time (QmiClientNas *self,
                                 gpointer unused,
                                 guint timeout,
                                 GCancellable *cancellable,
                                 GAsyncReadyCallback callback,
                                 gpointer user_data);

Asynchronously sends a Get Network Time 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_network_time_finish() to get the result of the operation.

Parameters

self

a QmiClientNas.

 

unused

NULL. This message doesn't have any input bundle.

 

timeout

maximum time to wait for the method to complete, in seconds.

 

cancellable

a GCancellable or NULL.

 

callback

a GAsyncReadyCallback to call when the request is satisfied.

 

user_data

user data to pass to callback .

 

Since: 1.36


qmi_client_nas_get_network_time_finish ()

QmiMessageNasGetNetworkTimeOutput *
qmi_client_nas_get_network_time_finish
                               (QmiClientNas *self,
                                GAsyncResult *res,
                                GError **error);

Finishes an async operation started with qmi_client_nas_get_network_time().

Parameters

self

a QmiClientNas.

 

res

the GAsyncResult obtained from the GAsyncReadyCallback passed to qmi_client_nas_get_network_time().

 

error

Return location for error or NULL.

 

Returns

a QmiMessageNasGetNetworkTimeOutput, or NULL if error is set. The returned value should be freed with qmi_message_nas_get_network_time_output_unref().

Since: 1.36

Types and Values

QmiMessageNasGetNetworkTimeOutput

typedef struct _QmiMessageNasGetNetworkTimeOutput QmiMessageNasGetNetworkTimeOutput;

The QmiMessageNasGetNetworkTimeOutput structure contains private data and should only be accessed using the provided API.

Since: 1.36