qurlquery.sip 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // qurlquery.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtCore Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  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. class QUrlQuery
  22. {
  23. %TypeHeaderCode
  24. #include <qurlquery.h>
  25. %End
  26. public:
  27. QUrlQuery();
  28. explicit QUrlQuery(const QUrl &url);
  29. explicit QUrlQuery(const QString &queryString);
  30. QUrlQuery(const QUrlQuery &other);
  31. ~QUrlQuery();
  32. %If (- Qt_6_8_0)
  33. bool operator==(const QUrlQuery &other) const;
  34. %End
  35. %If (- Qt_6_8_0)
  36. bool operator!=(const QUrlQuery &other) const;
  37. %End
  38. void swap(QUrlQuery &other /Constrained/);
  39. bool isEmpty() const;
  40. bool isDetached() const;
  41. void clear();
  42. QString query(QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const;
  43. void setQuery(const QString &queryString);
  44. QString toString(QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const;
  45. void setQueryDelimiters(QChar valueDelimiter, QChar pairDelimiter);
  46. QChar queryValueDelimiter() const;
  47. QChar queryPairDelimiter() const;
  48. void setQueryItems(const QList<std::pair<QString, QString>> &query);
  49. QList<std::pair<QString, QString>> queryItems(QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const;
  50. bool hasQueryItem(const QString &key) const;
  51. void addQueryItem(const QString &key, const QString &value);
  52. void removeQueryItem(const QString &key);
  53. QString queryItemValue(const QString &key, QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const;
  54. QStringList allQueryItemValues(const QString &key, QUrl::ComponentFormattingOptions options = QUrl::PrettyDecoded) const;
  55. void removeAllQueryItems(const QString &key);
  56. static QChar defaultQueryValueDelimiter();
  57. %MethodCode
  58. sipRes = new QChar(QUrlQuery::defaultQueryValueDelimiter());
  59. %End
  60. static QChar defaultQueryPairDelimiter();
  61. %MethodCode
  62. sipRes = new QChar(QUrlQuery::defaultQueryPairDelimiter());
  63. %End
  64. Py_hash_t __hash__() const;
  65. %MethodCode
  66. sipRes = qHash(*sipCpp);
  67. %End
  68. };
  69. %If (Qt_6_8_0 -)
  70. bool operator!=(const QUrlQuery &lhs, const QUrlQuery &rhs);
  71. %End
  72. %If (Qt_6_8_0 -)
  73. bool operator==(const QUrlQuery &lhs, const QUrlQuery &rhs);
  74. %End