![]() |
![]() |
![]() |
telepathy-glib API Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
#include <telepathy-glib/automatic-proxy-factory.h> TpAutomaticProxyFactory; struct TpAutomaticProxyFactoryClass; TpAutomaticProxyFactory * tp_automatic_proxy_factory_new (void
); TpAutomaticProxyFactory * tp_automatic_proxy_factory_dup (void
);
This factory implements the TpClientChannelFactoryInterface interface to create specialized TpChannel subclasses.
TpAutomaticProxyFactory will currently create TpChannel objects as follows:
a TpStreamTubeChannel, if the channel is of type
TP_IFACE_CHANNEL_TYPE_STREAM_TUBE
;
a TpTextChannel, if the channel is of type
TP_IFACE_CHANNEL_TYPE_TEXT
and implements
TP_IFACE_CHANNEL_INTERFACE_MESSAGES
;
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 properties:
TP_CHANNEL_FEATURE_CORE
and TP_CHANNEL_FEATURE_GROUP
for all
type of channels.
TpProxy subclasses other than TpChannel are not currently supported.
typedef struct _TpAutomaticProxyFactory TpAutomaticProxyFactory;
Data structure representing a TpAutomaticProxyFactory
Since 0.13.2
struct TpAutomaticProxyFactoryClass { GObjectClass parent_class; };
The class of a TpAutomaticProxyFactory.
GObjectClass |
the parent class |
Since 0.13.2
TpAutomaticProxyFactory * tp_automatic_proxy_factory_new
(void
);
Convenient function to create a new TpAutomaticProxyFactory instance.
Returns : |
a new TpAutomaticProxyFactory |
Since 0.13.2
TpAutomaticProxyFactory * tp_automatic_proxy_factory_dup
(void
);
Returns a cached TpAutomaticProxyFactory; the same TpAutomaticProxyFactory object will be returned by this function repeatedly, as long as at least one reference exists.
Returns : |
a TpAutomaticProxyFactory. [transfer full] |
Since 0.13.2