aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppConfiguration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppConfiguration.cpp')
-rw-r--r--source/QXmppConfiguration.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/source/QXmppConfiguration.cpp b/source/QXmppConfiguration.cpp
index d40956ea..af643d4a 100644
--- a/source/QXmppConfiguration.cpp
+++ b/source/QXmppConfiguration.cpp
@@ -192,3 +192,26 @@ void QXmppConfiguration::setSASLAuthMechanism(
{
m_SASLAuthMechanism = mech;
}
+
+/// Specifies the network proxy used for the connection made by QXmppClient.
+/// The default value is QNetworkProxy::DefaultProxy that is the proxy is
+/// determined based on the application proxy set using
+/// QNetworkProxy::setApplicationProxy().
+/// \param proxy QNetworkProxy
+
+void QXmppConfiguration::setNetworkProxy(const QNetworkProxy& proxy)
+{
+ m_networkProxy = proxy;
+}
+
+/// Returns the specified network proxy.
+/// The default value is QNetworkProxy::DefaultProxy that is the proxy is
+/// determined based on the application proxy set using
+/// QNetworkProxy::setApplicationProxy().
+/// \return QNetworkProxy
+
+QNetworkProxy QXmppConfiguration::getNetworkProxy()
+{
+ return m_networkProxy;
+}
+