From 4f9276659d25ba625de36a0c2b0a7eef5c57f0cc Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Tue, 29 Mar 2011 14:05:02 +0000 Subject: improve QXmppPasswordChecker return codes --- examples/example_8_server/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/example_8_server') diff --git a/examples/example_8_server/main.cpp b/examples/example_8_server/main.cpp index ed1f814e..bd24ebda 100644 --- a/examples/example_8_server/main.cpp +++ b/examples/example_8_server/main.cpp @@ -33,16 +33,16 @@ class passwordChecker : public QXmppPasswordChecker { /// Retrieves the password for the given username. - bool getPassword(const QString &username, const QString &domain, QString &password) + QXmppPasswordChecker::Error getPassword(const QString &username, const QString &domain, QString &password) { Q_UNUSED(domain); if (username == USERNAME) { password = PASSWORD; - return true; + return NoError; } else { - return false; + return AuthorizationError; } }; -- cgit v1.2.3