1// qhstspolicy.sip generated by MetaSIP 2// 3// This file is part of the QtNetwork Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23%If (Qt_5_9_0 -) 24 25class QHstsPolicy 26{ 27%TypeHeaderCode 28#include <qhstspolicy.h> 29%End 30 31public: 32 enum PolicyFlag 33 { 34 IncludeSubDomains, 35 }; 36 37 typedef QFlags<QHstsPolicy::PolicyFlag> PolicyFlags; 38 QHstsPolicy(); 39 QHstsPolicy(const QDateTime &expiry, QHstsPolicy::PolicyFlags flags, const QString &host, QUrl::ParsingMode mode = QUrl::DecodedMode); 40 QHstsPolicy(const QHstsPolicy &rhs); 41 ~QHstsPolicy(); 42 void swap(QHstsPolicy &other); 43 void setHost(const QString &host, QUrl::ParsingMode mode = QUrl::DecodedMode); 44 QString host(QUrl::ComponentFormattingOptions options = QUrl::ComponentFormattingOption::FullyDecoded) const; 45 void setExpiry(const QDateTime &expiry); 46 QDateTime expiry() const; 47 void setIncludesSubDomains(bool include); 48 bool includesSubDomains() const; 49 bool isExpired() const; 50}; 51 52%End 53%If (Qt_5_9_0 -) 54bool operator==(const QHstsPolicy &lhs, const QHstsPolicy &rhs); 55%End 56%If (Qt_5_9_0 -) 57bool operator!=(const QHstsPolicy &lhs, const QHstsPolicy &rhs); 58%End 59%If (Qt_5_9_0 -) 60QFlags<QHstsPolicy::PolicyFlag> operator|(QHstsPolicy::PolicyFlag f1, QFlags<QHstsPolicy::PolicyFlag> f2); 61%End 62