TelepathyGLib.ConnectionManagerProtocol

Fields

Name

Type

Access

Description

name

str

r/w

The name of this connection manager

params

TelepathyGLib.ConnectionManagerParam

r/w

Array of TelepathyGLib.ConnectionManagerParam structures, terminated by a structure whose name is None

priv

object

r

Methods

can_register ()

copy ()

dup_param_names ()

free ()

get_param (param)

has_param (param)

Details

class TelepathyGLib.ConnectionManagerProtocol

Structure representing a protocol supported by a connection manager. Note that the size of this structure may change, so its size must not be relied on.

New in version 0.7.1.

Deprecated since version 0.19.1: , use TelepathyGLib.Protocol objects instead

can_register()
Returns:

True if self supports the parameter “register”

Return type:

bool

Return whether a new account can be registered on this protocol, by setting the special “register” parameter to True.

New in version 0.7.26.

Deprecated since version 0.19.1: , use TelepathyGLib.Protocol objects instead

copy()
Returns:

a newly (slice) allocated TelepathyGLib.ConnectionManagerProtocol, free with TelepathyGLib.ConnectionManagerProtocol.free()

Return type:

TelepathyGLib.ConnectionManagerProtocol

Returns: says it all

New in version 0.11.3.

Deprecated since version 0.19.1: , use TelepathyGLib.Protocol objects instead

dup_param_names()
Returns:

a #GStrv of protocol names

Return type:

[str]

Returns a list of parameter names supported by this connection manager for this protocol.

The result is copied and must be freed by the caller with GLib.strfreev().

New in version 0.7.26.

Deprecated since version 0.19.1: , use TelepathyGLib.Protocol objects instead

free()

Frees self, which was copied with TelepathyGLib.ConnectionManagerProtocol.copy().

New in version 0.11.3.

Deprecated since version 0.19.1: , use TelepathyGLib.Protocol objects instead

get_param(param)
Parameters:

param (str) – a parameter name

Returns:

a structure representing the parameter param, or None if not supported

Return type:

TelepathyGLib.ConnectionManagerParam

no more to say

New in version 0.7.26.

Deprecated since version 0.19.1: , use TelepathyGLib.Protocol objects instead

has_param(param)
Parameters:

param (str) – a parameter name

Returns:

True if self supports the parameter param.

Return type:

bool

no more to say

New in version 0.7.26.

Deprecated since version 0.19.1: , use TelepathyGLib.Protocol objects instead