summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2017-03-16 11:38:52 +0100
committerMartin Smith <martin.smith@qt.io>2017-12-06 07:12:44 +0000
commite827fec40f13fa3ce96d8af4f545a3456df550c8 (patch)
tree2cf8b999bbf992f5756509c48c79c58c628828ce /src/network
parent929ea503938dd1a7b2873b87fd6bb239e2349f3c (diff)
doc: Add class qualifiers to parameter types
This change supplies several missing class qualifiers for parameter types and function return types. Change-Id: I569026e4da0948902fcc13557003d3748b85dd82 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qhstspolicy.cpp18
-rw-r--r--src/network/access/qnetworkaccessmanager.cpp4
2 files changed, 18 insertions, 4 deletions
diff --git a/src/network/access/qhstspolicy.cpp b/src/network/access/qhstspolicy.cpp
index ab4695480b..46c9c22510 100644
--- a/src/network/access/qhstspolicy.cpp
+++ b/src/network/access/qhstspolicy.cpp
@@ -103,9 +103,15 @@ QHstsPolicy::QHstsPolicy() : d(new QHstsPolicyPrivate)
}
/*!
- Constructs QHstsPolicy with \a expiry (in UTC):
- - \a host data is interpreted according to \a mode;
- - \a flags selects options to apply to this policy.
+ \enum QHstsPolicy::PolicyFlag
+
+ \value IncludeSubDomains Indicates whether a policy must include subdomains
+*/
+
+/*!
+ Constructs QHstsPolicy with \a expiry (in UTC); \a flags is a value indicating
+ whether this policy must also include subdomains, \a host data is interpreted
+ according to \a mode.
\sa QUrl::setHost(), QUrl::ParsingMode, QHstsPolicy::PolicyFlag
*/
@@ -213,4 +219,10 @@ bool QHstsPolicy::isExpired() const
return !d->expiry.isValid() || d->expiry <= QDateTime::currentDateTimeUtc();
}
+/*!
+ \fn void QHstsPolicy::swap(QHstsPolicy &other)
+
+ Swaps this policy with the \a other policy.
+*/
+
QT_END_NAMESPACE
diff --git a/src/network/access/qnetworkaccessmanager.cpp b/src/network/access/qnetworkaccessmanager.cpp
index 6dabe13228..dce256b7e5 100644
--- a/src/network/access/qnetworkaccessmanager.cpp
+++ b/src/network/access/qnetworkaccessmanager.cpp
@@ -781,7 +781,9 @@ bool QNetworkAccessManager::isStrictTransportSecurityStoreEnabled() const
/*!
\since 5.9
- Adds HTTP Strict Transport Security policies contained in \a knownHosts into HSTS cache.
+ Adds HTTP Strict Transport Security policies into HSTS cache.
+ \a knownHosts contains the known hosts that have QHstsPolicy
+ information.
\note An expired policy will remove a known host from the cache, if previously
present.