diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-26 07:50:11 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-26 07:50:11 +0000 |
| commit | 821ac0b4dbeccd98d4483efcafecd82efbd55d8f (patch) | |
| tree | 539886b8fb08ee65d3ccdff2ec110cabc6b3cee6 /examples/example_8_server/main.cpp | |
| parent | 7aefcf239b4534574cda290132175afc8d56189a (diff) | |
rework QXmppPasswordChecker
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 c6c6027d..b5e8cc44 100644 --- a/examples/example_8_server/main.cpp +++ b/examples/example_8_server/main.cpp @@ -33,7 +33,7 @@ class passwordChecker : public QXmppPasswordChecker { /// Checks that the given credentials are valid. - bool checkCredentials(const QString &username, const QString &password) + bool checkPassword(const QString &username, const QString &password) { return (username == USERNAME && password == PASSWORD); }; @@ -50,8 +50,8 @@ class passwordChecker : public QXmppPasswordChecker } }; - /// Returns true as we support retrieving a password. - bool hasPasswords() const + /// Returns true as we implemented getPassword(). + bool hasGetPassword() const { return true; }; |
