8 #ifndef IN_TP_QT_HEADER
12 #include <TelepathyQt/Types>
20 #include <QDBusPendingReply>
22 #include <TelepathyQt/AbstractInterface>
23 #include <TelepathyQt/DBusProxy>
24 #include <TelepathyQt/Global>
29 class PendingOperation;
57 return QLatin1String(
"org.freedesktop.Telepathy.AccountManager");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
107 return internalRequestProperty(QLatin1String(
"Interfaces"));
125 return internalRequestProperty(QLatin1String(
"ValidAccounts"));
140 return internalRequestProperty(QLatin1String(
"InvalidAccounts"));
197 return internalRequestProperty(QLatin1String(
"SupportedAccountProperties"));
208 return internalRequestAllProperties();
273 inline QDBusPendingReply<QDBusObjectPath>
CreateAccount(
const QString& connectionManager,
const QString& protocol,
const QString& displayName,
const QVariantMap& parameters,
const QVariantMap& properties,
int timeout = -1)
275 if (!invalidationReason().isEmpty()) {
276 return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
277 invalidationReason(),
278 invalidationMessage()
282 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
283 this->staticInterfaceName(), QLatin1String(
"CreateAccount"));
284 callMessage << QVariant::fromValue(connectionManager) << QVariant::fromValue(protocol) << QVariant::fromValue(displayName) << QVariant::fromValue(parameters) << QVariant::fromValue(properties);
285 return this->connection().asyncCall(callMessage, timeout);
301 void AccountRemoved(
const QDBusObjectPath& account);
319 void AccountValidityChanged(
const QDBusObjectPath& account,
bool valid);
322 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-account-manager.h:105
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::PendingVariant * requestPropertySupportedAccountProperties() const
Definition: cli-account-manager.h:195
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
static QLatin1String staticInterfaceName()
Definition: cli-account-manager.h:55
Tp::PendingVariant * requestPropertyValidAccounts() const
Definition: cli-account-manager.h:123
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
The AbstractInterface class is the base class for all client side D-Bus interfaces, allowing access to remote methods/properties/signals.
Definition: abstract-interface.h:42
QDBusPendingReply< QDBusObjectPath > CreateAccount(const QString &connectionManager, const QString &protocol, const QString &displayName, const QVariantMap ¶meters, const QVariantMap &properties, int timeout=-1)
Definition: cli-account-manager.h:273
Definition: cli-account-manager.h:44
Tp::PendingVariant * requestPropertyInvalidAccounts() const
Definition: cli-account-manager.h:138
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-account-manager.h:206