Home · Modules · All Classes · All Namespaces |
The PendingCaptchas class represents an asynchronous operation for retrieving a captcha challenge from a connection manager. More...
#include <TelepathyQt/PendingCaptchas>
Inherits Tp::PendingOperation.
Public Member Functions | |
virtual | ~PendingCaptchas () |
Captcha | captcha () const |
QList< Captcha > | captchaList () const |
bool | requiresMultipleCaptchas () const |
Public Member Functions inherited from Tp::PendingOperation | |
virtual | ~PendingOperation () |
bool | isFinished () const |
bool | isValid () const |
bool | isError () const |
QString | errorName () const |
QString | errorMessage () const |
Additional Inherited Members | |
Signals inherited from Tp::PendingOperation | |
void | finished (Tp::PendingOperation *operation) |
Protected Slots inherited from Tp::PendingOperation | |
void | setFinished () |
void | setFinishedWithError (const QString &name, const QString &message) |
void | setFinishedWithError (const QDBusError &error) |
Protected Member Functions inherited from Tp::PendingOperation | |
PendingOperation (const SharedPtr< RefCounted > &object) | |
SharedPtr< RefCounted > | object () const |
The PendingCaptchas class represents an asynchronous operation for retrieving a captcha challenge from a connection manager.
|
virtual |
Class destructor.
Captcha Tp::PendingCaptchas::captcha | ( | ) | const |
Return the main captcha of the request. This captcha is guaranteed to be compatible with any constraint specified in CaptchaAuthentication::requestCaptchas().
This is a convenience method which should be used when requiresMultipleCaptchas() is false - otherwise, you should use captchaList.
The returned Captcha can be answered through CaptchaAuthentication::answer() by using its id.
This method will return a meaningful value only if the operation was completed successfully.
QList< Captcha > Tp::PendingCaptchas::captchaList | ( | ) | const |
Return all the captchas of the request. These captchas are guaranteed to be compatible with any constraint specified in CaptchaAuthentication::requestCaptchas().
If requiresMultipleCaptchas() is false, you probably want to use the convenience method captcha() instead.
The returned Captchas can be answered through CaptchaAuthentication::answer() by using their ids.
This method will return a meaningful value only if the operation was completed successfully.
bool Tp::PendingCaptchas::requiresMultipleCaptchas | ( | ) | const |
Return whether this request requires more than one captcha to be answered or not.
This method should always be checked before answering to find out what the connection manager expects. Depending on the result, you might want to use the result from captcha() if just a single answer is required, or from captchaList() otherwise.
This method will return a meaningful value only if the operation was completed successfully.
TelepathyQt 0.9.8 | Generated by 1.8.15 |