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.Properties");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
122 return internalRequestAllProperties();
153 if (!invalidationReason().isEmpty()) {
154 return QDBusPendingReply<Tp::PropertyValueList>(QDBusMessage::createError(
155 invalidationReason(),
156 invalidationMessage()
160 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
161 this->staticInterfaceName(), QLatin1String(
"GetProperties"));
162 callMessage << QVariant::fromValue(properties);
163 return this->connection().asyncCall(callMessage, timeout);
184 if (!invalidationReason().isEmpty()) {
185 return QDBusPendingReply<Tp::PropertySpecList>(QDBusMessage::createError(
186 invalidationReason(),
187 invalidationMessage()
191 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
192 this->staticInterfaceName(), QLatin1String(
"ListProperties"));
193 return this->connection().asyncCall(callMessage, timeout);
222 if (!invalidationReason().isEmpty()) {
223 return QDBusPendingReply<>(QDBusMessage::createError(
224 invalidationReason(),
225 invalidationMessage()
229 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
230 this->staticInterfaceName(), QLatin1String(
"SetProperties"));
231 callMessage << QVariant::fromValue(properties);
232 return this->connection().asyncCall(callMessage, timeout);
275 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
QList< PropertyValue > PropertyValueList
Definition: build/TelepathyQt/_gen/types.h:2369
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-properties.h:120
static QLatin1String staticInterfaceName()
Definition: cli-properties.h:55
QList< PropertyFlagsChange > PropertyFlagsChangeList
Definition: build/TelepathyQt/_gen/types.h:2302
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< Tp::PropertySpecList > ListProperties(int timeout=-1)
Definition: cli-properties.h:182
Definition: cli-properties.h:44
QDBusPendingReply SetProperties(const Tp::PropertyValueList &properties, int timeout=-1)
Definition: cli-properties.h:220
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Definition: build/TelepathyQt/_gen/types.h:107
Definition: abstract-adaptor.cpp:31
QDBusPendingReply< Tp::PropertyValueList > GetProperties(const Tp::UIntList &properties, int timeout=-1)
Definition: cli-properties.h:151
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42