5#ifndef QXMPPSTREAMFEATURES_H
6#define QXMPPSTREAMFEATURES_H
8#include "QXmppStanza.h"
10#include <QSharedDataPointer>
12class QXmppStreamFeaturesPrivate;
36 Mode bindMode()
const;
37 void setBindMode(Mode mode);
39 Mode sessionMode()
const;
40 void setSessionMode(Mode mode);
42 Mode nonSaslAuthMode()
const;
43 void setNonSaslAuthMode(Mode mode);
45 QStringList authMechanisms()
const;
46 void setAuthMechanisms(
const QStringList &mechanisms);
48 QStringList compressionMethods()
const;
49 void setCompressionMethods(
const QStringList &methods);
52 void setTlsMode(Mode mode);
54 Mode streamManagementMode()
const;
55 void setStreamManagementMode(Mode mode);
57 Mode clientStateIndicationMode()
const;
58 void setClientStateIndicationMode(Mode mode);
60 Mode registerMode()
const;
61 void setRegisterMode(
const Mode &mode);
63 bool preApprovedSubscriptionsSupported()
const;
64 void setPreApprovedSubscriptionsSupported(
bool);
66 bool rosterVersioningSupported()
const;
67 void setRosterVersioningSupported(
bool);
70 void parse(
const QDomElement &element)
override;
71 void toXml(QXmlStreamWriter *writer)
const override;
73 static bool isStreamFeatures(
const QDomElement &element);
77 QSharedDataPointer<QXmppStreamFeaturesPrivate> d;
Definition QXmppNonza.h:14
virtual void parse(const QDomElement &)=0
virtual void toXml(QXmlStreamWriter *writer) const =0
The QXmppStreamFeatures class represents the features returned by an XMPP server or client.
Definition QXmppStreamFeatures.h:19
QXmppStreamFeatures(const QXmppStreamFeatures &)
Default copy-constructor.
Mode
Mode of a feature.
Definition QXmppStreamFeatures.h:30
QXmppStreamFeatures(QXmppStreamFeatures &&)
Default move-constructor.
QXmppStreamFeatures & operator=(const QXmppStreamFeatures &)
Default assignment operator.
QXmppStreamFeatures & operator=(QXmppStreamFeatures &&)
Default move-assignment operator.