aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-26 08:27:41 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-26 08:27:41 +0000
commitd96472c73ff22615ba09b54601e007126c6183c6 (patch)
tree1958e568ba2a81eb79cdf15b780fba42ec7e78f1 /src
parente2e56fc1426f408aacb4b458e8773aae1d2494e9 (diff)
downloadqxmpp-d96472c73ff22615ba09b54601e007126c6183c6.tar.gz
move elementReceived signal out of QXmppStream
Diffstat (limited to 'src')
-rw-r--r--src/QXmppIncomingClient.h4
-rw-r--r--src/QXmppIncomingServer.h3
-rw-r--r--src/QXmppOutgoingClient.h2
-rw-r--r--src/QXmppStream.h3
4 files changed, 9 insertions, 3 deletions
diff --git a/src/QXmppIncomingClient.h b/src/QXmppIncomingClient.h
index 532d0bc2..e269dcf3 100644
--- a/src/QXmppIncomingClient.h
+++ b/src/QXmppIncomingClient.h
@@ -60,6 +60,10 @@ public:
void setPasswordChecker(QXmppPasswordChecker *checker);
+signals:
+ /// This signal is emitted when an element is received.
+ void elementReceived(const QDomElement &element, bool &handled);
+
protected:
/// \cond
void handleStream(const QDomElement &element);
diff --git a/src/QXmppIncomingServer.h b/src/QXmppIncomingServer.h
index 5041c074..a4a78177 100644
--- a/src/QXmppIncomingServer.h
+++ b/src/QXmppIncomingServer.h
@@ -49,6 +49,9 @@ signals:
/// This signal is emitted when a dialback verify request is received.
void dialbackRequestReceived(const QXmppDialback &result);
+ /// This signal is emitted when an element is received.
+ void elementReceived(const QDomElement &element, bool &handled);
+
protected:
/// \cond
void handleStanza(const QDomElement &stanzaElement);
diff --git a/src/QXmppOutgoingClient.h b/src/QXmppOutgoingClient.h
index 54be4aaa..7371c307 100644
--- a/src/QXmppOutgoingClient.h
+++ b/src/QXmppOutgoingClient.h
@@ -85,6 +85,8 @@ public:
signals:
void error(QXmppClient::Error);
+ /// This signal is emitted when an element is received.
+ void elementReceived(const QDomElement &element, bool &handled);
void presenceReceived(const QXmppPresence&);
void messageReceived(const QXmppMessage&);
void iqReceived(const QXmppIq&);
diff --git a/src/QXmppStream.h b/src/QXmppStream.h
index ccc11c93..19a7ca12 100644
--- a/src/QXmppStream.h
+++ b/src/QXmppStream.h
@@ -62,9 +62,6 @@ signals:
/// This signal is emitted when the stream is disconnected.
void disconnected();
- /// This signal is emitted when an element is received.
- void elementReceived(const QDomElement &element, bool &handled);
-
/// This signal is emitted to send logging messages.
void logMessage(QXmppLogger::MessageType type, const QString &msg);