23 #ifndef _TelepathyQt_account_manager_h_HEADER_GUARD_ 24 #define _TelepathyQt_account_manager_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/_gen/cli-account-manager.h> 32 #include <TelepathyQt/Account> 33 #include <TelepathyQt/AccountFactory> 34 #include <TelepathyQt/ChannelFactory> 35 #include <TelepathyQt/ConnectionFactory> 36 #include <TelepathyQt/ContactFactory> 37 #include <TelepathyQt/StatelessDBusProxy> 38 #include <TelepathyQt/Filter> 39 #include <TelepathyQt/OptionalInterfaceFactory> 40 #include <TelepathyQt/SharedPtr> 41 #include <TelepathyQt/Types> 43 #include <QDBusObjectPath> 46 #include <QVariantMap> 62 static AccountManagerPtr create(
const QDBusConnection &bus);
63 static AccountManagerPtr create(
64 const AccountFactoryConstPtr &accountFactory =
66 const ConnectionFactoryConstPtr &connectionFactory =
68 const ChannelFactoryConstPtr &channelFactory =
70 const ContactFactoryConstPtr &contactFactory =
72 static AccountManagerPtr create(
const QDBusConnection &bus,
73 const AccountFactoryConstPtr &accountFactory,
74 const ConnectionFactoryConstPtr &connectionFactory,
75 const ChannelFactoryConstPtr &channelFactory,
76 const ContactFactoryConstPtr &contactFactory =
81 AccountFactoryConstPtr accountFactory()
const;
82 ConnectionFactoryConstPtr connectionFactory()
const;
83 ChannelFactoryConstPtr channelFactory()
const;
84 ContactFactoryConstPtr contactFactory()
const;
86 QList<AccountPtr> allAccounts()
const;
88 AccountSetPtr validAccounts()
const;
89 AccountSetPtr invalidAccounts()
const;
91 AccountSetPtr enabledAccounts()
const;
92 AccountSetPtr disabledAccounts()
const;
94 AccountSetPtr onlineAccounts()
const;
95 AccountSetPtr offlineAccounts()
const;
97 AccountSetPtr textChatAccounts()
const;
98 AccountSetPtr textChatroomAccounts()
const;
100 AccountSetPtr audioCallAccounts()
const;
101 AccountSetPtr videoCallAccounts()
const;
103 TP_QT_DEPRECATED AccountSetPtr streamedMediaCallAccounts()
const;
104 TP_QT_DEPRECATED AccountSetPtr streamedMediaAudioCallAccounts()
const;
105 TP_QT_DEPRECATED AccountSetPtr streamedMediaVideoCallAccounts()
const;
106 TP_QT_DEPRECATED AccountSetPtr streamedMediaVideoCallWithAudioAccounts()
const;
108 AccountSetPtr fileTransferAccounts()
const;
110 AccountSetPtr accountsByProtocol(
const QString &protocolName)
const;
112 AccountSetPtr filterAccounts(
const AccountFilterConstPtr &filter)
const;
113 AccountSetPtr filterAccounts(
const QVariantMap &filter)
const;
115 AccountPtr accountForObjectPath(
const QString &path)
const;
116 TP_QT_DEPRECATED AccountPtr accountForPath(
const QString &path)
const;
117 QList<AccountPtr> accountsForObjectPaths(
const QStringList &paths)
const;
118 TP_QT_DEPRECATED QList<AccountPtr> accountsForPaths(
const QStringList &paths)
const;
120 QStringList supportedAccountProperties()
const;
122 const QString &protocol,
const QString &displayName,
123 const QVariantMap ¶meters,
124 const QVariantMap &properties = QVariantMap());
127 void newAccount(
const Tp::AccountPtr &account);
131 const AccountFactoryConstPtr &accountFactory,
132 const ConnectionFactoryConstPtr &connectionFactory,
133 const ChannelFactoryConstPtr &channelFactory,
134 const ContactFactoryConstPtr &contactFactory,
140 TP_QT_NO_EXPORT
void introspectMain();
141 TP_QT_NO_EXPORT
void gotMainProperties(QDBusPendingCallWatcher *watcher);
143 TP_QT_NO_EXPORT
void onAccountValidityChanged(
const QDBusObjectPath &objectPath,
145 TP_QT_NO_EXPORT
void onAccountRemoved(
const QDBusObjectPath &objectPath);
151 friend struct Private;
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
The StatelessDBusProxy class is a base class representing a remote object whose API is basically stat...
Definition: dbus-proxy.h:80
static ConnectionFactoryPtr create(const QDBusConnection &bus, const Features &features=Features())
Definition: connection-factory.cpp:57
static AccountFactoryPtr create(const QDBusConnection &bus, const Features &features=Features())
Definition: account-factory.cpp:58
static ChannelFactoryPtr create(const QDBusConnection &bus)
Definition: channel-factory.cpp:86
static ContactFactoryPtr create(const Features &features=Features())
Definition: contact-factory.cpp:48
Definition: cli-account-manager.h:44
The OptionalInterfaceFactory class is a helper class for high-level D-Bus proxy classes willing to of...
Definition: optional-interface-factory.h:65
static const Feature FeatureCore
Definition: account-manager.h:60
Definition: abstract-adaptor.cpp:31
The AccountManager class represents a Telepathy account manager.
Definition: account-manager.h:53
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
static const Feature FeatureCore
Definition: account.h:103
The PendingAccount class represents the parameters of and the reply to an asynchronous account reques...
Definition: pending-account.h:43