diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2009-10-18 23:22:22 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2009-10-18 23:22:22 +0000 |
| commit | a9d542be47e91ae39390247f8c8bbb21d588388f (patch) | |
| tree | df3e1e317a8b616448f7ef383b58b18da086f78b /source/QXmppStream.cpp | |
| parent | 8054a813ea973b69fa655ce0cdfb516db58e4295 (diff) | |
| download | qxmpp-a9d542be47e91ae39390247f8c8bbb21d588388f.tar.gz | |
Issue 16: Implement XEP-0030
Diffstat (limited to 'source/QXmppStream.cpp')
| -rw-r--r-- | source/QXmppStream.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp index 0c66cc4b..c6006aa9 100644 --- a/source/QXmppStream.cpp +++ b/source/QXmppStream.cpp @@ -36,6 +36,7 @@ #include "QXmppConstants.h"
#include "QXmppVCard.h"
#include "QXmppNonSASLAuth.h"
+#include "QXmppInformationRequestResult.h"
#include <QDomDocument>
#include <QStringList>
@@ -359,6 +360,17 @@ void QXmppStream::parser(const QByteArray& data) emit vCardIqReceived(vcardIq);
iqPacket = vcardIq;
}
+ // XEP-0030 info query
+ else if(nodeRecv.firstChildElement("query").
+ namespaceURI() == ns_disco_info &&
+ type == "get")
+ {
+ QXmppInformationRequestResult qxmppFeatures;
+ qxmppFeatures.setId(id);
+ qxmppFeatures.setTo(from);
+ qxmppFeatures.setFrom(to);
+ sendPacket(qxmppFeatures);
+ }
else if(id == m_nonSASLAuthId && type == "result")
{
// successful Non-SASL Authentication
|
