aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppIncomingClient.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-26 07:39:14 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-26 07:39:14 +0000
commit4ecc0dcf7934dd0d43be634d03da799af82f91e1 (patch)
treeedf7ba529e0e8b537f367261d6ca4cc022331824 /src/QXmppIncomingClient.h
parent3a3f0d343cc4c2c01ab118098717a6c02543f7cd (diff)
downloadqxmpp-4ecc0dcf7934dd0d43be634d03da799af82f91e1.tar.gz
improve QXmppPasswordChecker class
Diffstat (limited to 'src/QXmppIncomingClient.h')
-rw-r--r--src/QXmppIncomingClient.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/QXmppIncomingClient.h b/src/QXmppIncomingClient.h
index 65acf842..a6be0a54 100644
--- a/src/QXmppIncomingClient.h
+++ b/src/QXmppIncomingClient.h
@@ -35,10 +35,24 @@ class QXmppPasswordChecker
{
public:
/// Checks that the given credentials are valid.
- virtual bool check(const QString &username, const QString &password) = 0;
+ virtual bool checkCredentials(const QString &username, const QString &password) = 0;
/// Retrieves the password for the given username.
- virtual bool get(const QString &username, QString &password) = 0;
+ ///
+ /// 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;
+ };
};
/// \brief The QXmppIncomingClient class represents an incoming XMPP stream