Qmi.MessageLocSetServerInput

Fields

None

Methods

class

new ()

get_ipv4 ()

get_ipv6 ()

get_server_type ()

get_url ()

ref ()

set_ipv4 (value_ipv4_ipv4_address, value_ipv4_ipv4_port)

set_ipv6 (value_ipv6_ipv6_address, value_ipv6_ipv6_port)

set_server_type (value_server_type)

set_url (value_url)

unref ()

Details

class Qmi.MessageLocSetServerInput

The Qmi.MessageLocSetServerInput 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.MessageLocSetServerInput. The returned value should be freed with Qmi.MessageLocSetServerInput.unref().

Return type:

Qmi.MessageLocSetServerInput

Allocates a new Qmi.MessageLocSetServerInput.

New in version 1.22.

get_ipv4()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_ipv4_ipv4_address:

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

value_ipv4_ipv4_port:

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

Return type:

(bool, value_ipv4_ipv4_address: int, value_ipv4_ipv4_port: int)

Get the ‘IPv4’ field from self.

New in version 1.22.

get_ipv6()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_ipv6_ipv6_address:

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

value_ipv6_ipv6_port:

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

Return type:

(bool, value_ipv6_ipv6_address: [int], value_ipv6_ipv6_port: int)

Get the ‘IPv6’ field from self.

New in version 1.22.

get_server_type()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_server_type:

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

Return type:

(bool, value_server_type: Qmi.LocServerType)

Get the ‘Server Type’ field from self.

New in version 1.22.

get_url()
Raises:

GLib.Error

Returns:

True if the field is found, False otherwise.

value_url:

a placeholder for the output constant string, or None if not required.

Return type:

(bool, value_url: str)

Get the ‘URL’ field from self.

New in version 1.22.

ref()
Returns:

the new reference to self.

Return type:

Qmi.MessageLocSetServerInput

Atomically increments the reference count of self by one.

New in version 1.22.

set_ipv4(value_ipv4_ipv4_address, value_ipv4_ipv4_port)
Parameters:
  • value_ipv4_ipv4_address (int) – a #guint32.

  • value_ipv4_ipv4_port (int) – a #guint16.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘IPv4’ field in the message.

New in version 1.22.

set_ipv6(value_ipv6_ipv6_address, value_ipv6_ipv6_port)
Parameters:
  • value_ipv6_ipv6_address ([int]) – a GLib.Array of #guint16 elements. A new reference to value_ipv6_ipv6_address 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_ipv6_ipv6_port (int) – a #guint32.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘IPv6’ field in the message.

New in version 1.22.

set_server_type(value_server_type)
Parameters:

value_server_type (Qmi.LocServerType) – a Qmi.LocServerType.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘Server Type’ field in the message.

New in version 1.22.

set_url(value_url)
Parameters:

value_url (str) – a constant string with a maximum length of 256 characters.

Raises:

GLib.Error

Returns:

True if value was successfully set, False otherwise.

Return type:

bool

Set the ‘URL’ 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.