From 7aefcf239b4534574cda290132175afc8d56189a Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 26 Aug 2010 07:44:33 +0000 Subject: adapt to new API --- examples/example_8_server/main.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'examples/example_8_server') 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[]) -- cgit v1.2.3