Qmi.MessageLocInjectXtraDataInput

Fields

None

Methods

class

new ()

get_part_data ()

get_part_number ()

get_total_parts ()

get_total_size ()

ref ()

set_part_data (value_part_data)

set_part_number (value_part_number)

set_total_parts (value_total_parts)

set_total_size (value_total_size)

unref ()

Details

class Qmi.MessageLocInjectXtraDataInput

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

New in version 1.22.

classmethod new()
Returns:

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

Return type:

Qmi.MessageLocInjectXtraDataInput

Allocates a new Qmi.MessageLocInjectXtraDataInput.

New in version 1.22.

get_part_data()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_part_data:

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_part_data: bytes)

Get the ‘Part Data’ field from self.

New in version 1.22.

get_part_number()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_part_number:

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

Return type:

(bool, value_part_number: int)

Get the ‘Part Number’ field from self.

New in version 1.22.

get_total_parts()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_total_parts:

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

Return type:

(bool, value_total_parts: int)

Get the ‘Total Parts’ field from self.

New in version 1.22.

get_total_size()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_total_size:

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

Return type:

(bool, value_total_size: int)

Get the ‘Total Size’ field from self.

New in version 1.22.

ref()
Returns:

the new reference to self.

Return type:

Qmi.MessageLocInjectXtraDataInput

Atomically increments the reference count of self by one.

New in version 1.22.

set_part_data(value_part_data)
Parameters:

value_part_data (bytes) – a GLib.Array of #guint8 elements. A new reference to value_part_data 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 ‘Part Data’ field in the message.

New in version 1.22.

set_part_number(value_part_number)
Parameters:

value_part_number (int) – a #guint16.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘Part Number’ field in the message.

New in version 1.22.

set_total_parts(value_total_parts)
Parameters:

value_total_parts (int) – a #guint16.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘Total Parts’ field in the message.

New in version 1.22.

set_total_size(value_total_size)
Parameters:

value_total_size (int) – a #guint32.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘Total Size’ field in the message.

New in version 1.22.

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.22.