Infinity.CommunicationFactory

g GObject.GInterface GObject.GInterface Infinity.CommunicationFactory Infinity.CommunicationFactory GObject.GInterface->Infinity.CommunicationFactory

Implementations:

Infinity.CommunicationCentralFactory

Methods

instantiate (network, method_name, registry, group)

supports_method (network, method_name)

Virtual Methods

do_instantiate (network, method_name, registry, group)

do_supports_method (network, method_name)

Properties

None

Signals

None

Fields

None

Class Details

class Infinity.CommunicationFactory
Bases:

GObject.GInterface

Structure:

Infinity.CommunicationFactoryInterface

Infinity.CommunicationFactory is an opaque data type. You should only access it via the public API functions.

instantiate(network, method_name, registry, group)
Parameters:
Returns:

A new Infinity.CommunicationMethod.

Return type:

Infinity.CommunicationMethod

Creates a new Infinity.CommunicationMethod for network and method_name. The factory needs to support that method, see Infinity.CommunicationFactory.supports_method().

supports_method(network, method_name)
Parameters:
  • network (str) – A network specifier, such as “tcp/ip” or “jabber”.

  • method_name (str) – A method identifier, such as “central” or “groupchat”.

Returns:

Whether self supports the given network and method name.

Return type:

bool

Returns whether self supports creating methods that implement method_name as communication method for connections on network (see Infinity.XmlConnection :network).

do_instantiate(network, method_name, registry, group) virtual
Parameters:
Returns:

A new Infinity.CommunicationMethod.

Return type:

Infinity.CommunicationMethod

Creates a new Infinity.CommunicationMethod for network and method_name. The factory needs to support that method, see Infinity.CommunicationFactory.supports_method().

do_supports_method(network, method_name) virtual
Parameters:
  • network (str) – A network specifier, such as “tcp/ip” or “jabber”.

  • method_name (str) – A method identifier, such as “central” or “groupchat”.

Returns:

Whether factory supports the given network and method name.

Return type:

bool

Returns whether factory supports creating methods that implement method_name as communication method for connections on network (see Infinity.XmlConnection :network).