The ReadinessHelper class is a helper class used by the introspection process.
More...
#include <TelepathyQt/ReadinessHelper>
Inherits QObject.
|
| ReadinessHelper (RefCounted *object, uint currentStatus=0, const Introspectables &introspectables=Introspectables(), QObject *parent=0) |
|
| ReadinessHelper (DBusProxy *proxy, uint currentStatus=0, const Introspectables &introspectables=Introspectables(), QObject *parent=0) |
|
| ~ReadinessHelper () |
|
void | addIntrospectables (const Introspectables &introspectables) |
|
uint | currentStatus () const |
|
void | setCurrentStatus (uint currentStatus) |
|
void | forceCurrentStatus (uint currentStatus) |
|
QStringList | interfaces () const |
|
void | setInterfaces (const QStringList &interfaces) |
|
Features | requestedFeatures () const |
|
Features | actualFeatures () const |
|
Features | missingFeatures () const |
|
bool | isReady (const Feature &feature, QString *errorName=0, QString *errorMessage=0) const |
|
bool | isReady (const Features &features, QString *errorName=0, QString *errorMessage=0) const |
|
PendingReady * | becomeReady (const Features &requestedFeatures) |
|
void | setIntrospectCompleted (const Feature &feature, bool success, const QString &errorName=QString(), const QString &errorMessage=QString()) |
|
void | setIntrospectCompleted (const Feature &feature, bool success, const QDBusError &error) |
|
The ReadinessHelper class is a helper class used by the introspection process.
◆ IntrospectFunc
typedef void(* Tp::ReadinessHelper::IntrospectFunc) (void *data) |
◆ Introspectables
◆ ReadinessHelper() [1/2]
◆ ReadinessHelper() [2/2]
◆ ~ReadinessHelper()
Tp::ReadinessHelper::~ReadinessHelper |
( |
| ) |
|
◆ addIntrospectables()
void Tp::ReadinessHelper::addIntrospectables |
( |
const Introspectables & |
introspectables | ) |
|
◆ currentStatus()
uint Tp::ReadinessHelper::currentStatus |
( |
| ) |
const |
◆ setCurrentStatus()
void Tp::ReadinessHelper::setCurrentStatus |
( |
uint |
currentStatus | ) |
|
◆ forceCurrentStatus()
void Tp::ReadinessHelper::forceCurrentStatus |
( |
uint |
currentStatus | ) |
|
Force the current internal status to currentStatus.
Note that this method will not start a new introspection or restart the current one in case one is running.
This is useful for example when the status is unknown initially but it will become known in the first introspection run and there is no need to re-run the introspection.
- Parameters
-
currentStatus | The status to set. |
◆ interfaces()
QStringList Tp::ReadinessHelper::interfaces |
( |
| ) |
const |
◆ setInterfaces()
void Tp::ReadinessHelper::setInterfaces |
( |
const QStringList & |
interfaces | ) |
|
◆ requestedFeatures()
Features Tp::ReadinessHelper::requestedFeatures |
( |
| ) |
const |
◆ actualFeatures()
Features Tp::ReadinessHelper::actualFeatures |
( |
| ) |
const |
◆ missingFeatures()
Features Tp::ReadinessHelper::missingFeatures |
( |
| ) |
const |
◆ isReady() [1/2]
bool Tp::ReadinessHelper::isReady |
( |
const Feature & |
feature, |
|
|
QString * |
errorName = 0 , |
|
|
QString * |
errorMessage = 0 |
|
) |
| const |
◆ isReady() [2/2]
bool Tp::ReadinessHelper::isReady |
( |
const Features & |
features, |
|
|
QString * |
errorName = 0 , |
|
|
QString * |
errorMessage = 0 |
|
) |
| const |
◆ becomeReady()
◆ setIntrospectCompleted() [1/2]
void Tp::ReadinessHelper::setIntrospectCompleted |
( |
const Feature & |
feature, |
|
|
bool |
success, |
|
|
const QString & |
errorName = QString() , |
|
|
const QString & |
errorMessage = QString() |
|
) |
| |
◆ setIntrospectCompleted() [2/2]
void Tp::ReadinessHelper::setIntrospectCompleted |
( |
const Feature & |
feature, |
|
|
bool |
success, |
|
|
const QDBusError & |
error |
|
) |
| |
◆ statusReady
void Tp::ReadinessHelper::statusReady |
( |
uint |
status | ) |
|
|
signal |