DMS Set Event Report response: libqmi-glib Reference Manual

## DMS Set Event Report response DMS Set Event Report response — Methods to manage the DMS Set Event Report response. |

## Functions

QmiMessageDmsSetEventReportInput * | qmi_message_dms_set_event_report_input_new ()
QmiMessageDmsSetEventReportInput * | qmi_message_dms_set_event_report_input_ref ()
void | qmi_message_dms_set_event_report_input_unref ()
gboolean | qmi_message_dms_set_event_report_input_get_prl_init_reporting ()
gboolean | qmi_message_dms_set_event_report_input_set_prl_init_reporting ()
gboolean | qmi_message_dms_set_event_report_input_get_wireless_disable_state_reporting ()
gboolean | qmi_message_dms_set_event_report_input_set_wireless_disable_state_reporting ()
gboolean | qmi_message_dms_set_event_report_input_get_uim_state_reporting ()
gboolean | qmi_message_dms_set_event_report_input_set_uim_state_reporting ()
gboolean | qmi_message_dms_set_event_report_input_get_operating_mode_reporting ()
gboolean | qmi_message_dms_set_event_report_input_set_operating_mode_reporting ()
gboolean | qmi_message_dms_set_event_report_input_get_activation_state_reporting ()
gboolean | qmi_message_dms_set_event_report_input_set_activation_state_reporting ()
gboolean | qmi_message_dms_set_event_report_input_get_pin_state_reporting ()
gboolean | qmi_message_dms_set_event_report_input_set_pin_state_reporting ()
gboolean | qmi_message_dms_set_event_report_input_get_battery_level_report_limits ()
gboolean | qmi_message_dms_set_event_report_input_set_battery_level_report_limits ()
gboolean | qmi_message_dms_set_event_report_input_get_power_state_reporting ()
gboolean | qmi_message_dms_set_event_report_input_set_power_state_reporting ()
QmiMessageDmsSetEventReportOutput * | qmi_message_dms_set_event_report_output_ref ()
void | qmi_message_dms_set_event_report_output_unref ()
gboolean | qmi_message_dms_set_event_report_output_get_result ()
QmiMessageDmsSetEventReportOutput * | qmi_message_dms_set_event_report_response_parse ()
void | qmi_client_dms_set_event_report ()
QmiMessageDmsSetEventReportOutput * | qmi_client_dms_set_event_report_finish ()

## Types and Values

| QmiMessageDmsSetEventReportInput
| QmiMessageDmsSetEventReportOutput

## Object Hierarchy

        GBoxed
        ├── QmiMessageDmsSetEventReportInput
        ╰── QmiMessageDmsSetEventReportOutput

## Description

Collection of methods to create requests and parse responses of the DMS Set Event Report message.

## Functions

### qmi_message_dms_set_event_report_input_new ()

    QmiMessageDmsSetEventReportInput *
    qmi_message_dms_set_event_report_input_new
                                   (void);

Allocates a new QmiMessageDmsSetEventReportInput.

#### Returns

the newly created QmiMessageDmsSetEventReportInput. The returned value should be freed with `qmi_message_dms_set_event_report_input_unref()`.

Since: 1.0

### qmi_message_dms_set_event_report_input_ref ()

    QmiMessageDmsSetEventReportInput *
    qmi_message_dms_set_event_report_input_ref
                                   (QmiMessageDmsSetEventReportInput *self);

Atomically increments the reference count of `self` by one.

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |

#### Returns

the new reference to `self` .

Since: 1.0

### qmi_message_dms_set_event_report_input_unref ()

    void
    qmi_message_dms_set_event_report_input_unref
                                   (QmiMessageDmsSetEventReportInput *self);

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

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |

Since: 1.0

### qmi_message_dms_set_event_report_input_get_prl_init_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_get_prl_init_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean *value_prl_init_reporting,
                                    GError **error);

Get the 'PRL Init Reporting' field from `self` .

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_prl_init_reporting | a placeholder for the output gboolean, 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.0

### qmi_message_dms_set_event_report_input_set_prl_init_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_set_prl_init_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean value_prl_init_reporting,
                                    GError **error);

