diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-12-11 19:52:44 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-12-11 19:52:44 +0000 |
| commit | 5889aeaade036a88cac8cbcf03e5b6cde6f8b053 (patch) | |
| tree | 6e8a6ac7cd340b3383d52ae587a921fd2d0b8b2f /src/QXmppClientExtension.h | |
| parent | 7999763cc5239dade9807996895982b99893f90b (diff) | |
| download | qxmpp-5889aeaade036a88cac8cbcf03e5b6cde6f8b053.tar.gz | |
improve QXmppClientExtension
Diffstat (limited to 'src/QXmppClientExtension.h')
| -rw-r--r-- | src/QXmppClientExtension.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/QXmppClientExtension.h b/src/QXmppClientExtension.h index 7bfe6296..82048411 100644 --- a/src/QXmppClientExtension.h +++ b/src/QXmppClientExtension.h @@ -37,6 +37,12 @@ class QXmppStream; /// \brief The QXmppClientExtension class is the base class for QXmppClient /// extensions. /// +/// If you want to extend QXmpp, for instance to support an IQ type which +/// is not natively supported by QXmpp, you can subclass QXmppClientExtension +/// and implement handleStanza(). You can then add your extension to the +/// client instance using QXmppClient::addExtension(). +/// +/// \ingroup Core class QXmppClientExtension : public QXmppLoggable { @@ -49,10 +55,12 @@ public: virtual QStringList discoveryFeatures() const; virtual QList<QXmppDiscoveryIq::Identity> discoveryIdentities() const; - /// \brief Handles the incoming XMPP \a stanza. + /// \brief You need to implement this method to process incoming XMPP + /// stanzas. /// - /// Returns true if the stanza was handled and no further processing - /// should occur, or false otherwise. + /// You should return true if the stanza was handled and no further + /// processing should occur, or false to let other extensions process + /// the stanza. virtual bool handleStanza(const QDomElement &stanza) = 0; protected: |
