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.Authentication.TLSCertificate");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
126 return internalRequestProperty(QLatin1String(
"State"));
151 return internalRequestProperty(QLatin1String(
"Rejections"));
166 return internalRequestProperty(QLatin1String(
"CertificateType"));
186 return internalRequestProperty(QLatin1String(
"CertificateChainData"));
197 return internalRequestAllProperties();
211 inline QDBusPendingReply<>
Accept(
int timeout = -1)
213 if (!invalidationReason().isEmpty()) {
214 return QDBusPendingReply<>(QDBusMessage::createError(
215 invalidationReason(),
216 invalidationMessage()
220 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
221 this->staticInterfaceName(), QLatin1String(
"Accept"));
222 return this->connection().asyncCall(callMessage, timeout);
244 if (!invalidationReason().isEmpty()) {
245 return QDBusPendingReply<>(QDBusMessage::createError(
246 invalidationReason(),
247 invalidationMessage()
251 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
252 this->staticInterfaceName(), QLatin1String(
"Reject"));
253 callMessage << QVariant::fromValue(rejections);
254 return this->connection().asyncCall(callMessage, timeout);
277 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
Tp::PendingVariant * requestPropertyCertificateType() const
Definition: cli-tls-certificate.h:164
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::PendingVariant * requestPropertyState() const
Definition: cli-tls-certificate.h:124
Definition: cli-tls-certificate.h:44
Tp::PendingVariant * requestPropertyCertificateChainData() const
Definition: cli-tls-certificate.h:184
static QLatin1String staticInterfaceName()
Definition: cli-tls-certificate.h:55
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-tls-certificate.h:195
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 Reject(const Tp::TLSCertificateRejectionList &rejections, int timeout=-1)
Definition: cli-tls-certificate.h:242
QList< TLSCertificateRejection > TLSCertificateRejectionList
Definition: build/TelepathyQt/_gen/types.h:3203
Tp::PendingVariant * requestPropertyRejections() const
Definition: cli-tls-certificate.h:149
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
QDBusPendingReply Accept(int timeout=-1)
Definition: cli-tls-certificate.h:211