From b9ec343db542bd36003175cadce1e901a5960079 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 9 Aug 2010 17:04:06 +0000 Subject: deprecated QXmppClient::getConfiguration --- example/example_3_transferHandling/main.cpp | 1 - example/example_3_transferHandling/xmppClient.cpp | 2 +- example/example_4_callHandling/main.cpp | 1 - example/example_4_callHandling/xmppClient.cpp | 2 +- example/example_5_rpcInterface/main.cpp | 2 +- example/example_6_rpcClient/main.cpp | 2 +- 6 files changed, 4 insertions(+), 6 deletions(-) (limited to 'example') diff --git a/example/example_3_transferHandling/main.cpp b/example/example_3_transferHandling/main.cpp index 9b379180..0bb9c403 100644 --- a/example/example_3_transferHandling/main.cpp +++ b/example/example_3_transferHandling/main.cpp @@ -44,7 +44,6 @@ int main(int argc, char *argv[]) const QString username = (!strcmp(argv[1], "send")) ? QLatin1String("qxmpp.test1") : QLatin1String("qxmpp.test2"); xmppClient client; - client.getConfiguration().setUseSASLAuthentication( false ); client.connectToServer("talk.google.com", username, "qxmpp123", "gmail.com"); return a.exec(); } diff --git a/example/example_3_transferHandling/xmppClient.cpp b/example/example_3_transferHandling/xmppClient.cpp index 6bd18b78..dc4a9e88 100644 --- a/example/example_3_transferHandling/xmppClient.cpp +++ b/example/example_3_transferHandling/xmppClient.cpp @@ -88,7 +88,7 @@ void xmppClient::slotPresenceReceived(const QXmppPresence &presence) // if we are the recipient, or if the presence is not from the recipient, // do nothing - if (getConfiguration().jidBare() == recipient || + if (configuration().jidBare() == recipient || jidToBareJid(presence.from()) != recipient || presence.type() != QXmppPresence::Available) return; diff --git a/example/example_4_callHandling/main.cpp b/example/example_4_callHandling/main.cpp index 3bcc8376..9341ba6a 100644 --- a/example/example_4_callHandling/main.cpp +++ b/example/example_4_callHandling/main.cpp @@ -44,7 +44,6 @@ int main(int argc, char *argv[]) const QString username = (!strcmp(argv[1], "send")) ? QLatin1String("qxmpp.test1") : QLatin1String("qxmpp.test2"); xmppClient client; - client.getConfiguration().setUseSASLAuthentication( false ); client.connectToServer("talk.google.com", username, "qxmpp123", "gmail.com"); return a.exec(); } diff --git a/example/example_4_callHandling/xmppClient.cpp b/example/example_4_callHandling/xmppClient.cpp index 93bbba07..48c35391 100644 --- a/example/example_4_callHandling/xmppClient.cpp +++ b/example/example_4_callHandling/xmppClient.cpp @@ -101,7 +101,7 @@ void xmppClient::slotPresenceReceived(const QXmppPresence &presence) // if we are the recipient, or if the presence is not from the recipient, // do nothing - if (getConfiguration().jidBare() == recipient || + if (configuration().jidBare() == recipient || jidToBareJid(presence.from()) != recipient || presence.type() != QXmppPresence::Available) return; diff --git a/example/example_5_rpcInterface/main.cpp b/example/example_5_rpcInterface/main.cpp index 14445caa..65cecf2f 100644 --- a/example/example_5_rpcInterface/main.cpp +++ b/example/example_5_rpcInterface/main.cpp @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) QXmppLogger::getLogger()->setLoggingType(QXmppLogger::StdoutLogging); rpcClient client; - client.getConfiguration().setUseSASLAuthentication( false ); + client.configuration().setUseSASLAuthentication( false ); client.connectToServer("jabber.geiseri.com", "server", "Passw0rd", "geiseri.com"); return a.exec(); } diff --git a/example/example_6_rpcClient/main.cpp b/example/example_6_rpcClient/main.cpp index 126339ee..728b75a8 100644 --- a/example/example_6_rpcClient/main.cpp +++ b/example/example_6_rpcClient/main.cpp @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) QXmppLogger::getLogger()->setLoggingType(QXmppLogger::StdoutLogging); rpcClient client; - client.getConfiguration().setUseSASLAuthentication( false ); + client.configuration().setUseSASLAuthentication( false ); client.connectToServer("jabber.geiseri.com", "client", "Passw0rd", "geiseri.com"); return a.exec(); } -- cgit v1.2.3