Set the 'PRL Init Reporting' field in the message.

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_prl_init_reporting | a gboolean. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.0

### qmi_message_dms_set_event_report_input_get_wireless_disable_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_get_wireless_disable_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean *value_wireless_disable_state_reporting,
                                    GError **error);

Get the 'Wireless Disable State Reporting' field from `self` .

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_wireless_disable_state_reporting | a placeholder for the output gboolean, 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.0

### qmi_message_dms_set_event_report_input_set_wireless_disable_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_set_wireless_disable_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean value_wireless_disable_state_reporting,
                                    GError **error);

Set the 'Wireless Disable State Reporting' field in the message.

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_wireless_disable_state_reporting | a gboolean. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.0

### qmi_message_dms_set_event_report_input_get_uim_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_get_uim_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean *value_uim_state_reporting,
                                    GError **error);

Get the 'UIM State Reporting' field from `self` .

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_uim_state_reporting | a placeholder for the output gboolean, 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.0

### qmi_message_dms_set_event_report_input_set_uim_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_set_uim_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean value_uim_state_reporting,
                                    GError **error);

Set the 'UIM State Reporting' field in the message.

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_uim_state_reporting | a gboolean. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.0

### qmi_message_dms_set_event_report_input_get_operating_mode_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_get_operating_mode_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean *value_operating_mode_reporting,
                                    GError **error);

Get the 'Operating Mode Reporting' field from `self` .

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_operating_mode_reporting | a placeholder for the output gboolean, 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.0

### qmi_message_dms_set_event_report_input_set_operating_mode_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_set_operating_mode_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean value_operating_mode_reporting,
                                    GError **error);

Set the 'Operating Mode Reporting' field in the message.

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_operating_mode_reporting | a gboolean. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.0

### qmi_message_dms_set_event_report_input_get_activation_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_get_activation_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean *value_activation_state_reporting,
                                    GError **error);

Get the 'Activation State Reporting' field from `self` .

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_activation_state_reporting | a placeholder for the output gboolean, 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.0

### qmi_message_dms_set_event_report_input_set_activation_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_set_activation_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean value_activation_state_reporting,
                                    GError **error);

Set the 'Activation State Reporting' field in the message.

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_activation_state_reporting | a gboolean. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.0

### qmi_message_dms_set_event_report_input_get_pin_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_get_pin_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean *value_pin_state_reporting,
                                    GError **error);

Get the 'PIN State Reporting' field from `self` .

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_pin_state_reporting | a placeholder for the output gboolean, 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.0

### qmi_message_dms_set_event_report_input_set_pin_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_set_pin_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean value_pin_state_reporting,
                                    GError **error);

Set the 'PIN State Reporting' field in the message.

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_pin_state_reporting | a gboolean. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.0

### qmi_message_dms_set_event_report_input_get_battery_level_report_limits ()

    gboolean
    qmi_message_dms_set_event_report_input_get_battery_level_report_limits
                                   (QmiMessageDmsSetEventReportInput *self,
                                    guint8 *value_battery_level_report_limits_lower_limit,
                                    guint8 *value_battery_level_report_limits_upper_limit,
                                    GError **error);

Get the 'Battery Level Report Limits' field from `self` .

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_battery_level_report_limits_lower_limit | a placeholder for the output guint8, or `NULL` if not required. | [out][optional]
value_battery_level_report_limits_upper_limit | a placeholder for the output guint8, 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.0

### qmi_message_dms_set_event_report_input_set_battery_level_report_limits ()

    gboolean
    qmi_message_dms_set_event_report_input_set_battery_level_report_limits
                                   (QmiMessageDmsSetEventReportInput *self,
                                    guint8 value_battery_level_report_limits_lower_limit,
                                    guint8 value_battery_level_report_limits_upper_limit,
                                    GError **error);

Set the 'Battery Level Report Limits' field in the message.

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_battery_level_report_limits_lower_limit | a guint8. |
value_battery_level_report_limits_upper_limit | a guint8. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.0

