<class name="QUrl" doc="/**
&lt;p&gt;The &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; class provides a convenient interface for working with URLs.&lt;/p&gt;
&lt;p&gt;It can parse and construct URLs in both encoded and unencoded form. &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; also has support for internationalized domain names (IDNs).&lt;/p&gt;
&lt;p&gt;The most common way to use &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; is to initialize it via the constructor by passing a &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;. Otherwise, &lt;a href=&quot;QUrl.html#setUrl(java.lang.String, com.trolltech.qt.core.QUrl.ParsingMode)&quot;&gt;&lt;tt&gt;setUrl&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QUrl.html#setEncodedUrl(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setEncodedUrl&lt;/tt&gt;&lt;/a&gt; can also be used.&lt;/p&gt;
&lt;p&gt;URLs can be represented in two forms: encoded or unencoded. The unencoded representation is suitable for showing to users, but the encoded representation is typically what you would send to a web server. For example, the unencoded URL &amp;quot;http://b&amp;uuml;&lt;tt&gt;&lt;/tt&gt;hler.example.com&amp;quot; would be sent to the server as &amp;quot;http://xn--bhler-kva.example.com/List%20of%20applicants.xml&amp;quot;.&lt;/p&gt;
&lt;p&gt;A URL can also be constructed piece by piece by calling &lt;a href=&quot;QUrl.html#setScheme(java.lang.String)&quot;&gt;&lt;tt&gt;setScheme&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QUrl.html#setUserName(java.lang.String)&quot;&gt;&lt;tt&gt;setUserName&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QUrl.html#setPassword(java.lang.String)&quot;&gt;&lt;tt&gt;setPassword&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QUrl.html#setHost(java.lang.String)&quot;&gt;&lt;tt&gt;setHost&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QUrl.html#setPort(int)&quot;&gt;&lt;tt&gt;setPort&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QUrl.html#setPath(java.lang.String)&quot;&gt;&lt;tt&gt;setPath&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QUrl.html#setEncodedQuery(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setEncodedQuery&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QUrl.html#setFragment(java.lang.String)&quot;&gt;&lt;tt&gt;setFragment&lt;/tt&gt;&lt;/a&gt;. Some convenience functions are also available: &lt;a href=&quot;QUrl.html#setAuthority(java.lang.String)&quot;&gt;&lt;tt&gt;setAuthority&lt;/tt&gt;&lt;/a&gt; sets the user name, password, host and port. &lt;a href=&quot;QUrl.html#setUserInfo(java.lang.String)&quot;&gt;&lt;tt&gt;setUserInfo&lt;/tt&gt;&lt;/a&gt; sets the user name and password at once.&lt;/p&gt;
&lt;p&gt;Call &lt;a href=&quot;QUrl.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; to check if the URL is valid. This can be done at any point during the constructing of a URL.&lt;/p&gt;
&lt;p&gt;Constructing a query is particularly convenient through the use of &lt;a href=&quot;QUrl.html#setQueryItems(java.lang.String&gt;&gt;)&quot;&gt;&lt;tt&gt;setQueryItems&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QUrl.html#addQueryItem(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;addQueryItem&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QUrl.html#removeQueryItem(java.lang.String)&quot;&gt;&lt;tt&gt;removeQueryItem&lt;/tt&gt;&lt;/a&gt;. Use &lt;a href=&quot;QUrl.html#setQueryDelimiters(byte, byte)&quot;&gt;&lt;tt&gt;setQueryDelimiters&lt;/tt&gt;&lt;/a&gt; to customize the delimiters used for generating the query string.&lt;/p&gt;
&lt;p&gt;For the convenience of generating encoded URL strings or query strings, there are two static functions called &lt;a href=&quot;QUrl.html#fromPercentEncoding(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;fromPercentEncoding&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QUrl.html#toPercentEncoding(java.lang.String, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;toPercentEncoding&lt;/tt&gt;&lt;/a&gt; which deal with percent encoding and decoding of QStrings.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QUrl.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt; will tell whether or not the URL is relative. A relative URL can be resolved by passing it as argument to &lt;a href=&quot;QUrl.html#resolved(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;resolved&lt;/tt&gt;&lt;/a&gt;, which returns an absolute URL. &lt;a href=&quot;QUrl.html#isParentOf(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;isParentOf&lt;/tt&gt;&lt;/a&gt; is used for determining whether one URL is a parent of another.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QUrl.html#fromLocalFile(java.lang.String)&quot;&gt;&lt;tt&gt;fromLocalFile&lt;/tt&gt;&lt;/a&gt; constructs a &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; by parsing a local file path. &lt;a href=&quot;QUrl.html#toLocalFile()&quot;&gt;&lt;tt&gt;toLocalFile&lt;/tt&gt;&lt;/a&gt; converts a URL to a local file path.&lt;/p&gt;
&lt;p&gt;The human readable representation of the URL is fetched with &lt;a href=&quot;QUrl.html#toString(com.trolltech.qt.core.QUrl.FormattingOptions)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;. This representation is appropriate for displaying a URL to a user in unencoded form. The encoded form however, as returned by &lt;a href=&quot;QUrl.html#toEncoded(com.trolltech.qt.core.QUrl.FormattingOptions)&quot;&gt;&lt;tt&gt;toEncoded&lt;/tt&gt;&lt;/a&gt;, is for internal use, passing to web servers, mail clients and so on.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; conforms to the URI specification from RFC 3986&lt;/tt&gt; (Uniform Resource Identifier: Generic Syntax), and includes scheme extensions from RFC 1738&lt;/tt&gt; (Uniform Resource Locators).&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/network/QUrlInfo.html&quot;&gt;&lt;tt&gt;QUrlInfo&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QUrl(com.trolltech.qt.core.QUrl copy)" doc="/**
&lt;p&gt;Constructs a copy of &lt;tt&gt;copy&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QUrl(java.lang.String url)" doc="/**
&lt;p&gt;Constructs a URL by parsing &lt;tt&gt;url&lt;/tt&gt;. &lt;tt&gt;url&lt;/tt&gt; is assumed to be in human readable representation, with no percent encoding. &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; will automatically percent encode all characters that are not allowed in a URL.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QUrl url(&amp;quot;http:&lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt;www.example.com/List of holidays.xml&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; url.toEncoded() == &amp;quot;http:&lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt;www.example.com/List%20of%20holidays.xml&amp;quot;&lt;/pre&gt;
&lt;p&gt;To construct a URL from an encoded string, call &lt;a href=&quot;QUrl.html#fromEncoded(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QUrl.ParsingMode)&quot;&gt;&lt;tt&gt;fromEncoded&lt;/tt&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;    QUrl url = QUrl::fromEncoded(&amp;quot;http:&lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt;www.trolltech.com/List%20of%20holidays.xml&amp;quot;);&lt;/pre&gt;

@see &lt;a href=&quot;QUrl.html#setUrl(java.lang.String, com.trolltech.qt.core.QUrl.ParsingMode)&quot;&gt;&lt;tt&gt;setUrl&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setEncodedUrl(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setEncodedUrl&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#fromEncoded(com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QUrl.ParsingMode)&quot;&gt;&lt;tt&gt;fromEncoded&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#ParsingMode-enum&quot;&gt;&lt;tt&gt;TolerantMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QUrl(java.lang.String url, com.trolltech.qt.core.QUrl.ParsingMode mode)" doc="/**
&lt;p&gt;Parses the &lt;tt&gt;url&lt;/tt&gt; using the parser mode &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setUrl(java.lang.String, com.trolltech.qt.core.QUrl.ParsingMode)&quot;&gt;&lt;tt&gt;setUrl&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QUrl()" doc="/**
&lt;p&gt;Constructs an empty &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
 */"/>
    <method name="public final void addQueryItem(java.lang.String key, java.lang.String value)" doc="/**
