account-factory.h Source File

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

account-factory.h
1
23 #ifndef _TelepathyQt_account_factory_h_HEADER_GUARD_
24 #define _TelepathyQt_account_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/Account>
35 #include <TelepathyQt/Feature>
36 #include <TelepathyQt/FixedFeatureFactory>
37
38 class QDBusConnection;
39
40 namespace Tp
41 {
42
43 class PendingReady;
44
45 class TP_QT_EXPORT AccountFactory : public FixedFeatureFactory
46 {
47 Q_OBJECT
48 Q_DISABLE_COPY(AccountFactory)
49
50 public:
51 static AccountFactoryPtr create(const QDBusConnection &bus,
52 const Features &features = Features());
53
54 virtual ~AccountFactory();
55
56 PendingReady *proxy(const QString &busName, const QString &objectPath,
57 const ConnectionFactoryConstPtr &connFactory,
58 const ChannelFactoryConstPtr &chanFactory,
59 const ContactFactoryConstPtr &contactFactory) const;
60
61 protected:
62 AccountFactory(const QDBusConnection &bus, const Features &features);
63
64 virtual AccountPtr construct(const QString &busName, const QString &objectPath,
65 const ConnectionFactoryConstPtr &connFactory,
66 const ChannelFactoryConstPtr &chanFactory,
67 const ContactFactoryConstPtr &contactFactory) const;
68 virtual QString finalBusNameFrom(const QString &uniqueOrWellKnown) const;
69 // Nothing we'd like to prepare()
70 // Fixed features
71
72 private:
73 struct Private;
74 Private *mPriv; // Currently unused, just for future-proofing
75 };
76
77 } // Tp
78
79 #endif
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::PendingReady
The PendingReady class represents the features requested and the reply to a request for an object to ...
Definition: pending-ready.h:40
Tp::AccountFactory
The AccountFactory class is responsible for constructing Account objects according to application-def...
Definition: account-factory.h:45
Tp::Features
The Features class represents a list of Feature.
Definition: feature.h:61