diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-03-29 14:05:02 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-03-29 14:05:02 +0000 |
| commit | 4f9276659d25ba625de36a0c2b0a7eef5c57f0cc (patch) | |
| tree | 9ba3323f3494dc9528076dec4b7761e42cc55d48 /examples/example_8_server/main.cpp | |
| parent | 75a0cb2036ebd6c1913caec6d4d9c4497481ec2f (diff) | |
| download | qxmpp-4f9276659d25ba625de36a0c2b0a7eef5c57f0cc.tar.gz | |
improve QXmppPasswordChecker return codes
Diffstat (limited to 'examples/example_8_server/main.cpp')
| -rw-r--r-- | examples/example_8_server/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } }; |
