From 0e9532f935fce64f47d30ec76650bcae2cd2268f Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 20 Apr 2012 15:25:45 +0000 Subject: fix reference to QXmppUtils --- examples/example_3_transferHandling/xmppClient.cpp | 4 ++-- examples/example_6_rpcClient/rpcClient.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/example_3_transferHandling/xmppClient.cpp b/examples/example_3_transferHandling/xmppClient.cpp index adfbcfd7..9c5582e8 100644 --- a/examples/example_3_transferHandling/xmppClient.cpp +++ b/examples/example_3_transferHandling/xmppClient.cpp @@ -106,8 +106,8 @@ void xmppClient::slotPresenceReceived(const QXmppPresence &presence) // if we are the recipient, or if the presence is not from the recipient, // do nothing - if (jidToBareJid(configuration().jid()) == recipient || - jidToBareJid(presence.from()) != recipient || + if (QXmppUtils::jidToBareJid(configuration().jid()) == recipient || + QXmppUtils::jidToBareJid(presence.from()) != recipient || presence.type() != QXmppPresence::Available) return; diff --git a/examples/example_6_rpcClient/rpcClient.cpp b/examples/example_6_rpcClient/rpcClient.cpp index f1c907bf..dd331fba 100644 --- a/examples/example_6_rpcClient/rpcClient.cpp +++ b/examples/example_6_rpcClient/rpcClient.cpp @@ -66,8 +66,8 @@ void rpcClient::slotPresenceReceived(const QXmppPresence &presence) // if we are the recipient, or if the presence is not from the recipient, // do nothing - if (jidToBareJid(configuration().jid()) == recipient || - jidToBareJid(presence.from()) != recipient || + if (QXmppUtils::jidToBareJid(configuration().jid()) == recipient || + QXmppUtils::jidToBareJid(presence.from()) != recipient || presence.type() != QXmppPresence::Available) return; -- cgit v1.2.3