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.CommunicationFactoryis an opaque data type. You should only access it via the public API functions.- 
instantiate(network, method_name, registry, group)¶
- Parameters: - network (str) – A network specifier, such as “tcp/ip” or “jabber”.
- method_name (str) – A method identifier, such as “central” or “groupchat”.
- registry (Infinity.CommunicationRegistry) – AInfinity.CommunicationRegistryat which the created method can register connections.
- group (Infinity.CommunicationGroup) – TheInfinity.CommunicationGroupfor which to create the method.
 - Returns: - A new - Infinity.CommunicationMethod.- Return type: - Creates a new - Infinity.CommunicationMethodfor network and method_name. The factory needs to support that method, see- Infinity.CommunicationFactory.supports_method().
- network (
 - 
supports_method(network, method_name)¶
- Parameters: - Returns: - Whether self supports the given network and method name. - Return type: - 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: - network (str) – A network specifier, such as “tcp/ip” or “jabber”.
- method_name (str) – A method identifier, such as “central” or “groupchat”.
- registry (Infinity.CommunicationRegistry) – AInfinity.CommunicationRegistryat which the created method can register connections.
- group (Infinity.CommunicationGroup) – TheInfinity.CommunicationGroupfor which to create the method.
 - Returns: - A new - Infinity.CommunicationMethod.- Return type: - Creates a new - Infinity.CommunicationMethodfor network and method_name. The factory needs to support that method, see- Infinity.CommunicationFactory.supports_method().
- network (
 - 
do_supports_method(network, method_name) virtual¶
- Parameters: - Returns: - Whether factory supports the given network and method name. - Return type: - Returns whether factory supports creating methods that implement method_name as communication method for connections on network (see - Infinity.XmlConnection- :network).
 
-