6#include <QtCore/qdatetime.h>
7#include <QtCore/qstring.h>
71 return *d == *
other.d;
\inmodule QtCore\reentrant
bool isValid() const
Returns true if this datetime represents a definite moment, otherwise false.
static QDateTime currentDateTimeUtc()
bool operator==(const QHstsPolicyPrivate &other) const
The QHstsPolicy class specifies that a host supports HTTP Strict Transport Security policy (HSTS).
void setIncludesSubDomains(bool include)
Sets whether subdomains are included for this policy to include.
QHstsPolicy & operator=(const QHstsPolicy &rhs)
Copy-assignment operator, makes a copy of other.
void setExpiry(const QDateTime &expiry)
Sets the expiration date for the policy (in UTC) to expiry.
void setHost(const QString &host, QUrl::ParsingMode mode=QUrl::DecodedMode)
Sets a host, host data is interpreted according to mode parameter.
QDateTime expiry() const
Returns the expiration date for the policy (in UTC).
bool isExpired() const
Return true if this policy has a valid expiration date and this date is greater than QDateTime::curre...
~QHstsPolicy()
Destructor.
QString host(QUrl::ComponentFormattingOptions options=QUrl::FullyDecoded) const
Returns a host for a given policy, formatted according to options.
QHstsPolicy()
Constructs an invalid (expired) policy with empty host name and subdomains not included.
bool includesSubDomains() const
Returns true if this policy also includes subdomains.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString host(ComponentFormattingOptions=FullyDecoded) const
Returns the host of the URL if it is defined; otherwise an empty string is returned.
ParsingMode
The parsing mode controls the way QUrl parses strings.
void setHost(const QString &host, ParsingMode mode=DecodedMode)
Sets the host of the URL to host.
Combined button and popup list for selecting options.