diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-04-07 18:27:51 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-04-07 18:27:51 +0000 |
| commit | 194762951e6a59808350032f38e05cd0e5d03807 (patch) | |
| tree | c766a97835dad98838906710be77a2197099e1e9 /src/QXmppIncomingClient.h | |
| parent | fafebd0f90dd8b6fe311e0384898653632072539 (diff) | |
| download | qxmpp-194762951e6a59808350032f38e05cd0e5d03807.tar.gz | |
make password checking full asynchronous
Diffstat (limited to 'src/QXmppIncomingClient.h')
| -rw-r--r-- | src/QXmppIncomingClient.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/QXmppIncomingClient.h b/src/QXmppIncomingClient.h index 8e95bd0a..793b8141 100644 --- a/src/QXmppIncomingClient.h +++ b/src/QXmppIncomingClient.h @@ -27,28 +27,11 @@ #include "QXmppStream.h" class QXmppIncomingClientPrivate; +class QXmppPasswordChecker; /// \brief Interface for password checkers. /// -class QXmppPasswordChecker -{ -public: - /// This enum is used to describe authentication errors. - enum Error { - NoError = 0, - AuthorizationError, - TemporaryError, - }; - - virtual Error checkPassword(const QString &username, const QString &domain, const QString &password); - virtual Error getDigest(const QString &username, const QString &domain, QByteArray &digest); - virtual bool hasGetPassword() const; - -protected: - virtual Error getPassword(const QString &username, const QString &domain, QString &password); -}; - /// \brief The QXmppIncomingClient class represents an incoming XMPP stream /// from an XMPP client. /// @@ -78,7 +61,9 @@ protected: /// \endcond private slots: - void slotTimeout(); + void onDigestReply(); + void onPasswordReply(); + void onTimeout(); private: Q_DISABLE_COPY(QXmppIncomingClient) |
