TelepathyGLib.BaseConnectionClass

Fields

Name

Type

Access

Description

connected

TelepathyGLib.BaseConnectionProc

r

If set by subclasses, will be called just after the state changes to CONNECTED. May be None if nothing special needs to happen.

connecting

TelepathyGLib.BaseConnectionProc

r

If set by subclasses, will be called just after the state changes to CONNECTING. May be None if nothing special needs to happen.

create_channel_factories

object

r

Create an array of channel factories for this Connection. At least one of this or create_channel_managers must be set by subclasses to a non-None value; in new code, setting this to None and using channel managers exclusively is recommended.

create_channel_managers

object

r

Create an array of channel managers for this Connection. At least one of this or create_channel_factories must be set by subclasses to a non-None value.

disconnected

TelepathyGLib.BaseConnectionProc

r

If set by subclasses, will be called just after the state changes to DISCONNECTED. May be None if nothing special needs to happen.

get_interfaces_always_present

object

r

Returns a GLib.PtrArray of extra D-Bus interfaces which are always implemented by instances of this class, which may be filled in by subclasses. The default is to list no additional interfaces. Individual instances may detect which additional interfaces they support and signal them before going to state CONNECTED by calling tp_base_connection_add_interfaces().

get_unique_connection_name

TelepathyGLib.BaseConnectionGetUniqueConnectionNameImpl

r

Construct a unique name for this connection (for example using the protocol’s format for usernames). If None (the default), a unique name will be generated. Subclasses should usually override this to get more obvious names, to aid debugging and prevent multiple connections to the same account.

interfaces_always_present

str

r

parent_class

GObject.ObjectClass

r

The superclass’ structure

priv

object

r

shut_down

TelepathyGLib.BaseConnectionProc

r

Called after disconnected() is called, to clean up the connection. Must start the shutdown process for the underlying network connection, and arrange for tp_base_connection_finish_shutdown() to be called after the underlying connection has been closed. May not be left as None.

start_connecting

TelepathyGLib.BaseConnectionStartConnectingImpl

r

Asynchronously start connecting - called to implement the Connect D-Bus method. See TelepathyGLib.BaseConnectionStartConnectingImpl for details. May not be left as None.

Methods

None

Details

class TelepathyGLib.BaseConnectionClass

The class of a TelepathyGLib.BaseConnection. Many members are virtual methods etc. to be filled in in the subclass’ class_init function.