&lt;p&gt;Inserts the pair &lt;tt&gt;key&lt;/tt&gt; = &lt;tt&gt;value&lt;/tt&gt; into the query string of the URL.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; allQueryItemValues(java.lang.String key)" doc="/**
&lt;p&gt;Returns the a list of query string values whose key is equal to &lt;tt&gt;key&lt;/tt&gt; from the URL.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#queryItemValue(java.lang.String)&quot;&gt;&lt;tt&gt;queryItemValue&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String authority()" doc="/**
&lt;p&gt;Returns the authority of the URL if it is defined; otherwise an empty string is returned.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setAuthority(java.lang.String)&quot;&gt;&lt;tt&gt;setAuthority&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clear()" doc="/**
&lt;p&gt;Resets the content of the &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt;. After calling this function, the &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; is equal to one that has been constructed with the default empty constructor.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QByteArray encodedQuery()" doc="/**
&lt;p&gt;Returns the query string of the URL in percent encoded form.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setEncodedQuery(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setEncodedQuery&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String errorString()" doc="/**
&lt;p&gt;Returns a text string that explains why an URL is invalid in the case being; otherwise returns an empty string.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String fragment()" doc="/**
&lt;p&gt;Returns the fragment of the URL.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setFragment(java.lang.String)&quot;&gt;&lt;tt&gt;setFragment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasFragment()" doc="/**
&lt;p&gt;Returns true if this URL contains a fragment (i.e&amp;#x2e;, if # was seen on it).&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#fragment()&quot;&gt;&lt;tt&gt;fragment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setFragment(java.lang.String)&quot;&gt;&lt;tt&gt;setFragment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasQuery()" doc="/**
&lt;p&gt;Returns true if this URL contains a Query (i.e&amp;#x2e;, if ? was seen on it).&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#hasQueryItem(java.lang.String)&quot;&gt;&lt;tt&gt;hasQueryItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#encodedQuery()&quot;&gt;&lt;tt&gt;encodedQuery&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasQueryItem(java.lang.String key)" doc="/**
&lt;p&gt;Returns true if there is a query string pair whose key is equal to &lt;tt&gt;key&lt;/tt&gt; from the URL.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String host()" doc="/**
&lt;p&gt;Returns the host of the URL if it is defined; otherwise an empty string is returned.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setHost(java.lang.String)&quot;&gt;&lt;tt&gt;setHost&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isEmpty()" doc="/**
&lt;p&gt;Returns true if the URL has no data; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isParentOf(com.trolltech.qt.core.QUrl url)" doc="/**
&lt;p&gt;Returns true if this URL is a parent of &lt;tt&gt;url&lt;/tt&gt;. &lt;tt&gt;url&lt;/tt&gt; is a child of this URL if the two URLs share the same scheme and authority, and this URL's path is a parent of the path of &lt;tt&gt;url&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean isRelative()" doc="/**
&lt;p&gt;Returns true if the URL is relative; otherwise returns false. A URL is relative if its scheme is undefined; this function is therefore equivalent to calling &lt;a href=&quot;QUrl.html#scheme()&quot;&gt;&lt;tt&gt;scheme&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QUrl.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if the URL is valid; otherwise returns false.&lt;/p&gt;
&lt;p&gt;The URL is run through a conformance test. Every part of the URL must conform to the standard encoding rules of the URI standard for the URL to be reported as valid.&lt;/p&gt;
&lt;pre&gt;    bool checkUrl(const QUrl &amp;amp;url) {
        if (!url.isValid()) {
            qDebug(QString(&amp;quot;Invalid URL: %1&amp;quot;).arg(url.toString()));
            return false;
        }

        return true;
    }&lt;/pre&gt;
 */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final java.lang.String password()" doc="/**
&lt;p&gt;Returns the password of the URL if it is defined; otherwise an empty string is returned.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setPassword(java.lang.String)&quot;&gt;&lt;tt&gt;setPassword&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setUserName(java.lang.String)&quot;&gt;&lt;tt&gt;setUserName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String path()" doc="/**
&lt;p&gt;Returns the path of the URL.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setPath(java.lang.String)&quot;&gt;&lt;tt&gt;setPath&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int port()" doc="/**
&lt;p&gt;Returns the port of the URL, or -1 if the port is unspecified.&lt;/p&gt;
 */"/>
    <method name="public final int port(int defaultPort)" doc="/**
