Qmi.MessagePdcLoadConfigInput

Fields

None

Methods

class

new ()

get_config_chunk ()

get_token ()

ref ()

set_config_chunk (value_config_chunk_type, value_config_chunk_id, value_config_chunk_total_size, value_config_chunk_chunk)

set_token (value_token)

unref ()

Details

class Qmi.MessagePdcLoadConfigInput

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

New in version 1.18.

classmethod new()
Returns:

the newly created Qmi.MessagePdcLoadConfigInput. The returned value should be freed with Qmi.MessagePdcLoadConfigInput.unref().

Return type:

Qmi.MessagePdcLoadConfigInput

Allocates a new Qmi.MessagePdcLoadConfigInput.

New in version 1.18.

get_config_chunk()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_config_chunk_type:

a placeholder for the output Qmi.PdcConfigurationType, or None if not required.

value_config_chunk_id:

a placeholder for the output GLib.Array of #guint8 elements, or None if not required. Do not free it, it is owned by self.

value_config_chunk_total_size:

a placeholder for the output #guint32, or None if not required.

value_config_chunk_chunk:

a placeholder for the output GLib.Array of #guint8 elements, or None if not required. Do not free it, it is owned by self.

Return type:

(bool, value_config_chunk_type: Qmi.PdcConfigurationType, value_config_chunk_id: bytes, value_config_chunk_total_size: int, value_config_chunk_chunk: bytes)

Get the ‘Config Chunk’ field from self.

New in version 1.18.

get_token()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_token:

a placeholder for the output #guint32, or None if not required.

Return type:

(bool, value_token: int)

Get the ‘Token’ field from self.

New in version 1.18.

ref()
Returns:

the new reference to self.

Return type:

Qmi.MessagePdcLoadConfigInput

Atomically increments the reference count of self by one.

New in version 1.18.

set_config_chunk(value_config_chunk_type, value_config_chunk_id, value_config_chunk_total_size, value_config_chunk_chunk)
Parameters:
  • value_config_chunk_type (Qmi.PdcConfigurationType) – a Qmi.PdcConfigurationType.

  • value_config_chunk_id (bytes) – a GLib.Array of #guint8 elements. A new reference to value_config_chunk_id will be taken, so the caller must make sure the array was created with the correct GLib.DestroyNotify as clear function for each element in the array.

  • value_config_chunk_total_size (int) – a #guint32.

  • value_config_chunk_chunk (bytes) – a GLib.Array of #guint8 elements. A new reference to value_config_chunk_chunk will be taken, so the caller must make sure the array was created with the correct GLib.DestroyNotify as clear function for each element in the array.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘Config Chunk’ field in the message.

New in version 1.18.

set_token(value_token)
Parameters:

value_token (int) – a #guint32.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘Token’ field in the message.

New in version 1.18.

unref()

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

New in version 1.18.