aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-09 17:04:06 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-09 17:04:06 +0000
commitb9ec343db542bd36003175cadce1e901a5960079 (patch)
tree3daf51e45a68dd855da54d9a3e082839535830ec /example
parent389bec1132aea986e327e984bc5b176bcbc02d04 (diff)
downloadqxmpp-b9ec343db542bd36003175cadce1e901a5960079.tar.gz
deprecated QXmppClient::getConfiguration
Diffstat (limited to 'example')
-rw-r--r--example/example_3_transferHandling/main.cpp1
-rw-r--r--example/example_3_transferHandling/xmppClient.cpp2
-rw-r--r--example/example_4_callHandling/main.cpp1
-rw-r--r--example/example_4_callHandling/xmppClient.cpp2
-rw-r--r--example/example_5_rpcInterface/main.cpp2
-rw-r--r--example/example_6_rpcClient/main.cpp2
6 files changed, 4 insertions, 6 deletions
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();
}