Top |
TpAutomaticClientFactoryTpAutomaticClientFactory — Factory for specialized TpChannel subclasses. |
This factory overrides some TpClientFactory virtual methods to create specialized TpChannel subclasses.
TpAutomaticClientFactory will currently create TpChannel objects as follows:
a TpStreamTubeChannel, if the channel is of type
TP_IFACE_CHANNEL_TYPE_STREAM_TUBE
;
a TpDBusTubeChannel, if the channel is of type
TP_IFACE_CHANNEL_TYPE_DBUS_TUBE
;
a TpTextChannel, if the channel is of type
TP_IFACE_CHANNEL_TYPE_TEXT
and implements
TP_IFACE_CHANNEL_INTERFACE_MESSAGES
;
a TpFileTransferChannel, if the channel is of type
TP_IFACE_CHANNEL_TYPE_FILE_TRANSFER
;
a TpCallChannel, if the channel is of type
TP_IFACE_CHANNEL_TYPE_CALL
;
a plain TpChannel, otherwise
It is guaranteed that the objects returned by future versions will be either the class that is currently used, or a more specific subclass of that class.
This factory asks to prepare the following features:
TpClientFactory *
tp_automatic_client_factory_new (GDBusConnection *dbus_connection
);
Since 0.99.1
struct TpAutomaticClientFactory;
Data structure representing a TpAutomaticClientFactory
Since 0.15.5
struct TpAutomaticClientFactoryClass { TpClientFactoryClass parent_class; };
The class of a TpAutomaticClientFactory.
Since 0.15.5