blob: 072bc75fe3e1bb5212d9075ad96f84a7feaf70cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include "QXmppInformationRequestResult.h"
#include "QXmppConstants.h"
#include <QXmlStreamWriter>
QXmppInformationRequestResult::QXmppInformationRequestResult() : QXmppIq(QXmppIq::Result)
{
}
void QXmppInformationRequestResult::toXmlElementFromChild(QXmlStreamWriter *writer) const
{
writer->writeStartElement("query");
writer->writeAttribute("xmlns", ns_disco_info );
writer->writeStartElement("feature");
writer->writeAttribute("var", ns_disco_info );
writer->writeEndElement();
writer->writeStartElement("feature");
writer->writeAttribute("var", ns_ibb );
writer->writeEndElement();
writer->writeStartElement("feature");
writer->writeAttribute("var", ns_rpc);
writer->writeEndElement();
writer->writeStartElement("identity");
writer->writeAttribute("category", "automation" );
writer->writeAttribute("type", "rpc" );
writer->writeEndElement();
writer->writeStartElement("feature");
writer->writeAttribute("var", ns_ping);
writer->writeEndElement();
writer->writeStartElement("feature");
writer->writeAttribute("var", ns_chat_states);
writer->writeEndElement();
writer->writeEndElement();
}
|