diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-26 07:44:33 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-26 07:44:33 +0000 |
| commit | 7aefcf239b4534574cda290132175afc8d56189a (patch) | |
| tree | 8cefeae20123d0cdd07a435bc27f3b16b98e1e52 /examples/example_8_server/main.cpp | |
| parent | 159af6c7e6e07dce8644c2d058f3f02230760783 (diff) | |
adapt to new API
Diffstat (limited to 'examples/example_8_server/main.cpp')
| -rw-r--r-- | examples/example_8_server/main.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/example_8_server/main.cpp b/examples/example_8_server/main.cpp index a5bcaf25..c6c6027d 100644 --- a/examples/example_8_server/main.cpp +++ b/examples/example_8_server/main.cpp @@ -33,13 +33,13 @@ class passwordChecker : public QXmppPasswordChecker { /// Checks that the given credentials are valid. - bool check(const QString &username, const QString &password) + bool checkCredentials(const QString &username, const QString &password) { return (username == USERNAME && password == PASSWORD); }; /// Retrieves the password for the given username. - bool get(const QString &username, QString &password) + bool getPassword(const QString &username, QString &password) { if (username == USERNAME) { @@ -49,6 +49,12 @@ class passwordChecker : public QXmppPasswordChecker return false; } }; + + /// Returns true as we support retrieving a password. + bool hasPasswords() const + { + return true; + }; }; int main(int argc, char *argv[]) |
