| Home · All Classes · All Namespaces · Modules · Functions · Files

connection-factory.h
1
23 #ifndef _TelepathyQt_connection_factory_h_HEADER_GUARD_
24 #define _TelepathyQt_connection_factory_h_HEADER_GUARD_
25
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29
30 #include <TelepathyQt/Global>
31 #include <TelepathyQt/SharedPtr>
32 #include <TelepathyQt/Types>
33
34 #include <TelepathyQt/Feature>
35 #include <TelepathyQt/FixedFeatureFactory>
36
37 // For Q_DISABLE_COPY
38 #include <QtGlobal>
39
40 #include <QString>
41
42 class QDBusConnection;
43
44 namespace Tp
45 {
46
47 class PendingReady;
48
49 class TP_QT_EXPORT ConnectionFactory : public FixedFeatureFactory
50 {
51 public:
52 static ConnectionFactoryPtr create(const QDBusConnection &bus,
53 const Features &features = Features());
54
55 virtual ~ConnectionFactory();
56
57 PendingReady *proxy(const QString &busName, const QString &objectPath,
58 const ChannelFactoryConstPtr &chanFactory,
59 const ContactFactoryConstPtr &contactFactory) const;
60
61 protected:
62 ConnectionFactory(const QDBusConnection &bus, const Features &features);
63
64 virtual ConnectionPtr construct(const QString &busName, const QString &objectPath,
65 const ChannelFactoryConstPtr &chanFactory,
66 const ContactFactoryConstPtr &contactFactory) const;
67 virtual QString finalBusNameFrom(const QString &uniqueOrWellKnown) const;
68 // Nothing we'd like to prepare()
69 // Fixed features
70
71 private:
72 struct Private;
73 Private *mPriv; // Currently unused, just for future-proofing
74 };
75
76 } // Tp
77
78 #endif
Tp::PendingReady
The PendingReady class represents the features requested and the reply to a request for an object to ...
Definition: pending-ready.h:40
QDBusConnection
QString
Tp::ConnectionFactory
The ConnectionFactory class is responsible for constructing Connection objects according to applicati...
Definition: connection-factory.h:49
Tp::Features
The Features class represents a list of Feature.
Definition: feature.h:61
Tp::FixedFeatureFactory
The FixedFeatureFactory class is a base class for all D-Bus proxy factories which want the same set o...
Definition: fixed-feature-factory.h:43
Tp
Definition: abstract-adaptor.cpp:31