23 #ifndef _TelepathyQt_readiness_helper_h_HEADER_GUARD_
24 #define _TelepathyQt_readiness_helper_h_HEADER_GUARD_
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
30 #include <TelepathyQt/Feature>
34 #include <QSharedDataPointer>
35 #include <QStringList>
43 class PendingOperation;
53 typedef void (*IntrospectFunc)(
void *data);
60 const QStringList &dependsOnInterfaces,
61 IntrospectFunc introspectFunc,
62 void *introspectFuncData,
63 bool critical =
false);
73 friend struct Private;
74 QSharedDataPointer<Private> mPriv;
79 uint currentStatus = 0,
83 uint currentStatus = 0,
90 uint currentStatus()
const;
91 void setCurrentStatus(uint currentStatus);
92 void forceCurrentStatus(uint currentStatus);
94 QStringList interfaces()
const;
95 void setInterfaces(
const QStringList &interfaces);
101 bool isReady(
const Feature &feature,
102 QString *errorName = 0, QString *errorMessage = 0)
const;
103 bool isReady(
const Features &features,
104 QString *errorName = 0, QString *errorMessage = 0)
const;
107 void setIntrospectCompleted(
const Feature &feature,
bool success,
108 const QString &errorName = QString(),
109 const QString &errorMessage = QString());
110 void setIntrospectCompleted(
const Feature &feature,
bool success,
111 const QDBusError &error);
114 void statusReady(uint status);
117 TP_QT_NO_EXPORT
void iterateIntrospection();
119 TP_QT_NO_EXPORT
void onProxyInvalidated(
Tp::DBusProxy *proxy,
120 const QString &errorName,
const QString &errorMessage);
124 friend struct Private;
The PendingReady class represents the features requested and the reply to a request for an object to ...
Definition: pending-ready.h:40
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
QMap< Feature, Introspectable > Introspectables
Definition: readiness-helper.h:76
The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper.
Definition: readiness-helper.h:55
The ReadinessHelper class is a helper class used by the introspection process.
Definition: readiness-helper.h:47
The RefCounted class is a base class for shared objects used by SharedPtr.
Definition: shared-ptr.h:42
The Features class represents a list of Feature.
Definition: feature.h:61
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42