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>
44 class PendingOperation;
54 typedef void (*IntrospectFunc)(
void *data);
61 const QStringList &dependsOnInterfaces,
62 IntrospectFunc introspectFunc,
63 void *introspectFuncData,
64 bool critical =
false);
74 friend struct Private;
75 QSharedDataPointer<Private> mPriv;
80 uint currentStatus = 0,
84 uint currentStatus = 0,
91 uint currentStatus()
const;
92 void setCurrentStatus(uint currentStatus);
93 void forceCurrentStatus(uint currentStatus);
95 QStringList interfaces()
const;
96 void setInterfaces(
const QStringList &interfaces);
102 bool isReady(
const Feature &feature,
103 QString *errorName = 0, QString *errorMessage = 0)
const;
104 bool isReady(
const Features &features,
105 QString *errorName = 0, QString *errorMessage = 0)
const;
108 void setIntrospectCompleted(
const Feature &feature,
bool success,
109 const QString &errorName = QString(),
110 const QString &errorMessage = QString());
111 void setIntrospectCompleted(
const Feature &feature,
bool success,
112 const QDBusError &error);
115 void statusReady(uint status);
118 TP_QT_NO_EXPORT
void iterateIntrospection();
120 TP_QT_NO_EXPORT
void onProxyInvalidated(
Tp::DBusProxy *proxy,
121 const QString &errorName,
const QString &errorMessage);
125 friend struct Private;