summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-07-01 16:38:36 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-07-07 15:04:45 +0200
commit56ce6ba9792778e7d6fa1194b41e282633ff81c1 (patch)
tree7a612735efe57837a6afb4ce45e403ec7b36690d /src
parent3b28d3d1c0dd4020402029f38948707bf07d62c8 (diff)
Expose internally QAuthenticator::setRealm
This allows QtWebEngine to use the class API on top of the Chromium network stack. Change-Id: If595e30cfa6ecdc62cba8453d8f57ddccc1793d9 Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
Diffstat (limited to 'src')
-rw-r--r--src/network/kernel/qauthenticator.cpp9
-rw-r--r--src/network/kernel/qauthenticator.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp
index f7b956651f..ea935869fb 100644
--- a/src/network/kernel/qauthenticator.cpp
+++ b/src/network/kernel/qauthenticator.cpp
@@ -282,6 +282,15 @@ QString QAuthenticator::realm() const
}
/*!
+ \internal
+*/
+void QAuthenticator::setRealm(const QString &realm)
+{
+ detach();
+ d->realm = realm;
+}
+
+/*!
\since 4.7
Returns the value related to option \a opt if it was set by the server.
See \l{QAuthenticator#Options} for more information on incoming options.
diff --git a/src/network/kernel/qauthenticator.h b/src/network/kernel/qauthenticator.h
index 4d96104bc0..2f440d660d 100644
--- a/src/network/kernel/qauthenticator.h
+++ b/src/network/kernel/qauthenticator.h
@@ -70,6 +70,7 @@ public:
void setPassword(const QString &password);
QString realm() const;
+ void setRealm(const QString &realm);
QVariant option(const QString &opt) const;
QVariantHash options() const;