1// qurlquery.sip generated by MetaSIP 2// 3// This file is part of the QtCore 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 23class QUrlQuery 24{ 25%TypeHeaderCode 26#include <qurlquery.h> 27%End 28 29public: 30 QUrlQuery(); 31 explicit QUrlQuery(const QUrl &url); 32 explicit QUrlQuery(const QString &queryString); 33 QUrlQuery(const QUrlQuery &other); 34 ~QUrlQuery(); 35 bool operator==(const QUrlQuery &other) const; 36 bool operator!=(const QUrlQuery &other) const; 37 void swap(QUrlQuery &other /Constrained/); 38 bool isEmpty() const; 39 bool isDetached() const; 40 void clear(); 41 QString query(QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const; 42 void setQuery(const QString &queryString); 43 QString toString(QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const; 44 void setQueryDelimiters(QChar valueDelimiter, QChar pairDelimiter); 45 QChar queryValueDelimiter() const; 46 QChar queryPairDelimiter() const; 47 void setQueryItems(const QList<QPair<QString, QString>> &query); 48 QList<QPair<QString, QString>> queryItems(QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const; 49 bool hasQueryItem(const QString &key) const; 50 void addQueryItem(const QString &key, const QString &value); 51 void removeQueryItem(const QString &key); 52 QString queryItemValue(const QString &key, QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const; 53 QStringList allQueryItemValues(const QString &key, QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const; 54 void removeAllQueryItems(const QString &key); 55 static QChar defaultQueryValueDelimiter(); 56 static QChar defaultQueryPairDelimiter(); 57%If (Qt_5_6_0 -) 58 long __hash__() const; 59%MethodCode 60 sipRes = qHash(*sipCpp); 61%End 62 63%End 64}; 65