diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-05-12 16:34:48 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-05-12 16:34:48 +0200 |
| commit | e5517015d0e54b30b00cf1a7bbbb9336f536350c (patch) | |
| tree | 81afdf7539a205437bfbe3d1e29cc7e29f1f34b6 /src/client/QXmppConfiguration.h | |
| parent | c84ed390a8630f1cf6a0f67138e5f19e2a14dbe6 (diff) | |
| download | qxmpp-e5517015d0e54b30b00cf1a7bbbb9336f536350c.tar.gz | |
make QXmppConfiguration use QSharedDataPointer
Diffstat (limited to 'src/client/QXmppConfiguration.h')
| -rw-r--r-- | src/client/QXmppConfiguration.h | 45 |
1 files changed, 7 insertions, 38 deletions
diff --git a/src/client/QXmppConfiguration.h b/src/client/QXmppConfiguration.h index 630a66e9..d837af4e 100644 --- a/src/client/QXmppConfiguration.h +++ b/src/client/QXmppConfiguration.h @@ -27,10 +27,13 @@ #include <QString> #include <QNetworkProxy> -#include <QSslCertificate> +#include <QSharedDataPointer> #include "QXmppGlobal.h" +class QSslCertificate; +class QXmppConfigurationPrivate; + /// \brief The QXmppConfiguration class holds configuration options. /// /// It can be passed to QXmppClient to specify the options when connecting to @@ -84,7 +87,9 @@ public: }; QXmppConfiguration(); + QXmppConfiguration(const QXmppConfiguration &other); ~QXmppConfiguration(); + QXmppConfiguration& operator=(const QXmppConfiguration &other); QString host() const; void setHost(const QString&); @@ -149,43 +154,7 @@ public: void setCaCertificates(const QList<QSslCertificate> &); private: - QString m_host; - int m_port; - QString m_user; - QString m_password; - QString m_domain; - QString m_resource; - - // Facebook - QString m_facebookAccessToken; - QString m_facebookAppId; - - // default is false - bool m_autoAcceptSubscriptions; - // default is true - bool m_sendIntialPresence; - // default is true - bool m_sendRosterRequest; - // interval in seconds, if zero won't ping - int m_keepAliveInterval; - // interval in seconds, if zero won't timeout - int m_keepAliveTimeout; - // will keep reconnecting if disconnected, default is true - bool m_autoReconnectionEnabled; - bool m_useSASLAuthentication; ///< flag to specify what authentication system - ///< to be used - ///< defualt is true and use SASL - ///< false would use NonSASL if available - // default is true - bool m_ignoreSslErrors; - - StreamSecurityMode m_streamSecurityMode; - NonSASLAuthMechanism m_nonSASLAuthMechanism; - SASLAuthMechanism m_SASLAuthMechanism; - - QNetworkProxy m_networkProxy; - - QList<QSslCertificate> m_caCertificates; + QSharedDataPointer<QXmppConfigurationPrivate> d; }; #endif // QXMPPCONFIGURATION_H |
