aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppInformationRequestResult.cpp
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2009-10-18 23:22:22 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2009-10-18 23:22:22 +0000
commita9d542be47e91ae39390247f8c8bbb21d588388f (patch)
treedf3e1e317a8b616448f7ef383b58b18da086f78b /source/QXmppInformationRequestResult.cpp
parent8054a813ea973b69fa655ce0cdfb516db58e4295 (diff)
downloadqxmpp-a9d542be47e91ae39390247f8c8bbb21d588388f.tar.gz
Issue 16: Implement XEP-0030
Diffstat (limited to 'source/QXmppInformationRequestResult.cpp')
-rw-r--r--source/QXmppInformationRequestResult.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/QXmppInformationRequestResult.cpp b/source/QXmppInformationRequestResult.cpp
new file mode 100644
index 00000000..86236ff6
--- /dev/null
+++ b/source/QXmppInformationRequestResult.cpp
@@ -0,0 +1,24 @@
+#include "QXmppInformationRequestResult.h"
+#include "QXmppConstants.h"
+
+QXmppInformationRequestResult::QXmppInformationRequestResult() : QXmppIq(QXmppIq::Result)
+{
+}
+
+QByteArray QXmppInformationRequestResult::toXmlElementFromChild() const
+{
+ QByteArray resultXml;
+
+ resultXml += "<query xmlns='";
+ resultXml += ns_disco_info;
+ resultXml += "'>";
+ resultXml += "<feature var='";
+ resultXml += ns_disco_info;
+ resultXml += "'/>";
+ resultXml += "<feature var='";
+ resultXml += ns_ibb;
+ resultXml += "'/>";
+ resultXml += "</query>";
+
+ return resultXml;
+}