diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/QXmppIncomingClient.cpp | 24 | ||||
| -rw-r--r-- | src/QXmppIncomingClient.h | 22 |
2 files changed, 29 insertions, 17 deletions
diff --git a/src/QXmppIncomingClient.cpp b/src/QXmppIncomingClient.cpp index 6e425b74..e66b893f 100644 --- a/src/QXmppIncomingClient.cpp +++ b/src/QXmppIncomingClient.cpp @@ -312,3 +312,27 @@ void QXmppIncomingClient::slotTimeout() disconnectFromHost(); } +/// Retrieves the password for the given username. +/// +/// Reimplement this method to support DIGEST-MD5 authentication. +/// +/// \param username +/// \param password + +bool QXmppPasswordChecker::getPassword(const QString &username, QString &password) +{ + Q_UNUSED(username); + Q_UNUSED(password); + return false; +} + +/// Returns true if it is possible to retrieve passwords. +/// +/// Reimplement this method and return true if you provided a +/// getPassword() method. + +bool QXmppPasswordChecker::hasPasswords() const +{ + return false; +} + diff --git a/src/QXmppIncomingClient.h b/src/QXmppIncomingClient.h index a6be0a54..25022d0c 100644 --- a/src/QXmppIncomingClient.h +++ b/src/QXmppIncomingClient.h @@ -35,24 +35,12 @@ class QXmppPasswordChecker { public: /// Checks that the given credentials are valid. - virtual bool checkCredentials(const QString &username, const QString &password) = 0; - - /// Retrieves the password for the given username. /// - /// Reimplement this method to support DIGEST-MD5 authentication. - virtual bool getPassword(const QString &username, QString &password) - { - return false; - }; - - /// Returns true if it is possible to retrieve passwords. - /// - /// Reimplement this method and return true if you provided a - /// getPassword() method. - virtual bool hasPasswords() const - { - return false; - }; + /// \param username + /// \param password + virtual bool checkCredentials(const QString &username, const QString &password) = 0; + virtual bool getPassword(const QString &username, QString &password); + virtual bool hasPasswords() const; }; /// \brief The QXmppIncomingClient class represents an incoming XMPP stream |
