aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppClient.h
diff options
context:
space:
mode:
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);