23 #ifndef _TelepathyQt_connection_manager_h_HEADER_GUARD_
24 #define _TelepathyQt_connection_manager_h_HEADER_GUARD_
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
30 #include <TelepathyQt/_gen/cli-connection-manager.h>
32 #include <TelepathyQt/ChannelFactory>
33 #include <TelepathyQt/ConnectionFactory>
34 #include <TelepathyQt/Constants>
35 #include <TelepathyQt/ContactFactory>
36 #include <TelepathyQt/DBus>
37 #include <TelepathyQt/DBusProxy>
38 #include <TelepathyQt/OptionalInterfaceFactory>
39 #include <TelepathyQt/ProtocolInfo>
40 #include <TelepathyQt/ProtocolParameter>
41 #include <TelepathyQt/ReadinessHelper>
42 #include <TelepathyQt/SharedPtr>
43 #include <TelepathyQt/Types>
48 class ConnectionManagerLowlevel;
49 class PendingConnection;
50 class PendingStringList;
57 Q_PROPERTY(
QString name READ name)
58 Q_PROPERTY(
QStringList supportedProtocols READ supportedProtocols)
66 static ConnectionManagerPtr create(
const QString &name,
67 const ConnectionFactoryConstPtr &connectionFactory =
69 const ChannelFactoryConstPtr &channelFactory =
71 const ContactFactoryConstPtr &contactFactory =
75 const ConnectionFactoryConstPtr &connectionFactory,
76 const ChannelFactoryConstPtr &channelFactory,
77 const ContactFactoryConstPtr &contactFactory =
84 ConnectionFactoryConstPtr connectionFactory()
const;
85 ChannelFactoryConstPtr channelFactory()
const;
86 ContactFactoryConstPtr contactFactory()
const;
90 bool hasProtocol(
const QString &protocolName)
const;
96 #if defined(BUILDING_TP_QT) || defined(TP_QT_ENABLE_LOWLEVEL_API)
97 ConnectionManagerLowlevelPtr lowlevel();
98 ConnectionManagerLowlevelConstPtr lowlevel()
const;
103 const ConnectionFactoryConstPtr &connectionFactory,
104 const ChannelFactoryConstPtr &channelFactory,
105 const ContactFactoryConstPtr &contactFactory);
119 friend struct Private;
Definition: cli-connection-manager.h:44
The PendingConnection class represents the parameters of and the reply to an asynchronous connection ...
Definition: pending-connection.h:43
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
The ProtocolInfo class represents a Telepathy Protocol.
Definition: protocol-info.h:46
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
QDBusConnection sessionBus()
The OptionalInterfaceFactory class is a helper class for high-level D-Bus proxy classes willing to of...
Definition: optional-interface-factory.h:65
The PendingStringList class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-string-list.h:37
static ChannelFactoryPtr create(const QDBusConnection &bus)
Definition: channel-factory.cpp:86
static ConnectionFactoryPtr create(const QDBusConnection &bus, const Features &features=Features())
Definition: connection-factory.cpp:57
The ConnectionManager class represents a Telepathy connection manager.
Definition: connection-manager.h:52
static ContactFactoryPtr create(const Features &features=Features())
Definition: contact-factory.cpp:48
The StatelessDBusProxy class is a base class representing a remote object whose API is basically stat...
Definition: dbus-proxy.h:80
static const Feature FeatureCore
Definition: connection-manager.h:62
Definition: abstract-adaptor.cpp:31