aboutsummaryrefslogtreecommitdiff
path: root/examples/example_6_rpcClient
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-29 16:44:50 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-29 16:44:50 +0000
commitd7b243ed140f21a5861d18d8e77b1cb1b10b8227 (patch)
treea4d3b4a84d3553d19c14d11260a358de7748de1d /examples/example_6_rpcClient
parent935498300299dc6ef92a75d862670a3dd4028277 (diff)
downloadqxmpp-d7b243ed140f21a5861d18d8e77b1cb1b10b8227.tar.gz
don't use deprecated APIs
Diffstat (limited to 'examples/example_6_rpcClient')
-rw-r--r--examples/example_6_rpcClient/main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/example_6_rpcClient/main.cpp b/examples/example_6_rpcClient/main.cpp
index 08d43af4..ac7c4b5b 100644
--- a/examples/example_6_rpcClient/main.cpp
+++ b/examples/example_6_rpcClient/main.cpp
@@ -32,8 +32,14 @@ int main(int argc, char *argv[])
QXmppLogger::getLogger()->setLoggingType(QXmppLogger::StdoutLogging);
+ QXmppConfiguration config;
+ config.setUser("client");
+ config.setDomain("geiseri.com");
+ config.setPasswd("Passw0rd");
+ config.setHost("jabber.geiseri.com");
+ config.setUseSASLAuthentication(false);
+
rpcClient client;
- client.configuration().setUseSASLAuthentication( false );
- client.connectToServer("jabber.geiseri.com", "client", "Passw0rd", "geiseri.com");
+ client.connectToServer(config);
return a.exec();
}