aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppClient.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-06-04 16:32:19 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-06-04 16:32:19 +0000
commitfa78a507c22f9c117f2fdd49cd2207d3ebe25e5d (patch)
tree3e26209ed1dc78e963d2161d46c5f333c1ddd617 /source/QXmppClient.h
parentcfd31d99c1747d7757cdd507b88b2bf7da751aa9 (diff)
downloadqxmpp-fa78a507c22f9c117f2fdd49cd2207d3ebe25e5d.tar.gz
make QXmppStream independent from QXmppClient
Diffstat (limited to 'source/QXmppClient.h')
-rw-r--r--source/QXmppClient.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/source/QXmppClient.h b/source/QXmppClient.h
index 9f771de9..321e9d15 100644
--- a/source/QXmppClient.h
+++ b/source/QXmppClient.h
@@ -144,6 +144,18 @@ signals:
/// know the error.
void error(QXmppClient::Error);
+ /// This signal is emitted when a raw XML element is received. You can
+ /// connect to this signal if you want to handle raw XML elements yourself.
+ ///
+ /// WARNING: this signal is experimental and you can seriously disrupt
+ /// packet handling when using it, so use with care and at your own risk.
+ ///
+ /// Set 'handled' to true if you handled the element yourself and you wish
+ /// to bypass normal handling for the element. If you do this, QXmpp will
+ /// do absolutely no processing itself, so do not expect the usual signals
+ /// to be emitted.
+ void elementReceived(const QDomElement &element, bool &handled);
+
/// Notifies that an XMPP message stanza is received. The QXmppMessage
/// parameter contains the details of the message sent to this client.
/// In other words whenever someone sends you a message this signal is
@@ -187,8 +199,6 @@ public:
QXmppLogger *logger();
void setLogger(QXmppLogger *logger);
- virtual bool handleStreamElement(const QDomElement &element);
-
public slots:
bool sendPacket(const QXmppPacket&);
void sendMessage(const QString& bareJid, const QString& message);