5#ifndef QXMPPSTREAMFEATURES_H
6#define QXMPPSTREAMFEATURES_H
8#include "QXmppStanza.h"
10#include <QSharedDataPointer>
12class QXmppStreamFeaturesPrivate;
14namespace QXmpp::Private::Sasl2 {
40 Mode bindMode()
const;
41 void setBindMode(Mode mode);
43 Mode sessionMode()
const;
44 void setSessionMode(Mode mode);
46 Mode nonSaslAuthMode()
const;
47 void setNonSaslAuthMode(Mode mode);
49 QStringList authMechanisms()
const;
50 void setAuthMechanisms(
const QStringList &mechanisms);
52 const std::optional<QXmpp::Private::Sasl2::StreamFeature> &sasl2Feature()
const;
53 void setSasl2Feature(
const std::optional<QXmpp::Private::Sasl2::StreamFeature> &);
55 QStringList compressionMethods()
const;
56 void setCompressionMethods(
const QStringList &methods);
59 void setTlsMode(Mode mode);
61 Mode streamManagementMode()
const;
62 void setStreamManagementMode(Mode mode);
64 Mode clientStateIndicationMode()
const;
65 void setClientStateIndicationMode(Mode mode);
67 Mode registerMode()
const;
68 void setRegisterMode(
const Mode &mode);
70 bool preApprovedSubscriptionsSupported()
const;
71 void setPreApprovedSubscriptionsSupported(
bool);
73 bool rosterVersioningSupported()
const;
74 void setRosterVersioningSupported(
bool);
77 void parse(
const QDomElement &element)
override;
78 void toXml(QXmlStreamWriter *writer)
const override;
80 static bool isStreamFeatures(
const QDomElement &element);
84 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:23
QXmppStreamFeatures(const QXmppStreamFeatures &)
Default copy-constructor.
Mode
Mode of a feature.
Definition: QXmppStreamFeatures.h:34
QXmppStreamFeatures(QXmppStreamFeatures &&)
Default move-constructor.
QXmppStreamFeatures & operator=(const QXmppStreamFeatures &)
Default assignment operator.
QXmppStreamFeatures & operator=(QXmppStreamFeatures &&)
Default move-assignment operator.