aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-26 07:42:44 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-26 07:42:44 +0000
commit159af6c7e6e07dce8644c2d058f3f02230760783 (patch)
treebbf88dd7bce88ab57f37ccbaefe396bd99e399fc /src
parent4ecc0dcf7934dd0d43be634d03da799af82f91e1 (diff)
downloadqxmpp-159af6c7e6e07dce8644c2d058f3f02230760783.tar.gz
move code to .cpp
Diffstat (limited to 'src')
-rw-r--r--src/QXmppIncomingClient.cpp24
-rw-r--r--src/QXmppIncomingClient.h22
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