### qmi_message_dms_set_event_report_input_get_power_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_get_power_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean *value_power_state_reporting,
                                    GError **error);

Get the 'Power State Reporting' field from `self` .

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_power_state_reporting | a placeholder for the output gboolean, 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.0

### qmi_message_dms_set_event_report_input_set_power_state_reporting ()

    gboolean
    qmi_message_dms_set_event_report_input_set_power_state_reporting
                                   (QmiMessageDmsSetEventReportInput *self,
                                    gboolean value_power_state_reporting,
                                    GError **error);

Set the 'Power State Reporting' field in the message.

#### Parameters

self | a QmiMessageDmsSetEventReportInput. |
value_power_state_reporting | a gboolean. |
error | Return location for error or `NULL`. |

#### Returns

`TRUE` if `value` was successfully set, `FALSE` otherwise.

[skip]

Since: 1.0

### qmi_message_dms_set_event_report_output_ref ()

    QmiMessageDmsSetEventReportOutput *
    qmi_message_dms_set_event_report_output_ref
                                   (QmiMessageDmsSetEventReportOutput *self);

Atomically increments the reference count of `self` by one.

#### Parameters

self | a QmiMessageDmsSetEventReportOutput. |

#### Returns

the new reference to `self` .

Since: 1.0

### qmi_message_dms_set_event_report_output_unref ()

    void
    qmi_message_dms_set_event_report_output_unref
                                   (QmiMessageDmsSetEventReportOutput *self);

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

#### Parameters

self | a QmiMessageDmsSetEventReportOutput. |

Since: 1.0

### qmi_message_dms_set_event_report_output_get_result ()

    gboolean
    qmi_message_dms_set_event_report_output_get_result
                                   (QmiMessageDmsSetEventReportOutput *self,
                                    GError **error);

Get the result of the QMI operation.

#### Parameters

self | a QmiMessageDmsSetEventReportOutput. |
error | Return location for error or `NULL`. |

#### Returns

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

[skip]

Since: 1.0

### qmi_message_dms_set_event_report_response_parse ()

    QmiMessageDmsSetEventReportOutput *
    qmi_message_dms_set_event_report_response_parse
                                   (QmiMessage *message,
                                    GError **error);

Parses a QmiMessage and builds a QmiMessageDmsSetEventReportOutput 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 QmiMessageDmsSetEventReportOutput, or `NULL` if `error` is set. The returned value should be freed with `qmi_message_dms_set_event_report_output_unref()`.

Since: 1.34

### qmi_client_dms_set_event_report ()

    void
    qmi_client_dms_set_event_report (QmiClientDms *self,
                                     QmiMessageDmsSetEventReportInput *input,
                                     guint timeout,
                                     GCancellable *cancellable,
                                     GAsyncReadyCallback callback,
                                     gpointer user_data);

Asynchronously sends a Set Event Report 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_dms_set_event_report_finish()` to get the result of the operation.

#### Parameters

self | a QmiClientDms. |
input | a QmiMessageDmsSetEventReportInput. |
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.0

### qmi_client_dms_set_event_report_finish ()

    QmiMessageDmsSetEventReportOutput *
    qmi_client_dms_set_event_report_finish
                                   (QmiClientDms *self,
                                    GAsyncResult *res,
                                    GError **error);

Finishes an async operation started with `qmi_client_dms_set_event_report()`.

#### Parameters

self | a QmiClientDms. |
res | the GAsyncResult obtained from the GAsyncReadyCallback passed to `qmi_client_dms_set_event_report()`. |
error | Return location for error or `NULL`. |

#### Returns

a QmiMessageDmsSetEventReportOutput, or `NULL` if `error` is set. The returned value should be freed with `qmi_message_dms_set_event_report_output_unref()`.

Since: 1.0

## Types and Values

### QmiMessageDmsSetEventReportInput

    typedef struct _QmiMessageDmsSetEventReportInput QmiMessageDmsSetEventReportInput;

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

Since: 1.0

### QmiMessageDmsSetEventReportOutput

    typedef struct _QmiMessageDmsSetEventReportOutput QmiMessageDmsSetEventReportOutput;

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

Since: 1.0