&lt;p&gt;Returns the port of the URL, or &lt;tt&gt;defaultPort&lt;/tt&gt; if the port is unspecified.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QFtp ftp;
    ftp.connectToHost(url.host(), url.port(21));&lt;/pre&gt;

@see &lt;a href=&quot;QUrl.html#setPort(int)&quot;&gt;&lt;tt&gt;setPort&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String queryItemValue(java.lang.String key)" doc="/**
&lt;p&gt;Returns the first query string value whose key is equal to &lt;tt&gt;key&lt;/tt&gt; from the URL.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#allQueryItemValues(java.lang.String)&quot;&gt;&lt;tt&gt;allQueryItemValues&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.QPair&lt;java.lang.String, java.lang.String&gt;&gt; queryItems()" doc="/**
&lt;p&gt;Returns the query string of the URL, as a map of keys and values.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setQueryItems(java.lang.String&gt;&gt;)&quot;&gt;&lt;tt&gt;setQueryItems&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setEncodedQuery(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setEncodedQuery&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final byte queryPairDelimiter()" doc="/**
&lt;p&gt;Returns the character used to delimit between key-value pairs in the query string of the URL.&lt;/p&gt;
 */"/>
    <method name="public final byte queryValueDelimiter()" doc="/**
&lt;p&gt;Returns the character used to delimit between keys and values in the query string of the URL.&lt;/p&gt;
 */"/>
    <method name="public final void removeAllQueryItems(java.lang.String key)" doc="/**
&lt;p&gt;Removes all the query string pairs whose key is equal to &lt;tt&gt;key&lt;/tt&gt; from the URL.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#removeQueryItem(java.lang.String)&quot;&gt;&lt;tt&gt;removeQueryItem&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void removeQueryItem(java.lang.String key)" doc="/**
&lt;p&gt;Removes the first query string pair whose key is equal to &lt;tt&gt;key&lt;/tt&gt; from the URL.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#removeAllQueryItems(java.lang.String)&quot;&gt;&lt;tt&gt;removeAllQueryItems&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QUrl resolved(com.trolltech.qt.core.QUrl relative)" doc="/**
&lt;p&gt;Returns the result of the merge of this URL with &lt;tt&gt;relative&lt;/tt&gt;. This URL is used as a base to convert &lt;tt&gt;relative&lt;/tt&gt; to an absolute URL.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;relative&lt;/tt&gt; is not a relative URL, this function will return &lt;tt&gt;relative&lt;/tt&gt; directly. Otherwise, the paths of the two URLs are merged, and the new URL returned has the scheme and authority of the base URL, but with the merged path, as in the following example:&lt;/p&gt;
&lt;pre&gt;    QUrl baseUrl(&amp;quot;http:&lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt;www.trolltech.com/support&amp;quot;);
    QUrl relativeUrl(&amp;quot;../products/solutions&amp;quot;);
    qDebug(baseUrl.resolved(relativeUrl).toString());
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; prints &amp;quot;http:&lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt;www.trolltech.com/products/solutions&amp;quot;&lt;/pre&gt;
&lt;p&gt;Calling &lt;a href=&quot;QUrl.html#resolved(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;resolved&lt;/tt&gt;&lt;/a&gt; with &amp;quot;..&amp;quot; returns a &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; whose directory is one level higher than the original. Similarly, calling &lt;a href=&quot;QUrl.html#resolved(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;resolved&lt;/tt&gt;&lt;/a&gt; with &amp;quot;../&amp;#x2e;.&amp;quot; removes two levels from the path. If &lt;tt&gt;relative&lt;/tt&gt; is &amp;quot;/&amp;quot;, the path becomes &amp;quot;/&amp;quot;.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String scheme()" doc="/**
&lt;p&gt;Returns the scheme of the URL. If an empty string is returned, this means the scheme is undefined and the URL is then relative.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setScheme(java.lang.String)&quot;&gt;&lt;tt&gt;setScheme&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAuthority(java.lang.String authority)" doc="/**
&lt;p&gt;Sets the authority of the URL to &lt;tt&gt;authority&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The authority of a URL is the combination of user info, a host name and a port. All of these elements are optional; an empty authority is therefore valid.&lt;/p&gt;
&lt;p&gt;The user info and host are separated by a '&lt;a href=&quot;mailto:@&quot;&gt;@&lt;/tt&gt;&lt;/a&gt;', and the host and port are separated by a ':'. If the user info is empty, the '&lt;a href=&quot;mailto:@&quot;&gt;@&lt;/tt&gt;&lt;/a&gt;' must be omitted; although a stray ':' is permitted if the port is empty.&lt;/p&gt;
&lt;p&gt;The following example shows a valid authority string:&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qurl-authority.png&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QUrl.html#authority()&quot;&gt;&lt;tt&gt;authority&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setEncodedQuery(com.trolltech.qt.core.QByteArray query)" doc="/**
&lt;p&gt;Sets the query string of the URL to &lt;tt&gt;query&lt;/tt&gt;. The string is inserted as-is, and no further encoding is performed when calling &lt;a href=&quot;QUrl.html#toEncoded(com.trolltech.qt.core.QUrl.FormattingOptions)&quot;&gt;&lt;tt&gt;toEncoded&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This function is useful if you need to pass a query string that does not fit into the key-value pattern, or that uses a different scheme for encoding special characters than what is suggested by &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Passing a value of &lt;a href=&quot;%2E%2E/porting4.html#qbytearray&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;query&lt;/tt&gt; (a null &lt;a href=&quot;QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;) unsets the query completely. However, passing a value of &lt;a href=&quot;QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;(&amp;quot;&amp;quot;) will set the query to an empty value, as if the original URL had a lone &amp;quot;?&amp;quot;.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#encodedQuery()&quot;&gt;&lt;tt&gt;encodedQuery&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#hasQuery()&quot;&gt;&lt;tt&gt;hasQuery&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setEncodedUrl(com.trolltech.qt.core.QByteArray url, com.trolltech.qt.core.QUrl.ParsingMode mode)" doc="/**
&lt;p&gt;Constructs a URL by parsing the contents of &lt;tt&gt;url&lt;/tt&gt; using the given &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setEncodedUrl(com.trolltech.qt.core.QByteArray url)" doc="/**
&lt;p&gt;Constructs a URL by parsing the contents of &lt;tt&gt;url&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;url&lt;/tt&gt; is assumed to be a URL string in percent encoded form, containing only ASCII characters.&lt;/p&gt;
&lt;p&gt;Use &lt;a href=&quot;QUrl.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; to determine if a valid URL was constructed.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setUrl(java.lang.String, com.trolltech.qt.core.QUrl.ParsingMode)&quot;&gt;&lt;tt&gt;setUrl&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFragment(java.lang.String fragment)" doc="/**
&lt;p&gt;Sets the fragment of the URL to &lt;tt&gt;fragment&lt;/tt&gt;. The fragment is the last part of the URL, represented by a '#' followed by a string of characters. It is typically used in HTTP for referring to a certain link or point on a page:&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qurl-fragment.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;The fragment is sometimes also referred to as the URL &amp;quot;reference&amp;quot;.&lt;/p&gt;
&lt;p&gt;Passing an argument of &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; (a null &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;) will unset the fragment. Passing an argument of &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;(&amp;quot;&amp;quot;) (an empty but not null &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;) will set the fragment to an empty string (as if the original URL had a lone &amp;quot;#&amp;quot;).&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#fragment()&quot;&gt;&lt;tt&gt;fragment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#hasFragment()&quot;&gt;&lt;tt&gt;hasFragment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHost(java.lang.String host)" doc="/**
&lt;p&gt;Sets the host of the URL to &lt;tt&gt;host&lt;/tt&gt;. The host is part of the authority.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#host()&quot;&gt;&lt;tt&gt;host&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setAuthority(java.lang.String)&quot;&gt;&lt;tt&gt;setAuthority&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPassword(java.lang.String password)" doc="/**
&lt;p&gt;Sets the URL's password to &lt;tt&gt;password&lt;/tt&gt;. The &lt;tt&gt;password&lt;/tt&gt; is part of the user info element in the authority of the URL, as described in &lt;a href=&quot;QUrl.html#setUserInfo(java.lang.String)&quot;&gt;&lt;tt&gt;setUserInfo&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#password()&quot;&gt;&lt;tt&gt;password&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setUserInfo(java.lang.String)&quot;&gt;&lt;tt&gt;setUserInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPath(java.lang.String path)" doc="/**
&lt;p&gt;Sets the path of the URL to &lt;tt&gt;path&lt;/tt&gt;. The path is the part of the URL that comes after the authority but before the query string.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qurl-ftppath.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;For non-hierarchical schemes, the path will be everything following the scheme declaration, as in the following example:&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qurl-mailtopath.png&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QUrl.html#path()&quot;&gt;&lt;tt&gt;path&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPort(int port)" doc="/**
&lt;p&gt;Sets the port of the URL to &lt;tt&gt;port&lt;/tt&gt;. The port is part of the authority of the URL, as described in &lt;a href=&quot;QUrl.html#setAuthority(java.lang.String)&quot;&gt;&lt;tt&gt;setAuthority&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;port&lt;/tt&gt; must be between 0 and 65535 inclusive. Setting the port to -1 indicates that the port is unspecified.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#port(int)&quot;&gt;&lt;tt&gt;port&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setQueryDelimiters(byte valueDelimiter, byte pairDelimiter)" doc="/**
&lt;p&gt;Sets the characters used for delimiting between keys and values, and between key-value pairs in the URL's query string. The default value delimiter is '=' and the default pair delimiter is '&amp;amp;'.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qurl-querystring.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;tt&gt;valueDelimiter&lt;/tt&gt; will be used for separating keys from values, and &lt;tt&gt;pairDelimiter&lt;/tt&gt; will be used to separate key-value pairs. Any occurrences of these delimiting characters in the encoded representation of the keys and values of the query string are percent encoded.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;valueDelimiter&lt;/tt&gt; is set to '-' and &lt;tt&gt;pairDelimiter&lt;/tt&gt; is '/', the above query string would instead be represented like this:&lt;/p&gt;
&lt;pre&gt;    http:&lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt;www.example.com/cgi-bin/drawgraph.cgi?type-pie/color-green&lt;/pre&gt;
&lt;p&gt;Calling this function does not change the delimiters of the current query string. It only affects &lt;a href=&quot;QUrl.html#queryItems()&quot;&gt;&lt;tt&gt;queryItems&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QUrl.html#setQueryItems(java.lang.String&gt;&gt;)&quot;&gt;&lt;tt&gt;setQueryItems&lt;/tt&gt;&lt;/a&gt; and addQueryItems().&lt;/p&gt;
 */"/>
    <method name="public final void setQueryItems(java.lang.String&gt;&gt; query)" doc="/**
&lt;p&gt;Sets the query string of the URL to an encoded version of &lt;tt&gt;query&lt;/tt&gt;. The contents of &lt;tt&gt;query&lt;/tt&gt; are converted to a string internally, each pair delimited by the character returned by pairDelimiter(), and the key and value are delimited by valueDelimiter().&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setQueryDelimiters(byte, byte)&quot;&gt;&lt;tt&gt;setQueryDelimiters&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#queryItems()&quot;&gt;&lt;tt&gt;queryItems&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setScheme(java.lang.String scheme)" doc="/**
&lt;p&gt;Sets the scheme of the URL to &lt;tt&gt;scheme&lt;/tt&gt;. As a scheme can only contain ASCII characters, no conversion or encoding is done on the input.&lt;/p&gt;
&lt;p&gt;The scheme describes the type (or protocol) of the URL. It's represented by one or more ASCII characters at the start the URL, and is followed by a ':'. The following example shows a URL where the scheme is &amp;quot;ftp&amp;quot;:&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qurl-authority2.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;The scheme can also be empty, in which case the URL is interpreted as relative.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#scheme()&quot;&gt;&lt;tt&gt;scheme&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#isRelative()&quot;&gt;&lt;tt&gt;isRelative&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUrl(java.lang.String url)" doc="/**
&lt;p&gt;Constructs a URL by parsing the contents of &lt;tt&gt;url&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;url&lt;/tt&gt; is assumed to be in unicode format, with no percent encoding.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QUrl.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; will tell whether or not a valid URL was constructed.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setEncodedUrl(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setEncodedUrl&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUrl(java.lang.String url, com.trolltech.qt.core.QUrl.ParsingMode mode)" doc="/**
&lt;p&gt;Parses &lt;tt&gt;url&lt;/tt&gt; using the parsing mode &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setEncodedUrl(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setEncodedUrl&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUserInfo(java.lang.String userInfo)" doc="/**
&lt;p&gt;Sets the user info of the URL to &lt;tt&gt;userInfo&lt;/tt&gt;. The user info is an optional part of the authority of the URL, as described in &lt;a href=&quot;QUrl.html#setAuthority(java.lang.String)&quot;&gt;&lt;tt&gt;setAuthority&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The user info consists of a user name and optionally a password, separated by a ':'. If the password is empty, the colon must be omitted. The following example shows a valid user info string:&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qurl-authority3.png&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QUrl.html#userInfo()&quot;&gt;&lt;tt&gt;userInfo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setUserName(java.lang.String)&quot;&gt;&lt;tt&gt;setUserName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setPassword(java.lang.String)&quot;&gt;&lt;tt&gt;setPassword&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setAuthority(java.lang.String)&quot;&gt;&lt;tt&gt;setAuthority&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUserName(java.lang.String userName)" doc="/**
&lt;p&gt;Sets the URL's user name to &lt;tt&gt;userName&lt;/tt&gt;. The &lt;tt&gt;userName&lt;/tt&gt; is part of the user info element in the authority of the URL, as described in &lt;a href=&quot;QUrl.html#setUserInfo(java.lang.String)&quot;&gt;&lt;tt&gt;setUserInfo&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#userName()&quot;&gt;&lt;tt&gt;userName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setUserInfo(java.lang.String)&quot;&gt;&lt;tt&gt;setUserInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray toEncoded(com.trolltech.qt.core.QUrl.FormattingOptions options)" doc="/**
&lt;p&gt;Returns the encoded representation of the URL if it's valid; otherwise an empty &lt;a href=&quot;QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; is returned. The output can be customized by passing flags with &lt;tt&gt;options&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The user info, path and fragment are all converted to UTF-8, and all non-ASCII characters are then percent encoded. The host name is encoded using Punycode.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QByteArray toEncoded()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QUrl.html#toEncoded(com.trolltech.qt.core.QUrl.FormattingOptions)&quot;&gt;&lt;tt&gt;toEncoded&lt;/tt&gt;&lt;/a&gt;(None). */"/>
    <method name="public final java.lang.String toLocalFile()" doc="/**
&lt;p&gt;Returns the path of this URL formatted as a local file path.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#fromLocalFile(java.lang.String)&quot;&gt;&lt;tt&gt;fromLocalFile&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toString(com.trolltech.qt.core.QUrl.FormattingOptions options)" doc="/**
&lt;p&gt;Returns the human-displayable string representation of the URL. The output can be customized by passing flags with &lt;tt&gt;options&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;FormattingOptions&lt;/tt&gt;
@see &lt;a href=&quot;QUrl.html#toEncoded(com.trolltech.qt.core.QUrl.FormattingOptions)&quot;&gt;&lt;tt&gt;toEncoded&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toString()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QUrl.html#toString(com.trolltech.qt.core.QUrl.FormattingOptions)&quot;&gt;&lt;tt&gt;toString&lt;/tt&gt;&lt;/a&gt;(None). */"/>
    <method name="public final java.lang.String userInfo()" doc="/**
&lt;p&gt;Returns the user info of the URL, or an empty string if the user info is undefined.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setUserInfo(java.lang.String)&quot;&gt;&lt;tt&gt;setUserInfo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String userName()" doc="/**
&lt;p&gt;Returns the user name of the URL if it is defined; otherwise an empty string is returned.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setUserName(java.lang.String)&quot;&gt;&lt;tt&gt;setUserName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static java.lang.String fromAce(com.trolltech.qt.core.QByteArray arg__1)" doc="/**
&lt;p&gt;Returns the Unicode form of the given domain name &lt;tt&gt;arg__1&lt;/tt&gt;, which is encoded in the ASCII Compatible Encoding (ACE). The result of this function is considered equivalent to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the value in &lt;tt&gt;arg__1&lt;/tt&gt; cannot be encoded, it will be converted to &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; and returned.&lt;/p&gt;
&lt;p&gt;The ASCII Compatible Encoding (ACE) is defined by RFC 3490, RFC 3491 and RFC 3492. It is part of the Internationalizing Domain Names in Applications (IDNA) specification, which allows for domain names (like &lt;tt&gt;&amp;quot;www.trolltech.com&amp;quot;&lt;/tt&gt;) to be written using international characters.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.core.QUrl fromEncoded(com.trolltech.qt.core.QByteArray url)" doc="/**
&lt;p&gt;Parses &lt;tt&gt;url&lt;/tt&gt; and returns the corresponding &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt;. &lt;tt&gt;url&lt;/tt&gt; is assumed to be in encoded form, containing only ASCII characters.&lt;/p&gt;
&lt;p&gt;The URL is parsed using &lt;a href=&quot;QUrl.html#ParsingMode-enum&quot;&gt;&lt;tt&gt;TolerantMode&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#toEncoded(com.trolltech.qt.core.QUrl.FormattingOptions)&quot;&gt;&lt;tt&gt;toEncoded&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setUrl(java.lang.String, com.trolltech.qt.core.QUrl.ParsingMode)&quot;&gt;&lt;tt&gt;setUrl&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.core.QUrl fromEncoded(com.trolltech.qt.core.QByteArray url, com.trolltech.qt.core.QUrl.ParsingMode mode)" doc="/**
&lt;p&gt;Parses the URL using &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#toEncoded(com.trolltech.qt.core.QUrl.FormattingOptions)&quot;&gt;&lt;tt&gt;toEncoded&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QUrl.html#setUrl(java.lang.String, com.trolltech.qt.core.QUrl.ParsingMode)&quot;&gt;&lt;tt&gt;setUrl&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QUrl fromLocalFile(java.lang.String localfile)" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; representation of &lt;tt&gt;localfile&lt;/tt&gt;, interpreted as a local file.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#toLocalFile()&quot;&gt;&lt;tt&gt;toLocalFile&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static java.lang.String fromPercentEncoding(com.trolltech.qt.core.QByteArray arg__1)" doc="/**
&lt;p&gt;Returns a decoded copy of &lt;tt&gt;arg__1&lt;/tt&gt;. &lt;tt&gt;arg__1&lt;/tt&gt; is first decoded from percent encoding, then converted from UTF-8 to unicode.&lt;/p&gt;
 */"/>
    <method name="public native static java.util.List&lt;java.lang.String&gt; idnWhitelist()" doc="/**
&lt;p&gt;Returns the current whitelist of top-level domains that are allowed to have non-ASCII characters in their compositions.&lt;/p&gt;
&lt;p&gt;See &lt;a href=&quot;QUrl.html#setIdnWhitelist(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setIdnWhitelist&lt;/tt&gt;&lt;/a&gt; for the rationale of this list.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#setIdnWhitelist(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setIdnWhitelist&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static void setIdnWhitelist(java.util.List&lt;java.lang.String&gt; arg__1)" doc="/**
&lt;p&gt;Sets the whitelist of Top-Level Domains (TLDs) that are allowed to have non-ASCII characters in domains to the value of &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Qt has comes a default list that contains the Internet top-level domains that have published support for Internationalized Domain Names (IDNs) and rules to guarantee that no deception can happen between similarly-looking characters (such as the Latin lowercase letter &lt;tt&gt;'a'&lt;/tt&gt; and the Cyrillic equivalent, which in most fonts are visually identical).&lt;/p&gt;
&lt;p&gt;This list is periodically maintained, as registrars publish new rules.&lt;/p&gt;
&lt;p&gt;This function is provided for those who need to manipulate the list, in order to add or remove a TLD. It is not recommended to change its value for purposes other than testing, as it may expose users to security risks.&lt;/p&gt;

@see &lt;a href=&quot;QUrl.html#idnWhitelist()&quot;&gt;&lt;tt&gt;idnWhitelist&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QByteArray toAce(java.lang.String arg__1)" doc="/**
&lt;p&gt;Returns the ASCII Compatible Encoding of the given domain name &lt;tt&gt;arg__1&lt;/tt&gt;. The result of this function is considered equivalent to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The ASCII-Compatible Encoding (ACE) is defined by RFC 3490, RFC 3491 and RFC 3492. It is part of the Internationalizing Domain Names in Applications (IDNA) specification, which allows for domain names (like &lt;tt&gt;&amp;quot;www.trolltech.com&amp;quot;&lt;/tt&gt;) to be written using international characters.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.core.QByteArray toPercentEncoding(java.lang.String arg__1, com.trolltech.qt.core.QByteArray exclude, com.trolltech.qt.core.QByteArray include)" doc="/**
&lt;p&gt;Returns an encoded copy of &lt;tt&gt;arg__1&lt;/tt&gt;. &lt;tt&gt;arg__1&lt;/tt&gt; is first converted to UTF-8, and all ASCII-characters that are not in the unreserved group are percent encoded. To prevent characters from being percent encoded pass them to &lt;tt&gt;exclude&lt;/tt&gt;. To force characters to be percent encoded pass them to &lt;tt&gt;include&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Unreserved is defined as: ALPHA / DIGIT / &amp;quot;-&amp;quot; / &amp;quot;.&amp;quot; / &amp;quot;_&amp;quot; / &amp;quot;~&amp;quot;&lt;/p&gt;
&lt;pre&gt;    QByteArray ba = QUrl::toPercentEncoding(&amp;quot;{a fishy string?}&amp;quot;, &amp;quot;{}&amp;quot;, &amp;quot;s&amp;quot;);
    qDebug(ba.constData());
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; prints &amp;quot;{a fi%73hy %73tring%3F}&amp;quot;&lt;/pre&gt;
 */"/>
    <method name="public static com.trolltech.qt.core.QByteArray toPercentEncoding(java.lang.String arg__1, com.trolltech.qt.core.QByteArray exclude)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QUrl.html#toPercentEncoding(java.lang.String, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;toPercentEncoding&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;exclude&lt;/tt&gt;, QByteArray()). */"/>
    <method name="public static com.trolltech.qt.core.QByteArray toPercentEncoding(java.lang.String arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QUrl.html#toPercentEncoding(java.lang.String, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;toPercentEncoding&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, QByteArray(), QByteArray()). */"/>
    <enum name="ParsingMode" doc="/**
&lt;p&gt;The parsing mode controls the way &lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; parses strings.&lt;/p&gt;
&lt;p&gt;In &lt;a href=&quot;QUrl.html#ParsingMode-enum&quot;&gt;&lt;tt&gt;TolerantMode&lt;/tt&gt;&lt;/a&gt;, the parser corrects the following invalid input:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Spaces and &amp;quot;%20&amp;quot;: If an encoded URL contains a space, this will be replaced with &amp;quot;%20&amp;quot;. If a decoded URL contains &amp;quot;%20&amp;quot;, this will be replaced with a single space before the URL is parsed.&lt;/li&gt;
&lt;li&gt;Single &amp;quot;%&amp;quot; characters: Any occurrences of a percent character &amp;quot;%&amp;quot; not followed by exactly two hexadecimal characters (e.g&amp;#x2e;, &amp;quot;13% coverage.html&amp;quot;) will be replaced by &amp;quot;%25&amp;quot;.&lt;/li&gt;
&lt;li&gt;Non-US-ASCII characters: An encoded URL should only contain US-ASCII characters. In &lt;a href=&quot;QUrl.html#ParsingMode-enum&quot;&gt;&lt;tt&gt;TolerantMode&lt;/tt&gt;&lt;/a&gt;, characters outside this range are automatically percent-encoded.&lt;/li&gt;
&lt;li&gt;Any occurrence of &amp;quot;[&amp;quot; and &amp;quot;]&amp;quot; following the host part of the URL is percent-encoded.&lt;/li&gt;
&lt;/ul&gt;
 */">
        <enum-value name="TolerantMode" doc="/**
&lt;p&gt;&lt;a href=&quot;QUrl.html#QUrl()&quot;&gt;&lt;tt&gt;QUrl&lt;/tt&gt;&lt;/a&gt; will try to correct some common errors in URLs. This mode is useful when processing URLs entered by users.&lt;/p&gt;
 */"/>
        <enum-value name="StrictMode" doc="/**
&lt;p&gt;Only valid URLs are accepted. This mode is useful for general URL validation.&lt;/p&gt;
 */"/>
</enum>
    <enum name="FormattingOption" doc="/**
&lt;p&gt;The formatting options define how the URL is formatted when written out as text.&lt;/p&gt;
 */">
        <enum-value name="None" doc="/**
&lt;p&gt;The URL is left unchanged.&lt;/p&gt;
 */"/>
        <enum-value name="RemoveScheme" doc="/**
&lt;p&gt;The scheme is removed from the URL.&lt;/p&gt;
 */"/>
        <enum-value name="RemovePassword" doc="/**
&lt;p&gt;Any password in the URL is removed.&lt;/p&gt;
 */"/>
        <enum-value name="RemoveUserInfo" doc="/**
&lt;p&gt;Any user information in the URL is removed.&lt;/p&gt;
 */"/>
        <enum-value name="RemovePort" doc="/**
&lt;p&gt;Any specified port is removed from the URL.&lt;/p&gt;
 */"/>
        <enum-value name="RemoveAuthority" doc="/**
Internal. */"/>
        <enum-value name="RemovePath" doc="/**
&lt;p&gt;The URL's path is removed, leaving only the scheme, host address, and port (if present).&lt;/p&gt;
 */"/>
        <enum-value name="RemoveQuery" doc="/**
&lt;p&gt;The query part of the URL (following a '?' character) is removed.&lt;/p&gt;
 */"/>
        <enum-value name="RemoveFragment" doc="/**
Internal. */"/>
        <enum-value name="StripTrailingSlash" doc="/**
&lt;p&gt;The trailing slash is removed if one is present.&lt;/p&gt;
 */"/>
</enum>
</class>
