aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppServer.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-26 08:36:22 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-26 08:36:22 +0000
commit3d4c2e72e740a6fcb66ec337be194b6c356a96be (patch)
treec8da5e27a17745f13b5b93c109c2c2a4e18a3527 /src/QXmppServer.cpp
parentd96472c73ff22615ba09b54601e007126c6183c6 (diff)
downloadqxmpp-3d4c2e72e740a6fcb66ec337be194b6c356a96be.tar.gz
rework elementReceived() arguments
Diffstat (limited to 'src/QXmppServer.cpp')
-rw-r--r--src/QXmppServer.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/QXmppServer.cpp b/src/QXmppServer.cpp
index 33ea7147..0630eea6 100644
--- a/src/QXmppServer.cpp
+++ b/src/QXmppServer.cpp
@@ -242,11 +242,6 @@ QXmppOutgoingServer* QXmppServer::connectToDomain(const QString &domain)
stream->configuration().setDomain(domain);
stream->configuration().setHost(domain);
stream->configuration().setPort(5269);
- bool check = connect(stream, SIGNAL(elementReceived(QDomElement, bool&)),
- this, SLOT(slotElementReceived(QDomElement, bool&)));
- Q_ASSERT(check);
- Q_UNUSED(check);
-
d->outgoingServers.append(stream);
// connect to remote server
@@ -459,8 +454,8 @@ void QXmppServer::slotClientConnection(QSslSocket *socket)
this, SLOT(slotClientDisconnected()));
Q_ASSERT(check);
- check = connect(stream, SIGNAL(elementReceived(QDomElement, bool&)),
- this, SLOT(slotElementReceived(QDomElement, bool&)));
+ check = connect(stream, SIGNAL(elementReceived(QDomElement)),
+ this, SLOT(slotElementReceived(QDomElement)));
Q_ASSERT(check);
d->incomingClients.append(stream);
@@ -544,10 +539,8 @@ void QXmppServer::slotDialbackRequestReceived(const QXmppDialback &dialback)
/// Handle an incoming XML element.
-void QXmppServer::slotElementReceived(const QDomElement &element, bool &handled)
+void QXmppServer::slotElementReceived(const QDomElement &element)
{
- Q_UNUSED(handled);
-
QXmppStream *incoming = qobject_cast<QXmppStream *>(sender());
if (!incoming)
return;
@@ -572,8 +565,8 @@ void QXmppServer::slotServerConnection(QSslSocket *socket)
this, SLOT(slotDialbackRequestReceived(QXmppDialback)));
Q_ASSERT(check);
- check = connect(stream, SIGNAL(elementReceived(QDomElement, bool&)),
- this, SLOT(slotElementReceived(QDomElement, bool&)));
+ check = connect(stream, SIGNAL(elementReceived(QDomElement)),
+ this, SLOT(slotElementReceived(QDomElement)));
Q_ASSERT(check);
}