blob: 3a3d1df9a427340faf56c63c5a19477448e9f20f (
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
|
#include "QXmppInformationRequestResult.h"
#include "QXmppConstants.h"
QXmppInformationRequestResult::QXmppInformationRequestResult()
{
setType(QXmppIq::Result);
setQueryType(QXmppDiscoveryIq::InfoQuery);
// features
QStringList features;
features
<< ns_rpc // XEP-0009: Jabber-RPC
<< ns_disco_info // XEP-0030: Service Discovery
<< ns_ibb // XEP-0047: In-Band Bytestreams
<< ns_vcard // XEP-0054: vcard-temp
<< ns_bytestreams // XEP-0065: SOCKS5 Bytestreams
<< ns_chat_states // XEP-0085: Chat State Notifications
<< ns_version // XEP-0092: Software Version
<< ns_stream_initiation // XEP-0095: Stream Initiation
<< ns_stream_initiation_file_transfer // XEP-0096: SI File Transfer
<< ns_ping; // XEP-0199: XMPP Ping
setFeatures(features);
// identities
QList<QXmppDiscoveryIq::Identity> identities;
QXmppDiscoveryIq::Identity identity;
identity.setCategory("automation");
identity.setType("rpc");
identities.append(identity);
setIdentities(identities);
}
|