QtBase  v6.3.1
qurl.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2020 The Qt Company Ltd.
4 ** Copyright (C) 2016 Intel Corporation.
5 ** Contact: https://www.qt.io/licensing/
6 **
7 ** This file is part of the QtCore module of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** Commercial License Usage
11 ** Licensees holding valid commercial Qt licenses may use this file in
12 ** accordance with the commercial license agreement provided with the
13 ** Software or, alternatively, in accordance with the terms contained in
14 ** a written agreement between you and The Qt Company. For licensing terms
15 ** and conditions see https://www.qt.io/terms-conditions. For further
16 ** information use the contact form at https://www.qt.io/contact-us.
17 **
18 ** GNU Lesser General Public License Usage
19 ** Alternatively, this file may be used under the terms of the GNU Lesser
20 ** General Public License version 3 as published by the Free Software
21 ** Foundation and appearing in the file LICENSE.LGPL3 included in the
22 ** packaging of this file. Please review the following information to
23 ** ensure the GNU Lesser General Public License version 3 requirements
24 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
25 **
26 ** GNU General Public License Usage
27 ** Alternatively, this file may be used under the terms of the GNU
28 ** General Public License version 2.0 or (at your option) the GNU General
29 ** Public license version 3 or any later version approved by the KDE Free
30 ** Qt Foundation. The licenses are as published by the Free Software
31 ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
32 ** included in the packaging of this file. Please review the following
33 ** information to ensure the GNU General Public License requirements will
34 ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
35 ** https://www.gnu.org/licenses/gpl-3.0.html.
36 **
37 ** $QT_END_LICENSE$
38 **
39 ****************************************************************************/
40 
41 #ifndef QURL_H
42 #define QURL_H
43 
44 #include <QtCore/qbytearray.h>
45 #include <QtCore/qobjectdefs.h>
46 #include <QtCore/qstring.h>
47 #include <QtCore/qlist.h>
48 #include <QtCore/qpair.h>
49 #include <QtCore/qglobal.h>
50 
51 #if defined(Q_OS_DARWIN) || defined(Q_QDOC)
54 #endif
55 
57 
58 
59 class QUrlQuery;
60 class QUrlPrivate;
61 class QDataStream;
62 
63 template <typename E1, typename E2>
65 {
66  int i;
67 public:
68  constexpr inline QUrlTwoFlags() : i(0) {}
69  constexpr inline QUrlTwoFlags(E1 f) : i(f) {}
70  constexpr inline QUrlTwoFlags(E2 f) : i(f) {}
71  constexpr inline QUrlTwoFlags(QFlag f) : i(f) {}
72  constexpr inline QUrlTwoFlags(QFlags<E1> f) : i(f.operator typename QFlags<E1>::Int()) {}
73  constexpr inline QUrlTwoFlags(QFlags<E2> f) : i(f.operator typename QFlags<E2>::Int()) {}
74 
75  inline QUrlTwoFlags &operator&=(int mask) { i &= mask; return *this; }
76  inline QUrlTwoFlags &operator&=(uint mask) { i &= mask; return *this; }
77  inline QUrlTwoFlags &operator&=(QFlags<E1> mask) { i &= mask.toInt(); return *this; }
78  inline QUrlTwoFlags &operator&=(QFlags<E2> mask) { i &= mask.toInt(); return *this; }
79  inline QUrlTwoFlags &operator|=(QUrlTwoFlags f) { i |= f.i; return *this; }
80  inline QUrlTwoFlags &operator|=(E1 f) { i |= f; return *this; }
81  inline QUrlTwoFlags &operator|=(E2 f) { i |= f; return *this; }
82  inline QUrlTwoFlags &operator|=(QFlags<E1> mask) { i |= mask.toInt(); return *this; }
83  inline QUrlTwoFlags &operator|=(QFlags<E2> mask) { i |= mask.toInt(); return *this; }
84  inline QUrlTwoFlags &operator^=(QUrlTwoFlags f) { i ^= f.i; return *this; }
85  inline QUrlTwoFlags &operator^=(E1 f) { i ^= f; return *this; }
86  inline QUrlTwoFlags &operator^=(E2 f) { i ^= f; return *this; }
87  inline QUrlTwoFlags &operator^=(QFlags<E1> mask) { i ^= mask.toInt(); return *this; }
88  inline QUrlTwoFlags &operator^=(QFlags<E2> mask) { i ^= mask.toInt(); return *this; }
89 
90  constexpr inline operator QFlags<E1>() const { return QFlag(i); }
91  constexpr inline operator QFlags<E2>() const { return QFlag(i); }
92  constexpr inline operator int() const { return i; }
93  constexpr inline bool operator!() const { return !i; }
94 
95  constexpr inline QUrlTwoFlags operator|(QUrlTwoFlags f) const
96  { return QUrlTwoFlags(QFlag(i | f.i)); }
97  constexpr inline QUrlTwoFlags operator|(E1 f) const
98  { return QUrlTwoFlags(QFlag(i | f)); }
99  constexpr inline QUrlTwoFlags operator|(E2 f) const
100  { return QUrlTwoFlags(QFlag(i | f)); }
101  constexpr inline QUrlTwoFlags operator^(QUrlTwoFlags f) const
102  { return QUrlTwoFlags(QFlag(i ^ f.i)); }
103  constexpr inline QUrlTwoFlags operator^(E1 f) const
104  { return QUrlTwoFlags(QFlag(i ^ f)); }
105  constexpr inline QUrlTwoFlags operator^(E2 f) const
106  { return QUrlTwoFlags(QFlag(i ^ f)); }
107  constexpr inline QUrlTwoFlags operator&(int mask) const
108  { return QUrlTwoFlags(QFlag(i & mask)); }
109  constexpr inline QUrlTwoFlags operator&(uint mask) const
110  { return QUrlTwoFlags(QFlag(i & mask)); }
111  constexpr inline QUrlTwoFlags operator&(E1 f) const
112  { return QUrlTwoFlags(QFlag(i & f)); }
113  constexpr inline QUrlTwoFlags operator&(E2 f) const
114  { return QUrlTwoFlags(QFlag(i & f)); }
115  constexpr inline QUrlTwoFlags operator~() const
116  { return QUrlTwoFlags(QFlag(~i)); }
117 
118  constexpr inline bool testFlag(E1 f) const { return (i & f) == f && (f != 0 || i == int(f)); }
119  constexpr inline bool testFlag(E2 f) const { return (i & f) == f && (f != 0 || i == int(f)); }
120 };
121 
122 template<typename E1, typename E2>
123 class QTypeInfo<QUrlTwoFlags<E1, E2> > : public QTypeInfoMerger<QUrlTwoFlags<E1, E2>, E1, E2> {};
124 
125 class QUrl;
126 // qHash is a friend, but we can't use default arguments for friends (ยง8.3.6.4)
127 Q_CORE_EXPORT size_t qHash(const QUrl &url, size_t seed = 0) noexcept;
128 
129 class Q_CORE_EXPORT QUrl
130 {
131 public:
132  enum ParsingMode {
136  };
137 
138  // encoding / toString values
139  enum UrlFormattingOption : unsigned int {
140  None = 0x0,
144  RemovePort = 0x8,
146  RemovePath = 0x20,
147  RemoveQuery = 0x40,
149  // 0x100 was a private code in Qt 4, keep unused for a while
152  RemoveFilename = 0x800,
153  NormalizePathSegments = 0x1000
154  };
155 
156  enum ComponentFormattingOption : unsigned int {
157  PrettyDecoded = 0x000000,
158  EncodeSpaces = 0x100000,
159  EncodeUnicode = 0x200000,
160  EncodeDelimiters = 0x400000 | 0x800000,
161  EncodeReserved = 0x1000000,
162  DecodeReserved = 0x2000000,
163  // 0x4000000 used to indicate full-decode mode
164 
167  };
168  Q_DECLARE_FLAGS(ComponentFormattingOptions, ComponentFormattingOption)
169 #ifdef Q_QDOC
170 private:
171  // We need to let qdoc think that FormattingOptions is a normal QFlags, but
172  // it needs to be a QUrlTwoFlags for compiling default arguments of some functions.
173  template<typename T> struct QFlags : QUrlTwoFlags<T, ComponentFormattingOption>
175 public:
176  Q_DECLARE_FLAGS(FormattingOptions, UrlFormattingOption)
177 #else
179 #endif
180 
181  QUrl();
182  QUrl(const QUrl &copy);
183  QUrl &operator =(const QUrl &copy);
184 #ifdef QT_NO_URL_CAST_FROM_STRING
185  explicit QUrl(const QString &url, ParsingMode mode = TolerantMode);
186 #else
187  QUrl(const QString &url, ParsingMode mode = TolerantMode);
188  QUrl &operator=(const QString &url);
189 #endif
190  QUrl(QUrl &&other) noexcept : d(other.d)
191  { other.d = nullptr; }
193  ~QUrl();
194 
195  void swap(QUrl &other) noexcept { qt_ptr_swap(d, other.d); }
196 
197  void setUrl(const QString &url, ParsingMode mode = TolerantMode);
198  QString url(FormattingOptions options = FormattingOptions(PrettyDecoded)) const;
199  QString toString(FormattingOptions options = FormattingOptions(PrettyDecoded)) const;
200  QString toDisplayString(FormattingOptions options = FormattingOptions(PrettyDecoded)) const;
201  [[nodiscard]] QUrl adjusted(FormattingOptions options) const;
202 
203  QByteArray toEncoded(FormattingOptions options = FullyEncoded) const;
204  static QUrl fromEncoded(const QByteArray &url, ParsingMode mode = TolerantMode);
205 
208  AssumeLocalFile
209  };
210  Q_DECLARE_FLAGS(UserInputResolutionOptions, UserInputResolutionOption)
211 
212  static QUrl fromUserInput(const QString &userInput, const QString &workingDirectory = QString(),
213  UserInputResolutionOptions options = DefaultResolution);
214 
215  bool isValid() const;
216  QString errorString() const;
217 
218  bool isEmpty() const;
219  void clear();
220 
221  void setScheme(const QString &scheme);
222  QString scheme() const;
223 
224  void setAuthority(const QString &authority, ParsingMode mode = TolerantMode);
225  QString authority(ComponentFormattingOptions options = PrettyDecoded) const;
226 
227  void setUserInfo(const QString &userInfo, ParsingMode mode = TolerantMode);
228  QString userInfo(ComponentFormattingOptions options = PrettyDecoded) const;
229 
230  void setUserName(const QString &userName, ParsingMode mode = DecodedMode);
231  QString userName(ComponentFormattingOptions options = FullyDecoded) const;
232 
233  void setPassword(const QString &password, ParsingMode mode = DecodedMode);
234  QString password(ComponentFormattingOptions = FullyDecoded) const;
235 
236  void setHost(const QString &host, ParsingMode mode = DecodedMode);
237  QString host(ComponentFormattingOptions = FullyDecoded) const;
238 
239  void setPort(int port);
240  int port(int defaultPort = -1) const;
241 
242  void setPath(const QString &path, ParsingMode mode = DecodedMode);
243  QString path(ComponentFormattingOptions options = FullyDecoded) const;
244  QString fileName(ComponentFormattingOptions options = FullyDecoded) const;
245 
246  bool hasQuery() const;
247  void setQuery(const QString &query, ParsingMode mode = TolerantMode);
248  void setQuery(const QUrlQuery &query);
249  QString query(ComponentFormattingOptions = PrettyDecoded) const;
250 
251  bool hasFragment() const;
252  QString fragment(ComponentFormattingOptions options = PrettyDecoded) const;
253  void setFragment(const QString &fragment, ParsingMode mode = TolerantMode);
254 
255  [[nodiscard]] QUrl resolved(const QUrl &relative) const;
256 
257  bool isRelative() const;
258  bool isParentOf(const QUrl &url) const;
259 
260  bool isLocalFile() const;
261  static QUrl fromLocalFile(const QString &localfile);
262  QString toLocalFile() const;
263 
264  void detach();
265  bool isDetached() const;
266 
267  bool operator <(const QUrl &url) const;
268  bool operator ==(const QUrl &url) const;
269  bool operator !=(const QUrl &url) const;
270 
271  bool matches(const QUrl &url, FormattingOptions options) const;
272 
273  static QString fromPercentEncoding(const QByteArray &);
274  static QByteArray toPercentEncoding(const QString &,
275  const QByteArray &exclude = QByteArray(),
276  const QByteArray &include = QByteArray());
277 #if defined(Q_OS_DARWIN) || defined(Q_QDOC)
278  static QUrl fromCFURL(CFURLRef url);
279  CFURLRef toCFURL() const Q_DECL_CF_RETURNS_RETAINED;
280  static QUrl fromNSURL(const NSURL *url);
281  NSURL *toNSURL() const Q_DECL_NS_RETURNS_AUTORELEASED;
282 #endif
283 
284  enum AceProcessingOption : unsigned int {
285  IgnoreIDNWhitelist = 0x1,
286  AceTransitionalProcessing = 0x2,
287  };
288  Q_DECLARE_FLAGS(AceProcessingOptions, AceProcessingOption)
289 
290 #if QT_CORE_REMOVED_SINCE(6, 3)
291  static QString fromAce(const QByteArray &);
292  static QByteArray toAce(const QString &);
293 #endif
294  static QString fromAce(const QByteArray &domain, AceProcessingOptions options = {});
295  static QByteArray toAce(const QString &domain, AceProcessingOptions options = {});
296 
297  static QStringList idnWhitelist();
298  static QStringList toStringList(const QList<QUrl> &uris, FormattingOptions options = FormattingOptions(PrettyDecoded));
299  static QList<QUrl> fromStringList(const QStringList &uris, ParsingMode mode = TolerantMode);
300 
301  static void setIdnWhitelist(const QStringList &);
302  friend Q_CORE_EXPORT size_t qHash(const QUrl &url, size_t seed) noexcept;
303 
304 private:
305  QUrlPrivate *d;
306  friend class QUrlQuery;
307 
308 public:
309  typedef QUrlPrivate * DataPtr;
310  inline DataPtr &data_ptr() { return d; }
311 };
312 
314 Q_DECLARE_OPERATORS_FOR_FLAGS(QUrl::ComponentFormattingOptions)
315 //Q_DECLARE_OPERATORS_FOR_FLAGS(QUrl::FormattingOptions)
316 Q_DECLARE_OPERATORS_FOR_FLAGS(QUrl::AceProcessingOptions)
317 
318 #ifndef Q_QDOC
320 { return QUrl::FormattingOptions(f1) | f2; }
322 { return f2 | f1; }
324 { return QIncompatibleFlag(uint(f1) | f2); }
325 
326 // add operators for OR'ing the two types of flags
327 inline QUrl::FormattingOptions &operator|=(QUrl::FormattingOptions &i, QUrl::ComponentFormattingOptions f)
328 { i |= QUrl::UrlFormattingOption(f.toInt()); return i; }
330 { return i | QUrl::UrlFormattingOption(qToUnderlying(f)); }
331 constexpr inline QUrl::FormattingOptions operator|(QUrl::UrlFormattingOption i, QUrl::ComponentFormattingOptions f)
332 { return i | QUrl::UrlFormattingOption(f.toInt()); }
334 { return i | QUrl::UrlFormattingOption(qToUnderlying(f)); }
335 constexpr inline QUrl::FormattingOptions operator|(QUrl::ComponentFormattingOptions f, QUrl::UrlFormattingOption i)
336 { return i | QUrl::UrlFormattingOption(f.toInt()); }
337 constexpr inline QUrl::FormattingOptions operator|(QUrl::FormattingOptions i, QUrl::ComponentFormattingOptions f)
338 { return i | QUrl::UrlFormattingOption(f.toInt()); }
340 { return i | QUrl::UrlFormattingOption(qToUnderlying(f)); }
341 constexpr inline QUrl::FormattingOptions operator|(QUrl::ComponentFormattingOptions f, QUrl::FormattingOptions i)
342 { return i | QUrl::UrlFormattingOption(f.toInt()); }
343 
344 //inline QUrl::UrlFormattingOption &operator=(const QUrl::UrlFormattingOption &i, QUrl::ComponentFormattingOptions f)
345 //{ i = int(f); f; }
346 #endif // Q_QDOC
347 
348 #ifndef QT_NO_DATASTREAM
349 Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QUrl &);
350 Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QUrl &);
351 #endif
352 
353 #ifndef QT_NO_DEBUG_STREAM
354 Q_CORE_EXPORT QDebug operator<<(QDebug, const QUrl &);
355 #endif
356 
358 
359 #endif // QURL_H
small capitals from c petite p scientific i
[1]
Definition: afcover.h:80
QBitArray operator|(const QBitArray &a1, const QBitArray &a2)
Definition: qbitarray.cpp:686
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:85
The QDataStream class provides serialization of binary data to a QIODevice.
Definition: qdatastream.h:66
operator>>(QDataStream &ds, qfloat16 &f)
Definition: qfloat16.cpp:344
operator<<(QDataStream &ds, qfloat16 f)
Definition: qfloat16.cpp:327
The QDebug class provides an output stream for debugging information.
Definition: qdebug.h:65
bool operator<(const QElapsedTimer &lhs, const QElapsedTimer &rhs) noexcept
The QFlag class is a helper data type for QFlags.
Definition: qflags.h:53
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
Definition: qflags.h:89
template< typename Enum > bool operator!=(Enum lhs, QFlags< Enum > rhs)
template< typename Enum > size_t qHash(QFlags< Enum > flags, size_t seed=0) noexcept
template< typename Enum > bool operator==(Enum lhs, QFlags< Enum > rhs)
The QString class provides a Unicode character string.
Definition: qstring.h:388
The QStringList class provides a list of strings.
The QUrl class provides a convenient interface for working with URLs.
Definition: qurl.h:130
void swap(QUrl &other) noexcept
Definition: qurl.h:195
friend Q_CORE_EXPORT size_t qHash(const QUrl &url, size_t seed) noexcept
QUrlPrivate * DataPtr
Definition: qurl.h:309
DataPtr & data_ptr()
Definition: qurl.h:310
QUrl(QUrl &&other) noexcept
Definition: qurl.h:190
AceProcessingOption
Definition: qurl.h:284
UserInputResolutionOption
Definition: qurl.h:206
@ DefaultResolution
Definition: qurl.h:207
ParsingMode
Definition: qurl.h:132
@ DecodedMode
Definition: qurl.h:135
@ TolerantMode
Definition: qurl.h:133
@ StrictMode
Definition: qurl.h:134
QUrlTwoFlags< UrlFormattingOption, ComponentFormattingOption > FormattingOptions
Definition: qurl.h:178
QUrl(const QString &url, ParsingMode parsingMode)
Definition: qurl.cpp:1858
UrlFormattingOption
Definition: qurl.h:139
@ RemovePassword
Definition: qurl.h:142
@ RemoveScheme
Definition: qurl.h:141
@ StripTrailingSlash
Definition: qurl.h:151
@ RemoveFragment
Definition: qurl.h:148
@ RemoveQuery
Definition: qurl.h:147
@ RemoveFilename
Definition: qurl.h:152
@ PreferLocalFile
Definition: qurl.h:150
@ NormalizePathSegments
Definition: qurl.h:153
@ RemovePath
Definition: qurl.h:146
@ RemoveUserInfo
Definition: qurl.h:143
@ RemoveAuthority
Definition: qurl.h:145
@ RemovePort
Definition: qurl.h:144
ComponentFormattingOption
Definition: qurl.h:156
@ PrettyDecoded
Definition: qurl.h:157
@ EncodeReserved
Definition: qurl.h:161
@ FullyDecoded
Definition: qurl.h:166
@ EncodeDelimiters
Definition: qurl.h:160
@ EncodeUnicode
Definition: qurl.h:159
@ DecodeReserved
Definition: qurl.h:162
@ EncodeSpaces
Definition: qurl.h:158
@ FullyEncoded
Definition: qurl.h:165
The QUrlQuery class provides a way to manipulate a key-value pairs in a URL's query.
Definition: qurlquery.h:56
QUrlTwoFlags & operator|=(QFlags< E2 > mask)
Definition: qurl.h:83
constexpr QUrlTwoFlags(E2 f)
Definition: qurl.h:70
constexpr QUrlTwoFlags operator&(uint mask) const
Definition: qurl.h:109
QUrlTwoFlags & operator^=(E2 f)
Definition: qurl.h:86
constexpr QUrlTwoFlags operator^(E2 f) const
Definition: qurl.h:105
constexpr bool testFlag(E2 f) const
Definition: qurl.h:119
constexpr QUrlTwoFlags operator^(QUrlTwoFlags f) const
Definition: qurl.h:101
constexpr QUrlTwoFlags(QFlags< E1 > f)
Definition: qurl.h:72
QUrlTwoFlags & operator&=(QFlags< E1 > mask)
Definition: qurl.h:77
constexpr QUrlTwoFlags operator&(int mask) const
Definition: qurl.h:107
constexpr QUrlTwoFlags operator&(E1 f) const
Definition: qurl.h:111
QUrlTwoFlags & operator&=(int mask)
Definition: qurl.h:75
constexpr QUrlTwoFlags operator|(QUrlTwoFlags f) const
Definition: qurl.h:95
QUrlTwoFlags & operator|=(E2 f)
Definition: qurl.h:81
constexpr QUrlTwoFlags operator&(E2 f) const
Definition: qurl.h:113
constexpr bool operator!() const
Definition: qurl.h:93
constexpr QUrlTwoFlags operator|(E2 f) const
Definition: qurl.h:99
QUrlTwoFlags & operator&=(QFlags< E2 > mask)
Definition: qurl.h:78
QUrlTwoFlags & operator^=(E1 f)
Definition: qurl.h:85
QUrlTwoFlags & operator|=(QUrlTwoFlags f)
Definition: qurl.h:79
QUrlTwoFlags & operator&=(uint mask)
Definition: qurl.h:76
constexpr bool testFlag(E1 f) const
Definition: qurl.h:118
QUrlTwoFlags & operator^=(QUrlTwoFlags f)
Definition: qurl.h:84
constexpr QUrlTwoFlags operator|(E1 f) const
Definition: qurl.h:97
constexpr QUrlTwoFlags(E1 f)
Definition: qurl.h:69
QUrlTwoFlags & operator|=(QFlags< E1 > mask)
Definition: qurl.h:82
QUrlTwoFlags & operator|=(E1 f)
Definition: qurl.h:80
constexpr QUrlTwoFlags operator^(E1 f) const
Definition: qurl.h:103
QUrlTwoFlags & operator^=(QFlags< E1 > mask)
Definition: qurl.h:87
QUrlTwoFlags & operator^=(QFlags< E2 > mask)
Definition: qurl.h:88
constexpr QUrlTwoFlags(QFlag f)
Definition: qurl.h:71
constexpr QUrlTwoFlags()
Definition: qurl.h:68
constexpr QUrlTwoFlags operator~() const
Definition: qurl.h:115
constexpr QUrlTwoFlags(QFlags< E2 > f)
Definition: qurl.h:73
b clear()
int Int
Definition: ftraster.c:307
auto it unsigned count const
Definition: hb-iter.hh:848
#define QString()
Definition: parse-defines.h:51
#define None
#define Q_DECL_NS_RETURNS_AUTORELEASED
#define Q_DECL_CF_RETURNS_RETAINED
Q_FORWARD_DECLARE_OBJC_CLASS(NSObject)
Q_FORWARD_DECLARE_CF_TYPE(CTFontDescriptor)
typedef QByteArray(EGLAPIENTRYP PFNQGSGETDISPLAYSPROC)()
EGLOutputPortEXT port
#define Q_DECLARE_FLAGS(Flags, Enum)
Definition: qflags.h:210
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Definition: qflags.h:227
unsigned int uint
Definition: qglobal.h:334
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(Class)
Definition: qglobal.h:563
GLenum mode
GLfloat GLfloat f
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLenum query
Definition: qopenglext.h:2738
GLsizei const GLchar *const * path
Definition: qopenglext.h:4283
#define Q_DECLARE_SHARED(TYPE)
Definition: qtypeinfo.h:197
QUrl::FormattingOptions & operator|=(QUrl::FormattingOptions &i, QUrl::ComponentFormattingOptions f)
Definition: qurl.h:327
QUrl url("http://www.example.com/List of holidays.xml")
[0]
url setScheme("ftp")
qDebug()<< QUrl("file copy setQuery(copy.query(QUrl::FullyDecoded), QUrl::DecodedMode)
QSharedPointer< T > other(t)
[5]
http setHost("qt-project.org")
[2]
request setUrl(QUrl("http://qt-project.org"))
proxy setPassword("password")
proxy setPort(1080)
T1_FIELD_DICT_PRIVATE password
Definition: t1tokens.h:64