5#ifndef QXMPPCONFIGURATION_H
6#define QXMPPCONFIGURATION_H
8#include "QXmppGlobal.h"
12#include <QSharedDataPointer>
17class QXmppConfigurationPrivate;
19class QXmppSasl2UserAgent;
21namespace QXmpp::Private {
66 void setHost(
const QString &);
68 QString domain()
const;
69 void setDomain(
const QString &);
72 quint16 port16()
const;
76 void setUser(
const QString &);
78 QString password()
const;
79 void setPassword(
const QString &);
81 QString resource()
const;
82 void setResource(
const QString &);
84 QString resourcePrefix()
const;
85 void setResourcePrefix(
const QString &);
88 void setJid(
const QString &jid);
90 QString jidBare()
const;
95 QString facebookAccessToken()
const;
96 void setFacebookAccessToken(
const QString &);
98 QString facebookAppId()
const;
99 void setFacebookAppId(
const QString &);
101 QString googleAccessToken()
const;
102 void setGoogleAccessToken(
const QString &accessToken);
104 QString windowsLiveAccessToken()
const;
105 void setWindowsLiveAccessToken(
const QString &accessToken);
107 bool autoAcceptSubscriptions()
const;
108 void setAutoAcceptSubscriptions(
bool);
110 bool autoReconnectionEnabled()
const;
111 void setAutoReconnectionEnabled(
bool);
113 bool useSasl2Authentication()
const;
114 void setUseSasl2Authentication(
bool);
116 bool useFastTokenAuthentication()
const;
117 void setUseFastTokenAuthentication(
bool);
119 bool useSASLAuthentication()
const;
120 void setUseSASLAuthentication(
bool);
122 bool useNonSASLAuthentication()
const;
123 void setUseNonSASLAuthentication(
bool);
125 bool ignoreSslErrors()
const;
126 void setIgnoreSslErrors(
bool);
134 QString saslAuthMechanism()
const;
135 void setSaslAuthMechanism(
const QString &mechanism);
137 QList<QString> disabledSaslMechanisms()
const;
138 void addDisabledSaslMechanism(
const QString &);
139 void setDisabledSaslMechanisms(
const QList<QString> &);
141 std::optional<QXmppSasl2UserAgent> sasl2UserAgent()
const;
142 void setSasl2UserAgent(
const std::optional<QXmppSasl2UserAgent> &);
144 QNetworkProxy networkProxy()
const;
145 void setNetworkProxy(
const QNetworkProxy &proxy);
147 int keepAliveInterval()
const;
148 void setKeepAliveInterval(
int secs);
150 int keepAliveTimeout()
const;
151 void setKeepAliveTimeout(
int secs);
153 QList<QSslCertificate> caCertificates()
const;
154 void setCaCertificates(
const QList<QSslCertificate> &);
157 const QXmpp::Private::Credentials &credentialData()
const;
158 QXmpp::Private::Credentials &credentialData();
162 QSharedDataPointer<QXmppConfigurationPrivate> d;
The QXmppConfiguration class holds configuration options.
Definition: QXmppConfiguration.h:37
StreamSecurityMode
Definition: QXmppConfiguration.h:42
@ TLSDisabled
No encryption even if the server offers it.
Definition: QXmppConfiguration.h:44
QXmppConfiguration & operator=(const QXmppConfiguration &other)
Assigns other to this QXmppConfiguration.
QXmppConfiguration(const QXmppConfiguration &other)
Creates a copy of other.
NonSASLAuthMechanism
Definition: QXmppConfiguration.h:55
Stores different kinds of credentials used for authentication.
Definition: QXmppCredentials.h:19