Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > f89abdeb016114b348a5c554d8214329 > files > 2816

kdelibs-apidocs-3.5.4-30.el5.centos.x86_64.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kdecore: KURL Class Reference (kdecore)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">kdecore</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.4.7 -->
<h1>KURL Class Reference</h1><!-- doxytag: class="KURL" --><code>#include &lt;<a class="el" href="kurl_8h-source.html">kurl.h</a>&gt;</code>
<p>
<a href="classKURL-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Represents and parses a URL. 
<p>
A prototypical URL looks like: <div class="fragment"><pre class="fragment">   <a class="code" href="classKURL.html#4be1d1602a1d0f0afeee230167ebfdc4">protocol</a>:<span class="comment">//user:password@hostname:port/path/to/file.ext#reference</span>
</pre></div><p>
<a class="el" href="classKURL.html">KURL</a> handles escaping of URLs. This means that the specification of a full URL will differ from the corresponding string that would specify a local file or directory in file-operations like fopen. This is because an URL doesn't allow certain characters and escapes them.<p>
For examle:<ul>
<li>'#' -&gt; "%23" (In a URL the hash-character <code>'#'</code> is used to specify a "reference", i.e. the position within a document)</li><li>space -&gt; "%20"</li></ul>
<p>
The constructor KURL(const QString&amp;) expects a string properly escaped, or at least non-ambiguous. For instance a local file or directory <code>"/bar/#foo#"</code> would have the URL <code>"file:///bar/%23foo%23"</code>. If you have the absolute path and need the URL-escaping you should create <a class="el" href="classKURL.html">KURL</a> via the default-constructor and then call <a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath(const QString&amp;)</a>: <div class="fragment"><pre class="fragment">     <a class="code" href="classKURL.html">KURL</a> kurl;
     kurl.<a class="code" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath</a>( <span class="stringliteral">"/bar/#foo#"</span> );
     <a class="codeRef" doxygen="qt.tag:" href="qstring.html">QString</a> <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a> = kurl.<a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a>();    <span class="comment">// -&gt; "file:///bar/%23foo%23"</span>
</pre></div><p>
If you have the URL of a local file or directory and need the absolute path, you would use <a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a>. <div class="fragment"><pre class="fragment">    <a class="code" href="classKURL.html">KURL</a> <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a>( <span class="stringliteral">"file:///bar/%23foo%23"</span> );
    ...
    <span class="keywordflow">if</span> ( <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a>.isLocalFile() )
       <a class="codeRef" doxygen="qt.tag:" href="qstring.html">QString</a> <a class="code" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path</a> = <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a>.path();       <span class="comment">// -&gt; "/bar/#foo#"</span>
</pre></div><p>
The other way round: if the user can enter a string, that can be either a path or a URL, then you need to use <a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">KURL::fromPathOrURL()</a> to build a <a class="el" href="classKURL.html">KURL</a>.<p>
This must also be considered, when you have separated directory and file strings and need to put them together. While you can simply concatenate normal path strings, you must take care if the directory-part is already an escaped URL. (This might be needed if the user specifies a relative path, and your program supplies the rest from elsewhere.)<p>
Wrong: <div class="fragment"><pre class="fragment">    <a class="codeRef" doxygen="qt.tag:" href="qstring.html">QString</a> dirUrl = <span class="stringliteral">"file:///bar/"</span>;
    <a class="codeRef" doxygen="qt.tag:" href="qstring.html">QString</a> <a class="code" href="classKURL.html#0634d0fc02c9883ca164966b4764a692">fileName</a> = <span class="stringliteral">"#foo#"</span>;
    <a class="codeRef" doxygen="qt.tag:" href="qstring.html">QString</a> invalidURL = dirUrl + <a class="code" href="classKURL.html#0634d0fc02c9883ca164966b4764a692">fileName</a>;   <span class="comment">// -&gt; "file:///bar/#foo#" won't behave like you would expect.</span>
</pre></div> Instead you should use <a class="el" href="classKURL.html#22950393da23aff8dc71dd86cdad9a1b">addPath()</a>.<p>
Right: <div class="fragment"><pre class="fragment">    <a class="code" href="classKURL.html">KURL</a> <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a>( <span class="stringliteral">"file:///bar/"</span> );
    <a class="codeRef" doxygen="qt.tag:" href="qstring.html">QString</a> fileName = <span class="stringliteral">"#foo#"</span>;
    <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a>.addPath( <a class="code" href="classKURL.html#0634d0fc02c9883ca164966b4764a692">fileName</a> );
    <a class="codeRef" doxygen="qt.tag:" href="qstring.html">QString</a> validURL = <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a>.url();    <span class="comment">// -&gt; "file:///bar/%23foo%23"</span>
</pre></div><p>
Also consider that some URLs contain the password, but this shouldn't be visible. Your program should use <a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL()</a> every time it displays a URL, whether in the GUI or in debug output or...<p>
<div class="fragment"><pre class="fragment">    <a class="code" href="classKURL.html">KURL</a> <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a>( <span class="stringliteral">"ftp://name:password@ftp.faraway.org/bar/%23foo%23"</span>);
    <a class="codeRef" doxygen="qt.tag:" href="qstring.html">QString</a> visibleURL = <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a>.prettyURL(); <span class="comment">// -&gt; "ftp://name@ftp.faraway.org/bar/%23foo%23"</span>
</pre></div> Note that <a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL()</a> doesn't change the character escapes (like <code>"%23"</code>). Otherwise the URL would be invalid and the user wouldn't be able to use it in another context.<p>
<a class="el" href="classKURL.html">KURL</a> has some restrictions regarding the path encoding. <a class="el" href="classKURL.html">KURL</a> works internally with the decoded path and and encoded query. For example, <div class="fragment"><pre class="fragment">    http:<span class="comment">//localhost/cgi-bin/test%20me.pl?cmd=Hello%20you</span>
</pre></div> would result in a decoded path <code>"/cgi-bin/test me.pl"</code> and in the encoded query <code>"?cmd=Hello%20you"</code>. Since path is internally always encoded you may <em>not</em> use <code>"%00"</code> in the path, although this is OK for the query.<p>
<dl compact><dt><b>Author:</b></dt><dd>Torben Weis &lt;<a href="mailto:weis@kde.org">weis@kde.org</a>&gt; </dd></dl>

<p>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00127">127</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#316e98d10f9c4dfd570f99c179e8b621b5d2997c6d8a1a32dcbc742765c993e0">NoAdjustements</a> = 0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#316e98d10f9c4dfd570f99c179e8b6218ddf235a2eed58e8f915d4332dc16156">StripFileProtocol</a> = 1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d259db85130d0702a27e41777d7c767acca">Auto</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d2548dc1cda1b16403f9ba112a8d035e5e7">Invalid</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d25e1438b681934016b65507c804f933c30">RawURI</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d255b1d60824c0e38e36c28ddd5f34a9569">URL</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d25dd1a21fcdf4c90f451c256191553c6f7">Mailto</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ace5360569cdbcf648569f45e92e9002676bc8515e367e5614f4aea0e618f3c7">CaseInsensitiveKeys</a> = 1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#316e98d10f9c4dfd570f99c179e8b621">AdjustementFlags</a> { <a class="el" href="classKURL.html#316e98d10f9c4dfd570f99c179e8b621b5d2997c6d8a1a32dcbc742765c993e0">NoAdjustements</a> =  0, 
<a class="el" href="classKURL.html#316e98d10f9c4dfd570f99c179e8b6218ddf235a2eed58e8f915d4332dc16156">StripFileProtocol</a> =  1
 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d25">URIMode</a> { <br>
&nbsp;&nbsp;<a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d259db85130d0702a27e41777d7c767acca">Auto</a>, 
<a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d2548dc1cda1b16403f9ba112a8d035e5e7">Invalid</a>, 
<a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d25e1438b681934016b65507c804f933c30">RawURI</a>, 
<a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d255b1d60824c0e38e36c28ddd5f34a9569">URL</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d25dd1a21fcdf4c90f451c256191553c6f7">Mailto</a>
<br>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ace5360569cdbcf648569f45e92e9002">QueryItemsOptions</a> { <a class="el" href="classKURL.html#ace5360569cdbcf648569f45e92e9002676bc8515e367e5614f4aea0e618f3c7">CaseInsensitiveKeys</a> =  1
 }</td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#71e859f230741869c427ba2e7a9c90a9">KURL</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#6892da49ac63d19458bf27eb0736ed9c">~KURL</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#78d5d0d9c4e19289b7ff74f988538cc7">KURL</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;url, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#dbc4e9b6cb078e26e5b220b1fe9b3cfa">KURL</a> (const char *url, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#3db6e118ac41e55600e9bbad86825b21">KURL</a> (const <a class="elRef" doxygen="qt.tag:" href="qcstring.html">QCString</a> &amp;url, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#5c8f93cc2fe4e6fcad9e431d4c78da70">KURL</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;u)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#da858afd3328c262dc57ec6a31934013">KURL</a> (const <a class="elRef" doxygen="qt.tag:" href="qurl.html">QUrl</a> &amp;u)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#36339dac9244da13dab71911f4a216dd">KURL</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_baseurl, const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_rel_url, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#4be1d1602a1d0f0afeee230167ebfdc4">protocol</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#8992baac621d32c2aed7c97a26362b8d">setProtocol</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_txt)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#5f99cb1b7d49f3ddb2a56aa036957269">uriMode</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e5459bd5b7101d5bbfbff17ce2a43027">user</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#3ee8660de05aaac5e90893ca87ab07fe">setUser</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_txt)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#2c6b8f18351722e9280b99d869572989">hasUser</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#0bd95e7e1a54ab12b56439495f00bff6">pass</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#34346c1a8873adc586efffb6d1376154">setPass</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_txt)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#b6aa391061678b69b314a6b403d0ace2">hasPass</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#df3ad35581a0ca25ecc16e073f8275ca">host</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#fbf05cea61e7c6f3c5de6a467d5f0534">setHost</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_txt)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e086bae03d0eb7b01c1d4775ff008734">hasHost</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned short int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#205598afc6842db13e4ad996ba1d9422">port</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#872ff8bd98d746e3356d9331d55421e8">setPort</a> (unsigned short int _p)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#0fd6a984e0f2e0fe38e1f67a11a98ff9">path</a> (int _trailing) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;path)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#d24bdff9a1df6735fe544c96cd7c30c1">hasPath</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a4f7e51dc176f53f6e25a89195b04477">cleanPath</a> (bool cleanDirSeparator=true)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#13576bca04c106cb92a7c33c36495654">adjustPath</a> (int _trailing)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#d243d1d3d12cdf0828b95203dc440284">setEncodedPathAndQuery</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_txt, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ab26a52864a868ea2eddb5e9e7c9057e">setEncodedPath</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_txt, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#12bb2c946469dafcc86989b2bca4dd4c">encodedPathAndQuery</a> (int _trailing=0, bool _no_empty_path=false, int encoding_hint=0) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#9ffeaee79924b4156f5816fc95f874e5">setQuery</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_txt, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#53f4194e147b11b678760340d62b3043">ref</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#f531d16bdf3ac9a5a8ed27e16f61ebd7">setRef</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_txt)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#dd38e3181b6ebf71290f0353d6630518">hasRef</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ed95d74660e8514cf91a9948ced8108c">htmlRef</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#27c969dca60a800d96238ed18337d008">encodedHtmlRef</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#bd27cfe74e1c54f0e1f43958d102f103">setHTMLRef</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_ref)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#55f47b57289effd8e4bc7dc945b5b9f9">hasHTMLRef</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#d8b823d40572ca24b6983d868847c251">isValid</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">KDE_DEPRECATED bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#d4df233237b4d9e5f4fc53f909741142">isMalformed</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#942448c47652c6453f3c6ce59ae62731">isLocalFile</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#c3baacf0bb1d8f98970ea301a576dcdd">setFileEncoding</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;encoding)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#49785c16a6ee9805236aaa210dfde124">fileEncoding</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#090c7e6d5d6293a6cbdde374bc1ebaeb">hasSubURL</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#22950393da23aff8dc71dd86cdad9a1b">addPath</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;txt)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#24115e5a48e1ea3a5247002dcbf3a18e">queryItem</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;item) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#84d79633bc77b8dda2a91977a6ba0594">queryItem</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;item, int encoding_hint) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9ae23423c525716220481cfcea51b5fd"></a><!-- doxytag: member="KURL::queryItems" ref="9ae23423c525716220481cfcea51b5fd" args="(int options=0) const " -->
<a class="elRef" doxygen="qt.tag:" href="qmap.html">QMap</a>&lt; <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>, <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#9ae23423c525716220481cfcea51b5fd">queryItems</a> (int options=0) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qmap.html">QMap</a>&lt; <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>, <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e52346d421301e1108b6c19cfd33294f">queryItems</a> (int options, int encoding_hint) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#324fac18c2e755dc1cc0b479b75a1bbb">addQueryItem</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_item, const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_value, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#86529c33c0fd3f281fdc2e8b01f2d84c">removeQueryItem</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_item)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#8a068268c1128fea91eb2cc17ccad5ce">setFileName</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_txt)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#0634d0fc02c9883ca164966b4764a692">fileName</a> (bool _ignore_trailing_slash_in_path=true) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#0ff924855867aa98d0cbb5f3f20f4f87">directory</a> (bool _strip_trailing_slash_from_result=true, bool _ignore_trailing_slash_in_path=true) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#35ef4c9ffe4fa877f30c53ccfaf5a293">setDirectory</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;dir)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#7d2e31526d61ed97a0132768d0270a3f">cd</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_dir)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a> (int _trailing=0, int encoding_hint=0) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL</a> (int _trailing=0) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#c12929211bbe1263cfad92d6e246d501">prettyURL</a> (int _trailing, <a class="el" href="classKURL.html#316e98d10f9c4dfd570f99c179e8b621">AdjustementFlags</a> _flags) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#38ca30778962db93d7b47200b8e1578f">pathOrURL</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#1435c4cc9e9cda44c3490eba7a351101">htmlURL</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#f10f805c72d7223d88d7499fc5f39bd2">isEmpty</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKURL.html">KURL</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#cb769056af19c8c4b0458f9a6b317343">upURL</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#c60bdbc98263f470f5955ffc79cf95c3">operator&lt;</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_u) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#86078b56b4e196780e343001263d4545">operator=</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_u)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#7803b7119921a664d389e9c85b7742e0">operator=</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#43257e96a858a015009ea2816b88f69c">operator=</a> (const char *_url)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#678569f3199c222f99701bdbfb091ea3">operator=</a> (const <a class="elRef" doxygen="qt.tag:" href="qurl.html">QUrl</a> &amp;u)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#16d4527245ef6a50d158240936be4775">operator==</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_u) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#405d73554b97daca3568a0a554e2cc58">operator==</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_u) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#0c6c2fbd2f62435d0fc5fdb675edf459">operator!=</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_u) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#3e2062c66a979effb804ea8444e1f159">operator!=</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_u) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#e52a2ef0548958a5e0586182016834da">cmp</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;u, bool ignore_trailing=false) const KDE_DEPRECATED</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;u, bool ignore_trailing=false) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#969ac5a396980191f14a459e1d0d6000">isParentOf</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;u) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#69ea0add8b07a0a5e17ca239c6f66599">filename</a> (bool _ignore_trailing_slash_in_path=true) const </td></tr>

<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classKURL_1_1List.html">List</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#411d9ebf2f0c66e58721776271537316">split</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classKURL_1_1List.html">List</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#5345022be672d2d6c646826d0b1f6af0">split</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_url)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classKURL.html">KURL</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#95df01647f7ddf97be8c3ab018fd1f36">join</a> (const <a class="el" href="classKURL_1_1List.html">List</a> &amp;_list)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classKURL.html">KURL</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;text)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#5a12896c25a17ab12abf2097a7c75713">encode_string</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;str, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#2c68cba73fe2d65b926d6f9cc3667790">encode_string_no_slash</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;str, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#bbdd1c868880355a4eb6daa4a71926b0">decode_string</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;str, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a45474b065df2aa16142dc77500d6971">isRelativeURL</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#7f7c85dfee5668f24aba599b7f05f175">relativeURL</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;base_url, const <a class="el" href="classKURL.html">KURL</a> &amp;url, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#8cc9fd7108ba1c161dcc88993e8e4923">relativePath</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;base_dir, const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;path, bool *isParent=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d25">URIMode</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#d400be8a7ea5af29184581da39abe7ce">uriModeForProtocol</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;protocol)</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#508a4c6026a031a52d4c854a26cce536">reset</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#1005b451c6beee15b87bfe498b2e1f90">parseURL</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#4429a776e21ea5a2112c1dad318a8d15">parseRawURI</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#9266785d84b7b41c78b1336592198a86">parseMailto</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url, int encoding_hint=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#b3e311c1974098c707b94e7b7eb2ec74">parse</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url, int encoding_hint=0)</td></tr>

<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3c55df33b6a2d82b40461a326bd9d92"></a><!-- doxytag: member="KURL::operator&lt;&lt;" ref="a3c55df33b6a2d82b40461a326bd9d92" args="(QDataStream &amp;s, const KURL &amp;a)" -->
<a class="elRef" doxygen="qt.tag:" href="qdatastream.html">QDataStream</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a3c55df33b6a2d82b40461a326bd9d92">operator&lt;&lt;</a> (<a class="elRef" doxygen="qt.tag:" href="qdatastream.html">QDataStream</a> &amp;s, const <a class="el" href="classKURL.html">KURL</a> &amp;a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8081baa37e415e07e66ed8af8bd2cc1"></a><!-- doxytag: member="KURL::operator&gt;&gt;" ref="a8081baa37e415e07e66ed8af8bd2cc1" args="(QDataStream &amp;s, KURL &amp;a)" -->
<a class="elRef" doxygen="qt.tag:" href="qdatastream.html">QDataStream</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a8081baa37e415e07e66ed8af8bd2cc1">operator&gt;&gt;</a> (<a class="elRef" doxygen="qt.tag:" href="qdatastream.html">QDataStream</a> &amp;s, <a class="el" href="classKURL.html">KURL</a> &amp;a)</td></tr>

<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#2694d0d7d254eacf3c39cf3eebe17eda">urlcmp</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url1, const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url2)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#0b58ea663513546270fd380a811b209a">urlcmp</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url1, const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;_url2, bool _ignore_trailing, bool _ignore_ref)</td></tr>

<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL_1_1List.html">List</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classKURL_1_1List.html">KURL::List</a> is a <a class="elRef" doxygen="qt.tag:" href="qvaluelist.html">QValueList</a> that contains KURLs with a few convenience methods.  <a href="classKURL_1_1List.html#_details">More...</a><br></td></tr>
</table>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="316e98d10f9c4dfd570f99c179e8b621"></a><!-- doxytag: member="KURL::AdjustementFlags" ref="316e98d10f9c4dfd570f99c179e8b621" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKURL.html#316e98d10f9c4dfd570f99c179e8b621">KURL::AdjustementFlags</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Flags to choose how file: URLs are treated when creating their <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> representation with prettyURL(int,AdjustementFlags). 
<p>
However it is recommended to use <a class="el" href="classKURL.html#38ca30778962db93d7b47200b8e1578f">pathOrURL()</a> instead of this variant of <a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL()</a> <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="316e98d10f9c4dfd570f99c179e8b621b5d2997c6d8a1a32dcbc742765c993e0"></a><!-- doxytag: member="NoAdjustements" ref="316e98d10f9c4dfd570f99c179e8b621b5d2997c6d8a1a32dcbc742765c993e0" args="" -->NoAdjustements</em>&nbsp;</td><td>
Do not treat file: URLs differently. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="316e98d10f9c4dfd570f99c179e8b6218ddf235a2eed58e8f915d4332dc16156"></a><!-- doxytag: member="StripFileProtocol" ref="316e98d10f9c4dfd570f99c179e8b6218ddf235a2eed58e8f915d4332dc16156" args="" -->StripFileProtocol</em>&nbsp;</td><td>
Strip the file: protocol from the string, i.e. 
<p>
return only the path and filename as a local path </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00136">136</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="ace5360569cdbcf648569f45e92e9002"></a><!-- doxytag: member="KURL::QueryItemsOptions" ref="ace5360569cdbcf648569f45e92e9002" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKURL.html#ace5360569cdbcf648569f45e92e9002">KURL::QueryItemsOptions</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Options for <a class="el" href="classKURL.html#9ae23423c525716220481cfcea51b5fd">queryItems()</a>. 
<p>
<dl compact><dt><b>Since:</b></dt><dd>3.1 </dd></dl>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="ace5360569cdbcf648569f45e92e9002676bc8515e367e5614f4aea0e618f3c7"></a><!-- doxytag: member="CaseInsensitiveKeys" ref="ace5360569cdbcf648569f45e92e9002676bc8515e367e5614f4aea0e618f3c7" args="" -->CaseInsensitiveKeys</em>&nbsp;</td><td>
Normalize query keys to lowercase. </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00925">925</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="e02a2dbcced8e7219eec8d30bada0d25"></a><!-- doxytag: member="KURL::URIMode" ref="e02a2dbcced8e7219eec8d30bada0d25" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d25">KURL::URIMode</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Defines the type of URI we are processing. 
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="e02a2dbcced8e7219eec8d30bada0d259db85130d0702a27e41777d7c767acca"></a><!-- doxytag: member="Auto" ref="e02a2dbcced8e7219eec8d30bada0d259db85130d0702a27e41777d7c767acca" args="" -->Auto</em>&nbsp;</td><td>
Automatically detected. 
<p>
Using this mode, an appropriate processing mode will be selected when the URI is first processed. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="e02a2dbcced8e7219eec8d30bada0d2548dc1cda1b16403f9ba112a8d035e5e7"></a><!-- doxytag: member="Invalid" ref="e02a2dbcced8e7219eec8d30bada0d2548dc1cda1b16403f9ba112a8d035e5e7" args="" -->Invalid</em>&nbsp;</td><td>
Invalid URI. 
<p>
This is something that can't be parsed as a URI at all. The contents are accessible through the <a class="el" href="classKURL.html#4be1d1602a1d0f0afeee230167ebfdc4">protocol()</a> method. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="e02a2dbcced8e7219eec8d30bada0d25e1438b681934016b65507c804f933c30"></a><!-- doxytag: member="RawURI" ref="e02a2dbcced8e7219eec8d30bada0d25e1438b681934016b65507c804f933c30" args="" -->RawURI</em>&nbsp;</td><td>
Raw URI. 
<p>
This type of URI should not be processed in any way. Contents are accessible through the <a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> method. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="e02a2dbcced8e7219eec8d30bada0d255b1d60824c0e38e36c28ddd5f34a9569"></a><!-- doxytag: member="URL" ref="e02a2dbcced8e7219eec8d30bada0d255b1d60824c0e38e36c28ddd5f34a9569" args="" -->URL</em>&nbsp;</td><td>
Standards compliant URL. 
<p>
Process as a syntactically correct URL. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="e02a2dbcced8e7219eec8d30bada0d25dd1a21fcdf4c90f451c256191553c6f7"></a><!-- doxytag: member="Mailto" ref="e02a2dbcced8e7219eec8d30bada0d25dd1a21fcdf4c90f451c256191553c6f7" args="" -->Mailto</em>&nbsp;</td><td>
Mailto URI. 
<p>
<a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> contains an email address which should have its domain part processed as a DNS name. The email address is accessible through the <a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> method. </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00152">152</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="71e859f230741869c427ba2e7a9c90a9"></a><!-- doxytag: member="KURL::KURL" ref="71e859f230741869c427ba2e7a9c90a9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::KURL           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs an empty URL. 
<p>
The created instance will also be invalid, see <a class="el" href="classKURL.html#d8b823d40572ca24b6983d868847c251">isValid()</a> 
<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00456">456</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="6892da49ac63d19458bf27eb0736ed9c"></a><!-- doxytag: member="KURL::~KURL" ref="6892da49ac63d19458bf27eb0736ed9c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::~KURL           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructs the <a class="el" href="classKURL.html">KURL</a> object. 
<p>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00461">461</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="78d5d0d9c4e19289b7ff74f988538cc7"></a><!-- doxytag: member="KURL::KURL" ref="78d5d0d9c4e19289b7ff74f988538cc7" args="(const QString &amp;url, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::KURL           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Usual constructor, to construct from a string. 
<p>
<dl compact><dt><b>Warning:</b></dt><dd>It is dangerous to feed UNIX filenames into this function, this will work most of the time but not always.</dd></dl>
For example <code>"/home/Torben%20Weis"</code> will be considered a URL pointing to the file <code>"/home/Torben Weis"</code> instead of to the file <code>"/home/Torben%20Weis"</code>.<p>
This means that if you have a usual UNIX like path you should not use this constructor. Instead use <a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>url</em>&nbsp;</td><td>a URL, not a filename. If the URL does not have a protocol part, <code>"file:"</code> is assumed </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of URL. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00466">466</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="dbc4e9b6cb078e26e5b220b1fe9b3cfa"></a><!-- doxytag: member="KURL::KURL" ref="dbc4e9b6cb078e26e5b220b1fe9b3cfa" args="(const char *url, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::KURL           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor taking an URL encoded in a C string. 
<p>
Constructor taking a char * <code>url</code>, which is an <em>encoded</em> representation of the URL, exactly like the usual constructor. This is useful when the URL, in its encoded form, is strictly ASCII.<p>
<dl compact><dt><b>Warning:</b></dt><dd>It is dangerous to feed UNIX filenames into this function, this will work most of the time but not always.</dd></dl>
For example <code>"/home/Torben%20Weis"</code> will be considered a URL pointing to the file <code>"/home/Torben Weis"</code> instead of to the file <code>"/home/Torben%20Weis"</code>.<p>
This means that if you have a usual UNIX like path you should not use this constructor. Instead use <a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>url</em>&nbsp;</td><td>an encoded URL. If the URL does not have a protocol part, <code>"file:"</code> is assumed </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of URL. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a> <p>
<a class="elRef" doxygen="qt.tag:" href="qstring.html#fromLatin1">QString::fromLatin1()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00472">472</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="3db6e118ac41e55600e9bbad86825b21"></a><!-- doxytag: member="KURL::KURL" ref="3db6e118ac41e55600e9bbad86825b21" args="(const QCString &amp;url, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::KURL           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qcstring.html">QCString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor taking an URL encoded in a <a class="elRef" doxygen="qt.tag:" href="qcstring.html">QCString</a>. 
<p>
Constructor taking a <a class="elRef" doxygen="qt.tag:" href="qcstring.html">QCString</a> <code>url</code>, which is an <em>encoded</em> representation of the URL, exactly like the usual constructor. This is useful when the URL, in its encoded form, is strictly ASCII.<p>
<dl compact><dt><b>Warning:</b></dt><dd>It is dangerous to feed UNIX filenames into this function, this will work most of the time but not always.</dd></dl>
For example <code>"/home/Torben%20Weis"</code> will be considered a URL pointing to the file <code>"/home/Torben Weis"</code> instead of to the file <code>"/home/Torben%20Weis"</code>.<p>
This means that if you have a usual UNIX like path you should not use this constructor. Instead use <a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>url</em>&nbsp;</td><td>A encoded URL. If the URL does not have a protocol part, <code>"file:"</code> is assumed </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of URL. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a> <p>
<a class="elRef" doxygen="qt.tag:" href="qstring.html#fromLatin1">QString::fromLatin1()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00478">478</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="5c8f93cc2fe4e6fcad9e431d4c78da70"></a><!-- doxytag: member="KURL::KURL" ref="5c8f93cc2fe4e6fcad9e431d4c78da70" args="(const KURL &amp;u)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::KURL           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copy constructor. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>u</em>&nbsp;</td><td>the <a class="el" href="classKURL.html">KURL</a> to copy </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00484">484</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="da858afd3328c262dc57ec6a31934013"></a><!-- doxytag: member="KURL::KURL" ref="da858afd3328c262dc57ec6a31934013" args="(const QUrl &amp;u)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::KURL           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qurl.html">QUrl</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor taking a <a class="elRef" doxygen="qt.tag:" href="qt.html">Qt</a> URL. 
<p>
Converts from a <a class="elRef" doxygen="qt.tag:" href="qt.html">Qt</a> URL.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>u</em>&nbsp;</td><td>the <a class="elRef" doxygen="qt.tag:" href="qurl.html">QUrl</a> </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00523">523</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="36339dac9244da13dab71911f4a216dd"></a><!-- doxytag: member="KURL::KURL" ref="36339dac9244da13dab71911f4a216dd" args="(const KURL &amp;_baseurl, const QString &amp;_rel_url, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::KURL           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_baseurl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_rel_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor allowing relative URLs. 
<p>
<dl compact><dt><b>Warning:</b></dt><dd>It is dangerous to feed UNIX filenames into this function, this will work most of the time but not always.</dd></dl>
For example <code>"/home/Torben%20Weis"</code> will be considered a URL pointing to the file <code>"/home/Torben Weis"</code> instead of to the file <code>"/home/Torben%20Weis"</code>.<p>
This means that if you have a usual UNIX like path you should not use this constructor. Instead use <a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_baseurl</em>&nbsp;</td><td>The base url. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_rel_url</em>&nbsp;</td><td>A relative or absolute URL. If this is an absolute URL then <code>_baseurl</code> will be ignored. If this is a relative URL it will be combined with <code>_baseurl</code>. Note that <code>_rel_url</code> should be encoded too, in any case. So do NOT pass a path here (use <a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath()</a> or <a class="el" href="classKURL.html#22950393da23aff8dc71dd86cdad9a1b">addPath()</a> or <a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a> instead) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of URL. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00529">529</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="22950393da23aff8dc71dd86cdad9a1b"></a><!-- doxytag: member="KURL::addPath" ref="22950393da23aff8dc71dd86cdad9a1b" args="(const QString &amp;txt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::addPath           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>txt</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds to the current path. 
<p>
Assumes that the current path is a directory. <code>_txt</code> is appended to the current path. The function adds <code>'/'</code> if needed while concatenating. This means it does not matter whether the current path has a trailing <code>'/'</code> or not. If there is none, it becomes appended. If <code>_txt</code> has a leading <code>'/'</code> then this one is stripped.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>txt</em>&nbsp;</td><td>the text to add. It is considered to be decoded</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath()</a> <p>
<a class="el" href="classKURL.html#d24bdff9a1df6735fe544c96cd7c30c1">hasPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01740">1740</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="324fac18c2e755dc1cc0b479b75a1bbb"></a><!-- doxytag: member="KURL::addQueryItem" ref="324fac18c2e755dc1cc0b479b75a1bbb" args="(const QString &amp;_item, const QString &amp;_value, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::addQueryItem           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds an additional query item. 
<p>
To replace an existing query item, the item should first be removed with <a class="el" href="classKURL.html#86529c33c0fd3f281fdc2e8b01f2d84c">removeQueryItem()</a><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_item</em>&nbsp;</td><td>name of item to add </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_value</em>&nbsp;</td><td>value of item to add </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of encoding to use for _value. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#24115e5a48e1ea3a5247002dcbf3a18e">queryItem()</a> <p>
<a class="el" href="classKURL.html#9ae23423c525716220481cfcea51b5fd">queryItems()</a> <p>
<a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02231">2231</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="13576bca04c106cb92a7c33c36495654"></a><!-- doxytag: member="KURL::adjustPath" ref="13576bca04c106cb92a7c33c36495654" args="(int _trailing)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::adjustPath           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>_trailing</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds or removes a trailing slash to/from the path. 
<p>
The <code>_trailing</code> parameter allows to ensure the existance or absence of the last (trailing) <code>'/'</code> character in the path. If the URL has no path, then no <code>'/'</code> is added anyway. And on the other side: if the path is just <code>"/"</code>, then this character won't be stripped.<p>
Reason: <code>"ftp://weis@host"</code> means something completely different than <code>"ftp://weis@host/"</code>. So adding or stripping the '/' would really alter the URL, while <code>"ftp://host/path"</code> and <code>"ftp://host/path/"</code> mean the same directory.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_trailing</em>&nbsp;</td><td>May be ( <code>-1</code>, <code>0</code>, <code>+1</code> ). <code>-1</code> strips a trailing <code>'/'</code>, <code>+1</code> adds a trailing <code>'/'</code> if there is none yet and <code>0</code> returns the path unchanged</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#d24bdff9a1df6735fe544c96cd7c30c1">hasPath()</a> <p>
<a class="el" href="classKURL.html#a4f7e51dc176f53f6e25a89195b04477">cleanPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01297">1297</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="7d2e31526d61ed97a0132768d0270a3f"></a><!-- doxytag: member="KURL::cd" ref="7d2e31526d61ed97a0132768d0270a3f" args="(const QString &amp;_dir)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::cd           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_dir</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Changes the directory by descending into the given directory. 
<p>
It is assumed the current URL represents a directory. If <code>_dir</code> starts with a <code>'/'</code> the current URL will be <code>"protocol://host/dir"</code> otherwise <code>_dir</code> will be appended to the path. <code>_dir</code> can be <code>".."</code> <p>
This function won't strip protocols. That means that when you are in <code>"file:///dir/dir2/my.tgz#tar:/"</code> and you do <code>cd("..")</code> you will still be in <code>"file:///dir/dir2/my.tgz#tar:/"</code><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_dir</em>&nbsp;</td><td>the directory to change to </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if successful</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#0ff924855867aa98d0cbb5f3f20f4f87">directory()</a> <p>
<a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01807">1807</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="a4f7e51dc176f53f6e25a89195b04477"></a><!-- doxytag: member="KURL::cleanPath" ref="a4f7e51dc176f53f6e25a89195b04477" args="(bool cleanDirSeparator=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::cleanPath           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>cleanDirSeparator</em> = <code>true</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Resolves <code>"."</code> and <code>".."</code> components in path. 
<p>
Some servers seem not to like the removal of extra <code>'/'</code> even though it is against the specification in RFC 2396.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cleanDirSeparator</em>&nbsp;</td><td>if <code>true</code>, occurrences of consecutive directory separators (e.g. <code>"/foo//bar"</code>) are cleaned up as well</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#d24bdff9a1df6735fe544c96cd7c30c1">hasPath()</a> <p>
<a class="el" href="classKURL.html#13576bca04c106cb92a7c33c36495654">adjustPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01258">1258</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="e52a2ef0548958a5e0586182016834da"></a><!-- doxytag: member="KURL::cmp" ref="e52a2ef0548958a5e0586182016834da" args="(const KURL &amp;u, bool ignore_trailing=false) const KDE_DEPRECATED" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::cmp           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>ignore_trailing</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compares this URL with another one. 
<p>
The same as <a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a>, just with a less obvious name.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>u</em>&nbsp;</td><td>the URL to compare this one with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ignore_trailing</em>&nbsp;</td><td>set to <code>true</code> to ignore trailing <code>'/'</code> characters</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if both URLs are the same</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#16d4527245ef6a50d158240936be4775">operator==</a>. This function should be used if you want to ignore trailing <code>'/'</code> characters</dd></dl>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000065">Deprecated:</a></b></dt><dd>Use <a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a> instead. </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01155">1155</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="bbdd1c868880355a4eb6daa4a71926b0"></a><!-- doxytag: member="KURL::decode_string" ref="bbdd1c868880355a4eb6daa4a71926b0" args="(const QString &amp;str, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::decode_string           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Decodes a string as used in URLs. 
<p>
Convenience function.<p>
Decode -style encoding and convert from local encoding to unicode.<p>
Reverse of <a class="el" href="classKURL.html#5a12896c25a17ab12abf2097a7c75713">encode_string()</a><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>the string to decode (can be <code>QString::null</code>) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the decoded string</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#5a12896c25a17ab12abf2097a7c75713">encode_string()</a> <p>
<a class="el" href="classKURL.html#2c68cba73fe2d65b926d6f9cc3667790">encode_string_no_slash()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02073">2073</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="0ff924855867aa98d0cbb5f3f20f4f87"></a><!-- doxytag: member="KURL::directory" ref="0ff924855867aa98d0cbb5f3f20f4f87" args="(bool _strip_trailing_slash_from_result=true, bool _ignore_trailing_slash_in_path=true) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::directory           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>_strip_trailing_slash_from_result</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>_ignore_trailing_slash_in_path</em> = <code>true</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the directory of the path. 
<p>
The directory is everything between the last and the second last <code>'/'</code> is returned. For example <code>"file:///hallo/torben/"</code> would return <code>"/hallo/torben/"</code> while <code>"file:///hallo/torben"</code> would return <code>"hallo/"</code>.<p>
<code>_ignore_trailing_slash_in_path</code> tells whether a trailing <code>'/'</code> should be ignored. This means that the function would return <code>"/hallo"</code> (or <code>"/hallo"</code> depending on <code>_strip_trailing_slash_from_result</code>) for <code>"file:///hallo/torben/"</code> and <code>"file:///hallo/torben"</code>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_strip_trailing_slash_from_result</em>&nbsp;</td><td>tells whether the returned result should end with <code>'/'</code> or not. If the path is empty or just <code>"/"</code> then this flag has no effect </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_ignore_trailing_slash_in_path</em>&nbsp;</td><td>if set to <code>false</code>, then everything behind the last <code>'/'</code> is considered to be the filename</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the directory part of the current path or <code>QString::null</code> when there is no path. The returned string is decoded</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#35ef4c9ffe4fa877f30c53ccfaf5a293">setDirectory()</a> <p>
<a class="el" href="classKURL.html#0634d0fc02c9883ca164966b4764a692">fileName()</a> <p>
<a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01773">1773</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="5a12896c25a17ab12abf2097a7c75713"></a><!-- doxytag: member="KURL::encode_string" ref="5a12896c25a17ab12abf2097a7c75713" args="(const QString &amp;str, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::encode_string           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Encodes a string for use in URLs. 
<p>
Convenience function.<p>
Convert unicoded string to local encoding and use %-style encoding for all common delimiters / non-ascii characters.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>the string to encode (can be <code>QString::null</code>) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of encoding to use. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the encoded string</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#2c68cba73fe2d65b926d6f9cc3667790">encode_string_no_slash()</a> <p>
<a class="el" href="classKURL.html#bbdd1c868880355a4eb6daa4a71926b0">decode_string()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02078">2078</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="2c68cba73fe2d65b926d6f9cc3667790"></a><!-- doxytag: member="KURL::encode_string_no_slash" ref="2c68cba73fe2d65b926d6f9cc3667790" args="(const QString &amp;str, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::encode_string_no_slash           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Encodes a string for use in URLs. 
<p>
Convenience function.<p>
Convert unicoded string to local encoding and use %-style encoding for all common delimiters and non-ascii characters as well as the slash <code>'/'</code>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>the string to encode (can be <code>QString::null</code>) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of encoding to use. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#5a12896c25a17ab12abf2097a7c75713">encode_string()</a> <p>
<a class="el" href="classKURL.html#bbdd1c868880355a4eb6daa4a71926b0">decode_string()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02083">2083</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="27c969dca60a800d96238ed18337d008"></a><!-- doxytag: member="KURL::encodedHtmlRef" ref="27c969dca60a800d96238ed18337d008" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::encodedHtmlRef           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the encoded HTML-style reference (the part of the URL after <code>'#'</code>). 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the HTML-style reference in its original, encoded, form</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ed95d74660e8514cf91a9948ced8108c">htmlRef()</a> <p>
<a class="el" href="classKURL.html#bd27cfe74e1c54f0e1f43958d102f103">setHTMLRef()</a> <p>
<a class="el" href="classKURL.html#55f47b57289effd8e4bc7dc945b5b9f9">hasHTMLRef()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01906">1906</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="12bb2c946469dafcc86989b2bca4dd4c"></a><!-- doxytag: member="KURL::encodedPathAndQuery" ref="12bb2c946469dafcc86989b2bca4dd4c" args="(int _trailing=0, bool _no_empty_path=false, int encoding_hint=0) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::encodedPathAndQuery           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>_trailing</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>_no_empty_path</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the encoded path and the query. 
<p>
The <code>_trailing</code> parameter allows to ensure the existance or absence of the last (trailing) <code>'/'</code> character in the path. If the URL has no path, then no <code>'/'</code> is added anyway. And on the other side: if the path is just <code>"/"</code>, then this character won't be stripped.<p>
Reason: <code>"ftp://weis@host"</code> means something completely different than <code>"ftp://weis@host/"</code>. So adding or stripping the '/' would really alter the URL, while <code>"ftp://host/path"</code> and <code>"ftp://host/path/"</code> mean the same directory.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_trailing</em>&nbsp;</td><td>May be ( <code>-1</code>, <code>0</code>, <code>+1</code> ). <code>-1</code> strips a trailing <code>'/'</code>, <code>+1</code> adds a trailing <code>'/'</code> if there is none yet and <code>0</code> returns the path unchanged </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_no_empty_path</em>&nbsp;</td><td>if set to <code>true</code> then an empty path is substituted by <code>"/"</code> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of desired encoding of URL. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the concatenation of the encoded path , <code>'</code>?' and the encoded query</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#d243d1d3d12cdf0828b95203dc440284">setEncodedPathAndQuery()</a> <p>
<a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> <p>
<a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01307">1307</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="373b2cd2d283db2a94f7cf00483d5111"></a><!-- doxytag: member="KURL::equals" ref="373b2cd2d283db2a94f7cf00483d5111" args="(const KURL &amp;u, bool ignore_trailing=false) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::equals           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>ignore_trailing</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compares this URL with another one. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>u</em>&nbsp;</td><td>the URL to compare this one with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ignore_trailing</em>&nbsp;</td><td>set to <code>true</code> to ignore trailing <code>'/'</code> characters</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if both urls are the same</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#16d4527245ef6a50d158240936be4775">operator==</a>. This function should be used if you want to ignore trailing <code>'/'</code> characters</dd></dl>
<dl compact><dt><b>Since:</b></dt><dd>3.1 </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01160">1160</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="49785c16a6ee9805236aaa210dfde124"></a><!-- doxytag: member="KURL::fileEncoding" ref="49785c16a6ee9805236aaa210dfde124" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::fileEncoding           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns encoding information of the URL. 
<p>
The encoding information is the content of the <code>"charset"</code> parameter.<p>
<dl compact><dt><b>Returns:</b></dt><dd>an encoding suitable for <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#codecForName">QTextCodec::codecForName()</a> or <code>QString::null</code> if not encoding was specified </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01417">1417</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="69ea0add8b07a0a5e17ca239c6f66599"></a><!-- doxytag: member="KURL::filename" ref="69ea0add8b07a0a5e17ca239c6f66599" args="(bool _ignore_trailing_slash_in_path=true) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::filename           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>_ignore_trailing_slash_in_path</em> = <code>true</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000066">Deprecated:</a></b></dt><dd>change code to call <a class="el" href="classKURL.html#0634d0fc02c9883ca164966b4764a692">fileName()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l01718">1718</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="0634d0fc02c9883ca164966b4764a692"></a><!-- doxytag: member="KURL::fileName" ref="0634d0fc02c9883ca164966b4764a692" args="(bool _ignore_trailing_slash_in_path=true) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::fileName           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>_ignore_trailing_slash_in_path</em> = <code>true</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the filename of the path. 
<p>
<code>_ignore_trailing_slash_in_path</code> tells whether a trailing <code>'/'</code> should be ignored. This means that the function would return <code>"torben"</code> for <code>"file:///hallo/torben/"</code> and <code>"file:///hallo/torben"</code>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_ignore_trailing_slash_in_path</em>&nbsp;</td><td>if set to <code>false</code>, then everything behind the last <code>'/'</code> is considered to be the filename</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the filename of the current path. The returned string is decoded. <code>QString::null</code> if there is no file (and thus no path)</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#8a068268c1128fea91eb2cc17ccad5ce">setFileName()</a> <p>
<a class="el" href="classKURL.html#0ff924855867aa98d0cbb5f3f20f4f87">directory()</a> <p>
<a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01681">1681</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="5c3370590e8fbae93d5c10197489fcfc"></a><!-- doxytag: member="KURL::fromPathOrURL" ref="5c3370590e8fbae93d5c10197489fcfc" args="(const QString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL.html">KURL</a> KURL::fromPathOrURL           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a <a class="el" href="classKURL.html">KURL</a> object from a <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> representing either an absolute path or a real URL. 
<p>
Use this method instead of <div class="fragment"><pre class="fragment"> <a class="codeRef" doxygen="qt.tag:" href="qstring.html">QString</a> someDir = ...
 <a class="code" href="classKURL.html">KURL</a> <a class="code" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url</a> = someDir;
</pre></div><p>
Otherwise some characters (e.g. the '#') won't be encoded properly.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>the string representation of the URL to convert</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the new <a class="el" href="classKURL.html">KURL</a></dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#38ca30778962db93d7b47200b8e1578f">pathOrURL()</a> <p>
<a class="el" href="classKURL.html#78d5d0d9c4e19289b7ff74f988538cc7">KURL(const QString&amp;, int)</a></dd></dl>
<dl compact><dt><b>Since:</b></dt><dd>3.1 </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02242">2242</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="e086bae03d0eb7b01c1d4775ff008734"></a><!-- doxytag: member="KURL::hasHost" ref="e086bae03d0eb7b01c1d4775ff008734" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::hasHost           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if this URL has a hostname included in it. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the URL has a non-empty host</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#df3ad35581a0ca25ecc16e073f8275ca">host()</a> <p>
<a class="el" href="classKURL.html#fbf05cea61e7c6f3c5de6a467d5f0534">setHost()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00498">498</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="55f47b57289effd8e4bc7dc945b5b9f9"></a><!-- doxytag: member="KURL::hasHTMLRef" ref="55f47b57289effd8e4bc7dc945b5b9f9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::hasHTMLRef           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if there is an HTML-style reference. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the URL has an HTML-style reference</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ed95d74660e8514cf91a9948ced8108c">htmlRef()</a> <p>
<a class="el" href="classKURL.html#27c969dca60a800d96238ed18337d008">encodedHtmlRef()</a> <p>
<a class="el" href="classKURL.html#bd27cfe74e1c54f0e1f43958d102f103">setHTMLRef()</a> <p>
<a class="el" href="classKURL.html#dd38e3181b6ebf71290f0353d6630518">hasRef()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01932">1932</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="b6aa391061678b69b314a6b403d0ace2"></a><!-- doxytag: member="KURL::hasPass" ref="b6aa391061678b69b314a6b403d0ace2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::hasPass           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if this URL has a password included in it. 
<p>
<dl compact><dt><b>Note:</b></dt><dd>a password can only appear in a URL string if you also set a user, see <a class="el" href="classKURL.html#3ee8660de05aaac5e90893ca87ab07fe">setUser()</a>.</dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if there is a non-empty password set</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#0bd95e7e1a54ab12b56439495f00bff6">pass()</a> <p>
<a class="el" href="classKURL.html#34346c1a8873adc586efffb6d1376154">setPass()</a> <p>
<a class="el" href="classKURL.html#2c6b8f18351722e9280b99d869572989">hasUser()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00467">467</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="d24bdff9a1df6735fe544c96cd7c30c1"></a><!-- doxytag: member="KURL::hasPath" ref="d24bdff9a1df6735fe544c96cd7c30c1" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::hasPath           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if this URL has a path included in it. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if there is a non-empty path</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> <p>
<a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00591">591</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="dd38e3181b6ebf71290f0353d6630518"></a><!-- doxytag: member="KURL::hasRef" ref="dd38e3181b6ebf71290f0353d6630518" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::hasRef           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if the URL has a reference part. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the URL has a reference part. In a URL like <code>"http://www.kde.org/kdebase.tar#tar:/README"</code> it would return <code>true</code> as well</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#53f4194e147b11b678760340d62b3043">ref()</a> <p>
<a class="el" href="classKURL.html#f531d16bdf3ac9a5a8ed27e16f61ebd7">setRef()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00758">758</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="090c7e6d5d6293a6cbdde374bc1ebaeb"></a><!-- doxytag: member="KURL::hasSubURL" ref="090c7e6d5d6293a6cbdde374bc1ebaeb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::hasSubURL           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if the URL has any sub URLs. 
<p>
See <a class="el" href="classKURL.html#411d9ebf2f0c66e58721776271537316">split()</a> for examples for sub URLs.<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the file has at least one sub URL</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#411d9ebf2f0c66e58721776271537316">split()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01442">1442</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="2c6b8f18351722e9280b99d869572989"></a><!-- doxytag: member="KURL::hasUser" ref="2c6b8f18351722e9280b99d869572989" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::hasUser           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if this URL has a user name included in it. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the URL has an non-empty user name</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#e5459bd5b7101d5bbfbff17ce2a43027">user()</a> <p>
<a class="el" href="classKURL.html#3ee8660de05aaac5e90893ca87ab07fe">setUser()</a> <p>
<a class="el" href="classKURL.html#b6aa391061678b69b314a6b403d0ace2">hasPass()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00425">425</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="df3ad35581a0ca25ecc16e073f8275ca"></a><!-- doxytag: member="KURL::host" ref="df3ad35581a0ca25ecc16e073f8275ca" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::host           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the decoded hostname included in the URL. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the name of the host or <code>QString::null</code> if no host is set</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#fbf05cea61e7c6f3c5de6a467d5f0534">setHost()</a> <p>
<a class="el" href="classKURL.html#e086bae03d0eb7b01c1d4775ff008734">hasHost()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00477">477</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="ed95d74660e8514cf91a9948ced8108c"></a><!-- doxytag: member="KURL::htmlRef" ref="ed95d74660e8514cf91a9948ced8108c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::htmlRef           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns decoded the HTML-style reference (the part of the URL after <code>'#'</code>). 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the HTML-style reference</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#27c969dca60a800d96238ed18337d008">encodedHtmlRef()</a> <p>
<a class="el" href="classKURL.html#bd27cfe74e1c54f0e1f43958d102f103">setHTMLRef()</a> <p>
<a class="el" href="classKURL.html#55f47b57289effd8e4bc7dc945b5b9f9">hasHTMLRef()</a> <p>
<a class="el" href="classKURL.html#411d9ebf2f0c66e58721776271537316">split()</a> <p>
<a class="el" href="classKURL.html#090c7e6d5d6293a6cbdde374bc1ebaeb">hasSubURL()</a> <p>
<a class="el" href="classKURL.html#53f4194e147b11b678760340d62b3043">ref()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01895">1895</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="1435c4cc9e9cda44c3490eba7a351101"></a><!-- doxytag: member="KURL::htmlURL" ref="1435c4cc9e9cda44c3490eba7a351101" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::htmlURL           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the URL as string, escaped for HTML. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>a human readable URL, with no non-necessary encodings/escaped characters which is HTML encoded for safe inclusion in HTML or rich text. Password will not be shown.</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL()</a> <p>
<a class="el" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url()</a> <p>
<a class="el" href="classKURL.html#38ca30778962db93d7b47200b8e1578f">pathOrURL()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01619">1619</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="f10f805c72d7223d88d7499fc5f39bd2"></a><!-- doxytag: member="KURL::isEmpty" ref="f10f805c72d7223d88d7499fc5f39bd2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::isEmpty           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if the <a class="el" href="classKURL.html">KURL</a> is empty. 
<p>
An empty URL has neither path nor protocol set.<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the URL is empty</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#d24bdff9a1df6735fe544c96cd7c30c1">hasPath()</a> <p>
<a class="el" href="classKURL.html#4be1d1602a1d0f0afeee230167ebfdc4">protocol()</a> <p>
<a class="el" href="classKURL.html#d8b823d40572ca24b6983d868847c251">isValid()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00633">633</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="942448c47652c6453f3c6ce59ae62731"></a><!-- doxytag: member="KURL::isLocalFile" ref="942448c47652c6453f3c6ce59ae62731" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::isLocalFile           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if the file is local. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the file is a plain local file and has no filter protocols attached to it </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01369">1369</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="d4df233237b4d9e5f4fc53f909741142"></a><!-- doxytag: member="KURL::isMalformed" ref="d4df233237b4d9e5f4fc53f909741142" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KDE_DEPRECATED bool KURL::isMalformed           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if the URL is malformed. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the URL is malformed. This function does <em>not</em> test whether sub URLs are well-formed as well</dd></dl>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000064">Deprecated:</a></b></dt><dd>Use !isValid() instead</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#d8b823d40572ca24b6983d868847c251">isValid()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00827">827</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="969ac5a396980191f14a459e1d0d6000"></a><!-- doxytag: member="KURL::isParentOf" ref="969ac5a396980191f14a459e1d0d6000" args="(const KURL &amp;u) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::isParentOf           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if the given URL is parent of this URL. 
<p>
For instance, <code>"ftp://host/dir/"</code> is a parent of <code>"ftp://host/dir/subdir/subsubdir/"</code>.<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if this URL is a parent of <code>u</code> (or the same URL as <code>u</code>)</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a> <p>
<a class="el" href="classKURL.html#7d2e31526d61ed97a0132768d0270a3f">cd()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01187">1187</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="a45474b065df2aa16142dc77500d6971"></a><!-- doxytag: member="KURL::isRelativeURL" ref="a45474b065df2aa16142dc77500d6971" args="(const QString &amp;_url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::isRelativeURL           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if a given URL is a relative as opposed to an absolute URL. 
<p>
Convenience function.<p>
Returns whether <code>_url</code> is likely to be a "relative" URL instead of an "absolute" URL.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url</em>&nbsp;</td><td>the URL to examine </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> when the URL is likely to be "relative", <code>false</code> otherwise</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#7f7c85dfee5668f24aba599b7f05f175">relativeURL()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00404">404</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="d8b823d40572ca24b6983d868847c251"></a><!-- doxytag: member="KURL::isValid" ref="d8b823d40572ca24b6983d868847c251" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::isValid           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if the URL is well formed. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd><code>false</code> if the URL is malformed. This function does <em>not</em> test whether sub URLs are well-formed as well </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00816">816</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="95df01647f7ddf97be8c3ab018fd1f36"></a><!-- doxytag: member="KURL::join" ref="95df01647f7ddf97be8c3ab018fd1f36" args="(const List &amp;_list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL.html">KURL</a> KURL::join           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL_1_1List.html">List</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_list</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Joins a list of URLs into a single URL with sub URLs. 
<p>
Reverses <a class="el" href="classKURL.html#411d9ebf2f0c66e58721776271537316">split()</a>. Only the first URL may have a reference. This reference is considered to be HTML-like and is appended at the end of the resulting joined URL.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_list</em>&nbsp;</td><td>the list to join</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the joined URL or an invalid URL if the list is empty</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#411d9ebf2f0c66e58721776271537316">split()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01661">1661</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="3e2062c66a979effb804ea8444e1f159"></a><!-- doxytag: member="KURL::operator!=" ref="3e2062c66a979effb804ea8444e1f159" args="(const QString &amp;_u) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::operator!=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if this URL is different from the one given as a string. 
<p>
Tests by negating the result of operator==(const QString &amp;)<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_u</em>&nbsp;</td><td>the URL to compare to</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the negated result of operator==(const QString &amp;)</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd>operator==(const QString &amp;) <p>
<a class="el" href="classKURL.html#c60bdbc98263f470f5955ffc79cf95c3">operator&lt;()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l01444">1444</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="0c6c2fbd2f62435d0fc5fdb675edf459"></a><!-- doxytag: member="KURL::operator!=" ref="0c6c2fbd2f62435d0fc5fdb675edf459" args="(const KURL &amp;_u) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::operator!=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if this URL is different from the given one. 
<p>
Tests by negating the result of <a class="el" href="classKURL.html#16d4527245ef6a50d158240936be4775">operator==()</a><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_u</em>&nbsp;</td><td>the URL to compare to</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the negated result of <a class="el" href="classKURL.html#16d4527245ef6a50d158240936be4775">operator==()</a></dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#16d4527245ef6a50d158240936be4775">operator==()</a> <p>
<a class="el" href="classKURL.html#c60bdbc98263f470f5955ffc79cf95c3">operator&lt;()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l01430">1430</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="c60bdbc98263f470f5955ffc79cf95c3"></a><!-- doxytag: member="KURL::operator&lt;" ref="c60bdbc98263f470f5955ffc79cf95c3" args="(const KURL &amp;_u) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::operator&lt;           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if this URL is less than the given URL. 
<p>
The current URL is consideres <code>"less than"</code> then <code>_u</code> if (tested in this order):<ul>
<li>it is not valid but <code>_u</code> is. See <a class="el" href="classKURL.html#d8b823d40572ca24b6983d868847c251">isValid()</a></li><li>its protocol is "less than" <code>_u's</code> protocol. See <a class="el" href="classKURL.html#4be1d1602a1d0f0afeee230167ebfdc4">protocol()</a></li><li>its host is "less than" <code>_u's</code> host. See <a class="el" href="classKURL.html#df3ad35581a0ca25ecc16e073f8275ca">host()</a></li><li>its port is "less than" <code>_u's</code> port. See <a class="el" href="classKURL.html#205598afc6842db13e4ad996ba1d9422">port()</a></li><li>its path is "less than" <code>_u's</code> path. See <a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a></li><li>its encoded query is "less than" <code>_u's</code> encoded query. See <a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query()</a></li><li>its endoded reference is "less than" <code>_u's</code> encoded reference. See <a class="el" href="classKURL.html#53f4194e147b11b678760340d62b3043">ref()</a></li><li>its username is "less than" <code>_u's</code> username. See <a class="el" href="classKURL.html#e5459bd5b7101d5bbfbff17ce2a43027">user()</a></li><li>its password is "less than" <code>_u's</code> password. See <a class="el" href="classKURL.html#0bd95e7e1a54ab12b56439495f00bff6">pass()</a></li></ul>
<p>
Examples: <div class="fragment"><pre class="fragment"> <a class="code" href="classKURL.html">KURL</a> url1;
 <a class="code" href="classKURL.html">KURL</a> url2;

 <span class="keywordtype">bool</span> lessThan = url1 &lt; url2; <span class="comment">// false. Both invalid, no protocols</span>

 url2.<a class="code" href="classKURL.html#8992baac621d32c2aed7c97a26362b8d">setProtocol</a>( QString::null );
 lessThan = url1 &lt; url2;            <span class="comment">// true. url2 is valid because of setProtocol()</span>

 url1.<a class="code" href="classKURL.html#8992baac621d32c2aed7c97a26362b8d">setProtocol</a>( QString::null );
 lessThan = url1 &lt; url2;            <span class="comment">// false. Both valid and everything empty</span>

 url1.<a class="code" href="classKURL.html#8992baac621d32c2aed7c97a26362b8d">setProtocol</a>( <span class="stringliteral">"http"</span> );
 url2.setProtocol( <span class="stringliteral">"https"</span> );
 lessThan = url1 &lt; url2;            <span class="comment">// true. "http" &lt; "https"</span>

 url2.<a class="code" href="classKURL.html#fbf05cea61e7c6f3c5de6a467d5f0534">setHost</a>( <span class="stringliteral">"api.kde.org"</span> );
 url2.setProtocol( <span class="stringliteral">"http"</span> );
 url2.setProtocol( <span class="stringliteral">"www.kde.org"</span> );
 lessThan = url1 &lt; url2;            <span class="comment">// true. protocols equal and "api" &lt; "www"</span>

 url1.<a class="code" href="classKURL.html#8992baac621d32c2aed7c97a26362b8d">setProtocol</a>( <span class="stringliteral">"https"</span> );
 url2.setProtocol( <span class="stringliteral">"http"</span> );
 lessThan = url1 &lt; url2;            <span class="comment">// false. "https" &gt; "http". host doesn't matter yet</span>
</pre></div><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_u</em>&nbsp;</td><td>the URL to compare to</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the URL is less than <code>_u</code>. Otherwise <code>false</code> (equal or greater than)</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#16d4527245ef6a50d158240936be4775">operator==()</a> <p>
<a class="elRef" doxygen="qt.tag:" href="qstring.html#compare">QString::compare()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01085">1085</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="678569f3199c222f99701bdbfb091ea3"></a><!-- doxytag: member="KURL::operator=" ref="678569f3199c222f99701bdbfb091ea3" args="(const QUrl &amp;u)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL.html">KURL</a> &amp; KURL::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qurl.html">QUrl</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Assigns the URL, given as a <a class="elRef" doxygen="qt.tag:" href="qt.html">Qt</a> URL, to this one. 
<p>
This will reset the current URL and parse the given string.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>u</em>&nbsp;</td><td>the <a class="elRef" doxygen="qt.tag:" href="qt.html">Qt</a> URL to take the values from</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a reference to this URL (*this)</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a> <p>
<a class="el" href="classKURL.html#da858afd3328c262dc57ec6a31934013">KURL(const QUrl &amp;)</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01050">1050</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="43257e96a858a015009ea2816b88f69c"></a><!-- doxytag: member="KURL::operator=" ref="43257e96a858a015009ea2816b88f69c" args="(const char *_url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL.html">KURL</a> &amp; KURL::operator=           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>_url</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Assigns the URL, given as a C string, to this one. 
<p>
This will reset the current URL and parse the given string. See the similar constructor for known limitations.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url</em>&nbsp;</td><td>the C string to parse for values</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a reference to this URL (*this)</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a> <p>
<a class="el" href="classKURL.html#dbc4e9b6cb078e26e5b220b1fe9b3cfa">KURL(const char *, int)</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01041">1041</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="7803b7119921a664d389e9c85b7742e0"></a><!-- doxytag: member="KURL::operator=" ref="7803b7119921a664d389e9c85b7742e0" args="(const QString &amp;_url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL.html">KURL</a> &amp; KURL::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Assigns the URL, given as a string, to this one. 
<p>
This will reset the current URL and parse the given string. See the similar constructor for known limitations.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url</em>&nbsp;</td><td>the <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> to parse for values</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a reference to this URL (*this)</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a> <p>
<a class="el" href="classKURL.html#78d5d0d9c4e19289b7ff74f988538cc7">KURL(const QString &amp;, int)</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01033">1033</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="86078b56b4e196780e343001263d4545"></a><!-- doxytag: member="KURL::operator=" ref="86078b56b4e196780e343001263d4545" args="(const KURL &amp;_u)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL.html">KURL</a> &amp; KURL::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Copies the values of the given URL into this one. 
<p>
Just assigns each member using the member's assignment operator.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_u</em>&nbsp;</td><td>the URL to take the values from</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a reference to this URL (*this)</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01068">1068</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="405d73554b97daca3568a0a554e2cc58"></a><!-- doxytag: member="KURL::operator==" ref="405d73554b97daca3568a0a554e2cc58" args="(const QString &amp;_u) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::operator==           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if this URL is equal to the one given as a string. 
<p>
Creates a <a class="el" href="classKURL.html">KURL</a> instance for <code>_u</code> and compares with that using the equality operator for two KURLs.<p>
See the respective constructor for known limitations.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_u</em>&nbsp;</td><td>the string to compare to</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if equal and neither this URL nor <code>_u</code> is malformed. Otherwise <code>false</code> </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#78d5d0d9c4e19289b7ff74f988538cc7">KURL(const QString &amp;, int)</a> <p>
operator==(const KURL &amp;) <p>
<a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a> <p>
<a class="el" href="classKURL.html#d8b823d40572ca24b6983d868847c251">isValid()</a> <p>
<a class="el" href="classKURL.html#0c6c2fbd2f62435d0fc5fdb675edf459">operator!=()</a> <p>
<a class="el" href="classKURL.html#c60bdbc98263f470f5955ffc79cf95c3">operator&lt;()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01149">1149</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="16d4527245ef6a50d158240936be4775"></a><!-- doxytag: member="KURL::operator==" ref="16d4527245ef6a50d158240936be4775" args="(const KURL &amp;_u) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KURL::operator==           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_u</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if this URL is equal to the given one. 
<p>
Tests each member for equality unless one of the URLs is invalid in which case they are not considered equal (even if both are invalid).<p>
Same as <a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a> when used with <code>ignore_trailing</code> set to <code>false</code> (default)<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_u</em>&nbsp;</td><td>the URL to compare to</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if equal and neither this URL nor <code>_u</code> is malformed. Otherwise <code>false</code> </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#373b2cd2d283db2a94f7cf00483d5111">equals()</a> <p>
<a class="el" href="classKURL.html#d8b823d40572ca24b6983d868847c251">isValid()</a> <p>
<a class="el" href="classKURL.html#0c6c2fbd2f62435d0fc5fdb675edf459">operator!=()</a> <p>
<a class="el" href="classKURL.html#c60bdbc98263f470f5955ffc79cf95c3">operator&lt;()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01126">1126</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="b3e311c1974098c707b94e7b7eb2ec74"></a><!-- doxytag: member="KURL::parse" ref="b3e311c1974098c707b94e7b7eb2ec74" args="(const QString &amp;_url, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::parse           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parses the given string and fills the URL's values on success. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url</em>&nbsp;</td><td>the string to parse </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a> </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00638">638</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="9266785d84b7b41c78b1336592198a86"></a><!-- doxytag: member="KURL::parseMailto" ref="9266785d84b7b41c78b1336592198a86" args="(const QString &amp;_url, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::parseMailto           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parses the given string and fills the URL's values on success. 
<p>
Treats the string as a <code>"mailto:"</code> URI.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url</em>&nbsp;</td><td>the string to parse </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a> </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00741">741</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="4429a776e21ea5a2112c1dad318a8d15"></a><!-- doxytag: member="KURL::parseRawURI" ref="4429a776e21ea5a2112c1dad318a8d15" args="(const QString &amp;_url, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::parseRawURI           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parses the given string and fills the URL's values on success. 
<p>
Treats the string as a generic URI.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url</em>&nbsp;</td><td>the string to parse </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a> </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00708">708</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="1005b451c6beee15b87bfe498b2e1f90"></a><!-- doxytag: member="KURL::parseURL" ref="1005b451c6beee15b87bfe498b2e1f90" args="(const QString &amp;_url, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::parseURL           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Parses the given string and fills the URL's values on success. 
<p>
Treats the string as an URL.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url</em>&nbsp;</td><td>the string to parse </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a> </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00760">760</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="0bd95e7e1a54ab12b56439495f00bff6"></a><!-- doxytag: member="KURL::pass" ref="0bd95e7e1a54ab12b56439495f00bff6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::pass           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the decoded password (corresponding to <a class="el" href="classKURL.html#e5459bd5b7101d5bbfbff17ce2a43027">user()</a>) included in the URL. 
<p>
<dl compact><dt><b>Note:</b></dt><dd>a password can only appear in a URL string if you also set a user, see <a class="el" href="classKURL.html#3ee8660de05aaac5e90893ca87ab07fe">setUser()</a>.</dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>the password or <code>QString::null</code> if it does not exist</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#34346c1a8873adc586efffb6d1376154">setPass()</a> <p>
<a class="el" href="classKURL.html#b6aa391061678b69b314a6b403d0ace2">hasPass()</a> <p>
<a class="el" href="classKURL.html#2c6b8f18351722e9280b99d869572989">hasUser()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00440">440</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="0fd6a984e0f2e0fe38e1f67a11a98ff9"></a><!-- doxytag: member="KURL::path" ref="0fd6a984e0f2e0fe38e1f67a11a98ff9" args="(int _trailing) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::path           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>_trailing</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the current decoded path. 
<p>
This does <em>not</em> include the query, see <a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query()</a> for accessing it.<p>
The <code>_trailing</code> parameter allows to ensure the existance or absence of the last (trailing) <code>'/'</code> character in the path. If the URL has no path, then no <code>'/'</code> is added anyway. And on the other side: if the path is just <code>"/"</code>, then this character won't be stripped.<p>
Reason: <code>"ftp://weis@host"</code> means something completely different than <code>"ftp://weis@host/"</code>. So adding or stripping the '/' would really alter the URL, while <code>"ftp://host/path"</code> and <code>"ftp://host/path/"</code> mean the same directory.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_trailing</em>&nbsp;</td><td>May be ( <code>-1</code>, <code>0</code>, <code>+1</code> ). <code>-1</code> strips a trailing <code>'/'</code>, <code>+1</code> adds a trailing <code>'/'</code> if there is none yet and <code>0</code> returns the path unchanged</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the path of the URL (without query), or <code>QString::null</code> if no path is set</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> <p>
<a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath()</a> <p>
<a class="el" href="classKURL.html#d24bdff9a1df6735fe544c96cd7c30c1">hasPath()</a> <p>
<a class="el" href="classKURL.html#13576bca04c106cb92a7c33c36495654">adjustPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01364">1364</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="dd464ac157c5ee326847ddaef7ae2d19"></a><!-- doxytag: member="KURL::path" ref="dd464ac157c5ee326847ddaef7ae2d19" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::path           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the current decoded path. 
<p>
This does <em>not</em> include the query.<p>
<dl compact><dt><b>Returns:</b></dt><dd>the path of the URL (without query), or <code>QString::null</code> if no path is set</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd>path(int) <p>
<a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath()</a> <p>
<a class="el" href="classKURL.html#d24bdff9a1df6735fe544c96cd7c30c1">hasPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00532">532</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="38ca30778962db93d7b47200b8e1578f"></a><!-- doxytag: member="KURL::pathOrURL" ref="38ca30778962db93d7b47200b8e1578f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::pathOrURL           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the URL as a string depending if it is a local file. 
<p>
It will be either the URL (as <a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL()</a> would return) or, when the URL is a local file without query or ref, the <a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a>.<p>
Use this method, together with its opposite, <a class="el" href="classKURL.html#5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL()</a>, to display and even let the user edit URLs.<p>
<dl compact><dt><b>Returns:</b></dt><dd>the path or URL string depending on its properties</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL()</a> <p>
<a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> <p>
<a class="el" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url()</a> <p>
<a class="el" href="classKURL.html#942448c47652c6453f3c6ce59ae62731">isLocalFile()</a></dd></dl>
<dl compact><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01610">1610</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="205598afc6842db13e4ad996ba1d9422"></a><!-- doxytag: member="KURL::port" ref="205598afc6842db13e4ad996ba1d9422" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned short int KURL::port           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the port number included in the URL. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the port number or <code>0</code> if there is no port number specified in the URL</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#872ff8bd98d746e3356d9331d55421e8">setPort()</a> <p>
<a class="el" href="classKURL.html#df3ad35581a0ca25ecc16e073f8275ca">host()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00509">509</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="c12929211bbe1263cfad92d6e246d501"></a><!-- doxytag: member="KURL::prettyURL" ref="c12929211bbe1263cfad92d6e246d501" args="(int _trailing, AdjustementFlags _flags) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::prettyURL           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>_trailing</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKURL.html#316e98d10f9c4dfd570f99c179e8b621">AdjustementFlags</a>&nbsp;</td>
          <td class="paramname"> <em>_flags</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the URL as string in human-friendly format Example:. 
<p>
<div class="fragment"><pre class="fragment"> http:<span class="comment">//localhost:8080/test.cgi?test=hello world&amp;name=fred</span>
</pre></div><p>
Does <em>not</em> contain the password if the URL has one, use <a class="el" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url()</a> if you need to have it in the string.<p>
The <code>_trailing</code> parameter allows to ensure the existance or absence of the last (trailing) <code>'/'</code> character in the path. If the URL has no path, then no <code>'/'</code> is added anyway. And on the other side: if the path is just <code>"/"</code>, then this character won't be stripped.<p>
Reason: <code>"ftp://weis@host"</code> means something completely different than <code>"ftp://weis@host/"</code>. So adding or stripping the '/' would really alter the URL, while <code>"ftp://host/path"</code> and <code>"ftp://host/path/"</code> mean the same directory.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_trailing</em>&nbsp;</td><td>May be ( <code>-1</code>, <code>0</code>, <code>+1</code> ). <code>-1</code> strips a trailing <code>'/'</code>, <code>+1</code> adds a trailing <code>'/'</code> if there is none yet and <code>0</code> returns the path unchanged </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_flags</em>&nbsp;</td><td>if StripFileProtocol, <code>"file://"</code> will be stripped. The use of this method is now discouraged, better use <a class="el" href="classKURL.html#38ca30778962db93d7b47200b8e1578f">pathOrURL()</a>.</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a human readable URL, with no non-necessary encodings/escaped characters. Password will not be shown</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL()</a> <p>
<a class="el" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url()</a> <p>
<a class="el" href="classKURL.html#38ca30778962db93d7b47200b8e1578f">pathOrURL()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01598">1598</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="9382bc0e035124e884f755cff962530f"></a><!-- doxytag: member="KURL::prettyURL" ref="9382bc0e035124e884f755cff962530f" args="(int _trailing=0) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::prettyURL           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>_trailing</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the URL as string in human-friendly format. 
<p>
Example: <div class="fragment"><pre class="fragment"> http:<span class="comment">//localhost:8080/test.cgi?test=hello world&amp;name=fred</span>
</pre></div><p>
Does <em>not</em> contain the password if the URL has one, use <a class="el" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url()</a> if you need to have it in the string.<p>
The <code>_trailing</code> parameter allows to ensure the existance or absence of the last (trailing) <code>'/'</code> character in the path. If the URL has no path, then no <code>'/'</code> is added anyway. And on the other side: if the path is just <code>"/"</code>, then this character won't be stripped.<p>
Reason: <code>"ftp://weis@host"</code> means something completely different than <code>"ftp://weis@host/"</code>. So adding or stripping the '/' would really alter the URL, while <code>"ftp://host/path"</code> and <code>"ftp://host/path/"</code> mean the same directory.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_trailing</em>&nbsp;</td><td>May be ( <code>-1</code>, <code>0</code>, <code>+1</code> ). <code>-1</code> strips a trailing <code>'/'</code>, <code>+1</code> adds a trailing <code>'/'</code> if there is none yet and <code>0</code> returns the path unchanged </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a human readable URL, with no non-necessary encodings/escaped characters. Password will not be shown</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url()</a> <p>
<a class="el" href="classKURL.html#38ca30778962db93d7b47200b8e1578f">pathOrURL()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01525">1525</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="4be1d1602a1d0f0afeee230167ebfdc4"></a><!-- doxytag: member="KURL::protocol" ref="4be1d1602a1d0f0afeee230167ebfdc4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::protocol           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the protocol for the URL. 
<p>
Examples for a protocol string are <code>"file"</code>, <code>"http"</code>, etc. but also <code>"mailto:"</code> and other pseudo protocols.<p>
<dl compact><dt><b>Returns:</b></dt><dd>the protocol of the URL, does not include the colon. If the URL is malformed, <code>QString::null</code> will be returned</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#8992baac621d32c2aed7c97a26362b8d">setProtocol()</a> <p>
<a class="el" href="classKURL.html#d8b823d40572ca24b6983d868847c251">isValid()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00367">367</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="0a28c0873806d04a7fd4e19feeb4bd63"></a><!-- doxytag: member="KURL::query" ref="0a28c0873806d04a7fd4e19feeb4bd63" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::query           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the encoded query of the URL. 
<p>
The query may contain the <code>'0'</code> character. If a query is present it always starts with a <code>'</code>?'. A single <code>'</code>?' means an empty query. An empty string means no query.<p>
<dl compact><dt><b>Returns:</b></dt><dd>the encoded query or <code>QString::null</code> if there is none</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#9ffeaee79924b4156f5816fc95f874e5">setQuery()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02066">2066</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="84d79633bc77b8dda2a91977a6ba0594"></a><!-- doxytag: member="KURL::queryItem" ref="84d79633bc77b8dda2a91977a6ba0594" args="(const QString &amp;item, int encoding_hint) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::queryItem           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the value of a certain query item. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>item</em>&nbsp;</td><td>item whose value we want </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of encoding of query. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the value of the given query item name or <code>QString::null</code> if the specified item does not exist</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#324fac18c2e755dc1cc0b479b75a1bbb">addQueryItem()</a> <p>
<a class="el" href="classKURL.html#86529c33c0fd3f281fdc2e8b01f2d84c">removeQueryItem()</a> <p>
<a class="el" href="classKURL.html#9ae23423c525716220481cfcea51b5fd">queryItems()</a> <p>
<a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02182">2182</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="24115e5a48e1ea3a5247002dcbf3a18e"></a><!-- doxytag: member="KURL::queryItem" ref="24115e5a48e1ea3a5247002dcbf3a18e" args="(const QString &amp;item) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::queryItem           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the value of a certain query item. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>item</em>&nbsp;</td><td>item whose value we want</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the value of the given query item name or <code>QString::null</code> if the specified item does not exist</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#324fac18c2e755dc1cc0b479b75a1bbb">addQueryItem()</a> <p>
<a class="el" href="classKURL.html#86529c33c0fd3f281fdc2e8b01f2d84c">removeQueryItem()</a> <p>
<a class="el" href="classKURL.html#9ae23423c525716220481cfcea51b5fd">queryItems()</a> <p>
<a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02177">2177</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="e52346d421301e1108b6c19cfd33294f"></a><!-- doxytag: member="KURL::queryItems" ref="e52346d421301e1108b6c19cfd33294f" args="(int options, int encoding_hint) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qmap.html">QMap</a>&lt; <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a>, <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &gt; KURL::queryItems           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the list of query items as a map mapping keys to values. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>options</em>&nbsp;</td><td>any of QueryItemsOptions <em>OR</em>ed together </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of encoding of query. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the map of query items or the empty map if the URL has no query items</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#24115e5a48e1ea3a5247002dcbf3a18e">queryItem()</a> <p>
<a class="el" href="classKURL.html#324fac18c2e755dc1cc0b479b75a1bbb">addQueryItem()</a> <p>
<a class="el" href="classKURL.html#86529c33c0fd3f281fdc2e8b01f2d84c">removeQueryItem()</a> <p>
<a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query()</a></dd></dl>
<dl compact><dt><b>Since:</b></dt><dd>3.1 </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02146">2146</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="53f4194e147b11b678760340d62b3043"></a><!-- doxytag: member="KURL::ref" ref="53f4194e147b11b678760340d62b3043" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::ref           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the encoded reference of the URL. 
<p>
The reference is <em>never</em> decoded automatically.<p>
<dl compact><dt><b>Returns:</b></dt><dd>the undecoded reference, or <code>QString::null</code> if there is none</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#f531d16bdf3ac9a5a8ed27e16f61ebd7">setRef()</a> <p>
<a class="el" href="classKURL.html#dd38e3181b6ebf71290f0353d6630518">hasRef()</a> <p>
<a class="el" href="classKURL.html#ed95d74660e8514cf91a9948ced8108c">htmlRef()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00733">733</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="8cc9fd7108ba1c161dcc88993e8e4923"></a><!-- doxytag: member="KURL::relativePath" ref="8cc9fd7108ba1c161dcc88993e8e4923" args="(const QString &amp;base_dir, const QString &amp;path, bool *isParent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::relativePath           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>base_dir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&nbsp;</td>
          <td class="paramname"> <em>isParent</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a path relative to a base path for a given input path. 
<p>
Convenience function<p>
Returns a relative path based on <code>base_dir</code> that points to <code>path</code>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>base_dir</em>&nbsp;</td><td>the base directory to derive from </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>the new target directory </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>isParent</em>&nbsp;</td><td>an optional pointer to a boolean which, if provided, will be set to reflect whether <code>path</code> has <code>base_dir</code> as a parent dir</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#7f7c85dfee5668f24aba599b7f05f175">relativeURL()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02292">2292</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="7f7c85dfee5668f24aba599b7f05f175"></a><!-- doxytag: member="KURL::relativeURL" ref="7f7c85dfee5668f24aba599b7f05f175" args="(const KURL &amp;base_url, const KURL &amp;url, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::relativeURL           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>base_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates an URL relative to a base URL for a given input URL. 
<p>
Convenience function<p>
Returns a "relative URL" based on <code>base_url</code> that points to <code>url</code>.<p>
If no "relative URL" can be created, e.g. because the protocol and/or hostname differ between <code>base_url</code> and <code>url</code> an absolute URL is returned.<p>
<dl compact><dt><b>Note:</b></dt><dd>if <code>base_url</code> represents a directory, it should contain a trailing slash</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>base_url</em>&nbsp;</td><td>the URL to derive from </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>url</em>&nbsp;</td><td>the URL to point to relatively from <code>base_url</code> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a45474b065df2aa16142dc77500d6971">isRelativeURL()</a> <p>
<a class="el" href="classKURL.html#8cc9fd7108ba1c161dcc88993e8e4923">relativePath()</a> <p>
<a class="el" href="classKURL.html#13576bca04c106cb92a7c33c36495654">adjustPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02306">2306</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="86529c33c0fd3f281fdc2e8b01f2d84c"></a><!-- doxytag: member="KURL::removeQueryItem" ref="86529c33c0fd3f281fdc2e8b01f2d84c" args="(const QString &amp;_item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::removeQueryItem           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_item</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Removea an item from the query. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_item</em>&nbsp;</td><td>name of item to remove</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#324fac18c2e755dc1cc0b479b75a1bbb">addQueryItem()</a> <p>
<a class="el" href="classKURL.html#24115e5a48e1ea3a5247002dcbf3a18e">queryItem()</a> <p>
<a class="el" href="classKURL.html#9ae23423c525716220481cfcea51b5fd">queryItems()</a> <p>
<a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02208">2208</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="508a4c6026a031a52d4c854a26cce536"></a><!-- doxytag: member="KURL::reset" ref="508a4c6026a031a52d4c854a26cce536" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::reset           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Resets the members to their "null" state. 
<p>
All <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> members get reset to <code>QString::null</code>, the port to <code>0</code> the URIMode to <code>Auto</code> and the URL becomes invalid.<p>
This is like assigning a null URL, but more efficient as it doesn't require the temporary object.<p>
Called by constructors, assignment operators and the parse methods in case of a parsing error.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#d8b823d40572ca24b6983d868847c251">isValid()</a> <p>
<a class="el" href="classKURL.html#f10f805c72d7223d88d7499fc5f39bd2">isEmpty()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l00618">618</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="35ef4c9ffe4fa877f30c53ccfaf5a293"></a><!-- doxytag: member="KURL::setDirectory" ref="35ef4c9ffe4fa877f30c53ccfaf5a293" args="(const QString &amp;dir)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setDirectory           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>dir</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the directory of the path, leaving the filename empty. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dir</em>&nbsp;</td><td>the decoded directory to set</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#0ff924855867aa98d0cbb5f3f20f4f87">directory()</a> <p>
<a class="el" href="classKURL.html#8a068268c1128fea91eb2cc17ccad5ce">setFileName()</a> <p>
<a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02011">2011</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="ab26a52864a868ea2eddb5e9e7c9057e"></a><!-- doxytag: member="KURL::setEncodedPath" ref="ab26a52864a868ea2eddb5e9e7c9057e" args="(const QString &amp;_txt, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setEncodedPath           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_txt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the (already encoded) path of the URL. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_txt</em>&nbsp;</td><td>the new encoded path </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of <code>_txt</code> . See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#d243d1d3d12cdf0828b95203dc440284">setEncodedPathAndQuery()</a> <p>
<a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01335">1335</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="d243d1d3d12cdf0828b95203dc440284"></a><!-- doxytag: member="KURL::setEncodedPathAndQuery" ref="d243d1d3d12cdf0828b95203dc440284" args="(const QString &amp;_txt, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setEncodedPathAndQuery           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_txt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets both path and query of the URL in their encoded form. 
<p>
This is useful for HTTP. It looks first for <code>'</code>?' and decodes then, see <a class="el" href="classKURL.html#ab26a52864a868ea2eddb5e9e7c9057e">setEncodedPath()</a>. The encoded path is the concatenation of the current path and the query.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_txt</em>&nbsp;</td><td>the new encoded path and encoded query </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of original encoding of <code>_txt</code> . See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#12bb2c946469dafcc86989b2bca4dd4c">encodedPathAndQuery()</a> <p>
<a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath()</a> <p>
<a class="el" href="classKURL.html#9ffeaee79924b4156f5816fc95f874e5">setQuery()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01349">1349</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="c3baacf0bb1d8f98970ea301a576dcdd"></a><!-- doxytag: member="KURL::setFileEncoding" ref="c3baacf0bb1d8f98970ea301a576dcdd" args="(const QString &amp;encoding)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setFileEncoding           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>encoding</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds file encoding information. 
<p>
Adds encoding information to the URL by adding a <code>"charset"</code> parameter. If there is already a charset parameter, it will be replaced.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>encoding</em>&nbsp;</td><td>the encoding to add or <code>QString::null</code> to remove the encoding</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#49785c16a6ee9805236aaa210dfde124">fileEncoding()</a> <p>
<a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#codecForName">QTextCodec::codecForName()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01388">1388</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="8a068268c1128fea91eb2cc17ccad5ce"></a><!-- doxytag: member="KURL::setFileName" ref="8a068268c1128fea91eb2cc17ccad5ce" args="(const QString &amp;_txt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setFileName           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_txt</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the filename of the path. 
<p>
In comparison to <a class="el" href="classKURL.html#22950393da23aff8dc71dd86cdad9a1b">addPath()</a> this function does not assume that the current path is a directory. This is only assumed if the current path ends with <code>'/'</code>.<p>
If the current path ends with <code>'/'</code> then <code>_txt</code> is just appended, otherwise all text behind the last <code>'/'</code> in the current path is erased and <code>_txt</code> is appended then. It does not matter whether <code>_txt</code> starts with <code>'/'</code> or not.<p>
Any reference is reset.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_txt</em>&nbsp;</td><td>the filename to be set. It is considered to be decoded</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#0634d0fc02c9883ca164966b4764a692">fileName()</a> <p>
<a class="el" href="classKURL.html#35ef4c9ffe4fa877f30c53ccfaf5a293">setDirectory()</a> <p>
<a class="el" href="classKURL.html#6c0a0828b4b9f1126b13380076e2b2f3">setPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01219">1219</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="fbf05cea61e7c6f3c5de6a467d5f0534"></a><!-- doxytag: member="KURL::setHost" ref="fbf05cea61e7c6f3c5de6a467d5f0534" args="(const QString &amp;_txt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setHost           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_txt</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the hostname to include in the URL. 
<p>
Special characters in the hostname will appear encoded in the URL.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_txt</em>&nbsp;</td><td>the new name of the host or QString::null to remove the host</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#df3ad35581a0ca25ecc16e073f8275ca">host()</a> <p>
<a class="el" href="classKURL.html#e086bae03d0eb7b01c1d4775ff008734">hasHost()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01970">1970</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="bd27cfe74e1c54f0e1f43958d102f103"></a><!-- doxytag: member="KURL::setHTMLRef" ref="bd27cfe74e1c54f0e1f43958d102f103" args="(const QString &amp;_ref)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setHTMLRef           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_ref</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the decoded HTML-style reference. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_ref</em>&nbsp;</td><td>the new reference. This is considered to be <em>not</em> encoded in contrast to <a class="el" href="classKURL.html#f531d16bdf3ac9a5a8ed27e16f61ebd7">setRef()</a>. Use <code>QString::null</code> to remove it</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ed95d74660e8514cf91a9948ced8108c">htmlRef()</a> <p>
<a class="el" href="classKURL.html#55f47b57289effd8e4bc7dc945b5b9f9">hasHTMLRef()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01917">1917</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="34346c1a8873adc586efffb6d1376154"></a><!-- doxytag: member="KURL::setPass" ref="34346c1a8873adc586efffb6d1376154" args="(const QString &amp;_txt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setPass           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_txt</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the password (corresponding to <a class="el" href="classKURL.html#e5459bd5b7101d5bbfbff17ce2a43027">user()</a>) to include in the URL. 
<p>
Special characters in the password will appear encoded in the URL. <dl compact><dt><b>Note:</b></dt><dd>a password can only appear in a URL string if you also set a user, see <a class="el" href="classKURL.html#3ee8660de05aaac5e90893ca87ab07fe">setUser()</a>.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_txt</em>&nbsp;</td><td>the password to set or <code>QString::null</code> to remove the password</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#0bd95e7e1a54ab12b56439495f00bff6">pass()</a> <p>
<a class="el" href="classKURL.html#b6aa391061678b69b314a6b403d0ace2">hasPass()</a> <p>
<a class="el" href="classKURL.html#2c6b8f18351722e9280b99d869572989">hasUser()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01961">1961</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="6c0a0828b4b9f1126b13380076e2b2f3"></a><!-- doxytag: member="KURL::setPath" ref="6c0a0828b4b9f1126b13380076e2b2f3" args="(const QString &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setPath           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the decoded path of the URL. 
<p>
This does <em>not</em> changed the query, see <a class="el" href="classKURL.html#9ffeaee79924b4156f5816fc95f874e5">setQuery()</a> for that.<p>
The <code>path</code> is considered to be decoded, i.e. characters not allowed in path, for example <code>'</code>?' will be encoded and does not indicate the beginning of the query part. Something that might look encoded, like <code>"%3f"</code> will not become decoded.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>the new, decoded, path or <code>QString::null</code> to remove the path</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> <p>
path(int) <p>
<a class="el" href="classKURL.html#d24bdff9a1df6735fe544c96cd7c30c1">hasPath()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01997">1997</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="872ff8bd98d746e3356d9331d55421e8"></a><!-- doxytag: member="KURL::setPort" ref="872ff8bd98d746e3356d9331d55421e8" args="(unsigned short int _p)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setPort           </td>
          <td>(</td>
          <td class="paramtype">unsigned short int&nbsp;</td>
          <td class="paramname"> <em>_p</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the port number to include in the URL. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_p</em>&nbsp;</td><td>the new port number or <code>0</code> to have no port number</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#205598afc6842db13e4ad996ba1d9422">port()</a> <p>
<a class="el" href="classKURL.html#fbf05cea61e7c6f3c5de6a467d5f0534">setHost()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01992">1992</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="8992baac621d32c2aed7c97a26362b8d"></a><!-- doxytag: member="KURL::setProtocol" ref="8992baac621d32c2aed7c97a26362b8d" args="(const QString &amp;_txt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setProtocol           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_txt</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the protocol for the URL. 
<p>
Examples for a protocol string are <code>"file"</code>, <code>"http"</code>, etc. but also <code>"mailto:"</code> and other pseudo protocols.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_txt</em>&nbsp;</td><td>the new protocol of the URL (without colon)</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#4be1d1602a1d0f0afeee230167ebfdc4">protocol()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01944">1944</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="9ffeaee79924b4156f5816fc95f874e5"></a><!-- doxytag: member="KURL::setQuery" ref="9ffeaee79924b4156f5816fc95f874e5" args="(const QString &amp;_txt, int encoding_hint=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setQuery           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_txt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the encoded query of the URL. 
<p>
The query should start with a <code>'</code>?'. If it doesn't <code>'</code>?' is prepended.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_txt</em>&nbsp;</td><td>this is considered to be encoded. This has a good reason: the query may contain the <code>'0'</code> character</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of the encoding. Reserved, should be <code>0</code> . See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#0a28c0873806d04a7fd4e19feeb4bd63">query()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02019">2019</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="f531d16bdf3ac9a5a8ed27e16f61ebd7"></a><!-- doxytag: member="KURL::setRef" ref="f531d16bdf3ac9a5a8ed27e16f61ebd7" args="(const QString &amp;_txt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setRef           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_txt</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the encoded reference part (everything after <code>'#'</code>). 
<p>
This is considered to be encoded, i.e. characters that are not allowed as part of the reference will <em>not</em> be encoded.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_txt</em>&nbsp;</td><td>the encoded reference or <code>QString::null</code> to remove it</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#53f4194e147b11b678760340d62b3043">ref()</a> <p>
<a class="el" href="classKURL.html#dd38e3181b6ebf71290f0353d6630518">hasRef()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00746">746</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<a class="anchor" name="3ee8660de05aaac5e90893ca87ab07fe"></a><!-- doxytag: member="KURL::setUser" ref="3ee8660de05aaac5e90893ca87ab07fe" args="(const QString &amp;_txt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KURL::setUser           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_txt</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the user name (login, user id, etc) to include in the URL. 
<p>
Special characters in the user name will appear encoded in the URL. If there is a password associated with the user, it can be set using <a class="el" href="classKURL.html#34346c1a8873adc586efffb6d1376154">setPass()</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_txt</em>&nbsp;</td><td>the name of the user or <code>QString::null</code> to remove the user</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#e5459bd5b7101d5bbfbff17ce2a43027">user()</a> <p>
<a class="el" href="classKURL.html#2c6b8f18351722e9280b99d869572989">hasUser()</a> <p>
<a class="el" href="classKURL.html#b6aa391061678b69b314a6b403d0ace2">hasPass()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01952">1952</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="5345022be672d2d6c646826d0b1f6af0"></a><!-- doxytag: member="KURL::split" ref="5345022be672d2d6c646826d0b1f6af0" args="(const KURL &amp;_url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL_1_1List.html">KURL::List</a> KURL::split           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Splits nested URLs into a list of URLs. 
<p>
Example for a nested URL: <div class="fragment"><pre class="fragment"> file:<span class="comment">///home/weis/kde.tgz#gzip:/#tar:/kdebase</span>
</pre></div> A URL like <code>"http://www.kde.org#tar:/kde/README.hml#ref1"</code> will be split in <code>"http://www.kde.org#ref1"</code> and <code>"tar:/kde/README.html#ref1"</code>.<p>
That means in turn that <code>"#ref1"</code> is an HTML-style reference and not a new sub URL. Since HTML-style references mark a certain position in a document this reference is appended to every URL.<p>
The idea behind this is that browsers, for example, only look at the first URL while the rest is not of interest to them.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url</em>&nbsp;</td><td>the URL that has to be split</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>an empty list on error or the list of split URLs</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#090c7e6d5d6293a6cbdde374bc1ebaeb">hasSubURL()</a> <p>
<a class="el" href="classKURL.html#95df01647f7ddf97be8c3ab018fd1f36">join()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01624">1624</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="411d9ebf2f0c66e58721776271537316"></a><!-- doxytag: member="KURL::split" ref="411d9ebf2f0c66e58721776271537316" args="(const QString &amp;_url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL_1_1List.html">KURL::List</a> KURL::split           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Splits nested URLs into a list of URLs. 
<p>
Example for a nested URL: <div class="fragment"><pre class="fragment"> file:<span class="comment">///home/weis/kde.tgz#gzip:/#tar:/kdebase</span>
</pre></div> A URL like <code>"http://www.kde.org#tar:/kde/README.hml#ref1"</code> will be split in <code>"http://www.kde.org#ref1"</code> and <code>"tar:/kde/README.html#ref1"</code>.<p>
That means in turn that <code>"#ref1"</code> is an HTML-style reference and not a new sub URL. Since HTML-style references mark a certain position in a document this reference is appended to every URL.<p>
The idea behind this is that browsers, for example, only look at the first URL while the rest is not of interest to them.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url</em>&nbsp;</td><td>the URL that has to be split</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>an empty list on error or the list of split URLs</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#090c7e6d5d6293a6cbdde374bc1ebaeb">hasSubURL()</a> <p>
<a class="el" href="classKURL.html#78d5d0d9c4e19289b7ff74f988538cc7">KURL(const QString&amp;, int)</a> <p>
<a class="el" href="classKURL.html#95df01647f7ddf97be8c3ab018fd1f36">join()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01656">1656</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="cb769056af19c8c4b0458f9a6b317343"></a><!-- doxytag: member="KURL::upURL" ref="cb769056af19c8c4b0458f9a6b317343" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL.html">KURL</a> KURL::upURL           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the URL that is the best possible candidate for on level higher in the path hierachy. 
<p>
This function is useful to implement the "Up" button in a file manager for example. <a class="el" href="classKURL.html#7d2e31526d61ed97a0132768d0270a3f">cd()</a> never strips a sub-protocol. That means that if you are in <code>"file:///home/x.tgz#gzip:/#tar:/"</code> and hit the up button you expect to see <code>"file:///home"</code>. The algorithm tries to go up on the right-most URL. If that is not possible it strips the right most URL. It continues stripping URLs until it can go up.<p>
<dl compact><dt><b>Returns:</b></dt><dd>a URL that is a level higher</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#7d2e31526d61ed97a0132768d0270a3f">cd()</a> <p>
<a class="el" href="classKURL.html#411d9ebf2f0c66e58721776271537316">split()</a> <p>
<a class="el" href="classKURL.html#090c7e6d5d6293a6cbdde374bc1ebaeb">hasSubURL()</a> <p>
<a class="el" href="classKURL.html#dd464ac157c5ee326847ddaef7ae2d19">path()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01859">1859</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="5f99cb1b7d49f3ddb2a56aa036957269"></a><!-- doxytag: member="KURL::uriMode" ref="5f99cb1b7d49f3ddb2a56aa036957269" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KURL::uriMode           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the URI processing mode for the URL. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the URI processing mode set for this URL</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d25">URIMode</a> <p>
<a class="el" href="classKURL.html#d400be8a7ea5af29184581da39abe7ce">uriModeForProtocol()</a></dd></dl>
<dl compact><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02339">2339</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="d400be8a7ea5af29184581da39abe7ce"></a><!-- doxytag: member="KURL::uriModeForProtocol" ref="d400be8a7ea5af29184581da39abe7ce" args="(const QString &amp;protocol)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL.html#e02a2dbcced8e7219eec8d30bada0d25">KURL::URIMode</a> KURL::uriModeForProtocol           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>protocol</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Determines which URI mode is suitable for processing URIs of a given protocol. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>protocol</em>&nbsp;</td><td>the protocol name. See <a class="el" href="classKURL.html#4be1d1602a1d0f0afeee230167ebfdc4">protocol()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the URIMode suitable for the given protocol</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#5f99cb1b7d49f3ddb2a56aa036957269">uriMode()</a></dd></dl>
<dl compact><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02344">2344</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="af8593b924647a9db73016fbeab1812a"></a><!-- doxytag: member="KURL::url" ref="af8593b924647a9db73016fbeab1812a" args="(int _trailing=0, int encoding_hint=0) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::url           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>_trailing</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>encoding_hint</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the URL as string, with all escape sequences intact, encoded in a given charset. 
<p>
This is used in particular for encoding URLs in UTF-8 before using them in a drag and drop operation.<p>
<dl compact><dt><b>Note:</b></dt><dd>that the string returned by <a class="el" href="classKURL.html#af8593b924647a9db73016fbeab1812a">url()</a> will include the password of the URL. If you want to show the URL to the user, use <a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL()</a>.</dd></dl>
The <code>_trailing</code> parameter allows to ensure the existance or absence of the last (trailing) <code>'/'</code> character in the path. If the URL has no path, then no <code>'/'</code> is added anyway. And on the other side: if the path is just <code>"/"</code>, then this character won't be stripped.<p>
Reason: <code>"ftp://weis@host"</code> means something completely different than <code>"ftp://weis@host/"</code>. So adding or stripping the '/' would really alter the URL, while <code>"ftp://host/path"</code> and <code>"ftp://host/path/"</code> mean the same directory.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_trailing</em>&nbsp;</td><td>May be ( <code>-1</code>, <code>0</code>, <code>+1</code> ). <code>-1</code> strips a trailing <code>'/'</code>, <code>+1</code> adds a trailing <code>'/'</code> if there is none yet and <code>0</code> returns the path unchanged </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>encoding_hint</em>&nbsp;</td><td>MIB of encoding to use. See <a class="elRef" doxygen="qt.tag:" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the complete URL, with all escape sequences intact, encoded in a given charset</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#9382bc0e035124e884f755cff962530f">prettyURL()</a> <p>
<a class="el" href="classKURL.html#38ca30778962db93d7b47200b8e1578f">pathOrURL()</a> <p>
<a class="el" href="classKURL.html#1435c4cc9e9cda44c3490eba7a351101">htmlURL()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l01465">1465</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="e5459bd5b7101d5bbfbff17ce2a43027"></a><!-- doxytag: member="KURL::user" ref="e5459bd5b7101d5bbfbff17ce2a43027" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KURL::user           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the decoded user name (login, user id, etc) included in the URL. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the user name or <code>QString::null</code> if there is no user name</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#3ee8660de05aaac5e90893ca87ab07fe">setUser()</a> <p>
<a class="el" href="classKURL.html#2c6b8f18351722e9280b99d869572989">hasUser()</a> </dd></dl>

<p>
Definition at line <a class="el" href="kurl_8h-source.html#l00401">401</a> of file <a class="el" href="kurl_8h-source.html">kurl.h</a>.
</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="0b58ea663513546270fd380a811b209a"></a><!-- doxytag: member="KURL::urlcmp" ref="0b58ea663513546270fd380a811b209a" args="(const QString &amp;_url1, const QString &amp;_url2, bool _ignore_trailing, bool _ignore_ref)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool urlcmp           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>_ignore_trailing</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>_ignore_ref</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compares URLs. They are parsed, split and compared. Two malformed URLs with the same string representation are nevertheless considered to be unequal. That means no malformed URL equals anything else.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>_url1</em>&nbsp;</td><td>A reference URL </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_url2</em>&nbsp;</td><td>A URL that will be compared with the reference URL </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_ignore_trailing</em>&nbsp;</td><td>Described in <a class="el" href="classKURL.html#e52a2ef0548958a5e0586182016834da">KURL::cmp</a> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>_ignore_ref</em>&nbsp;</td><td>If true, disables comparison of HTML-style references. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02107">2107</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<a class="anchor" name="2694d0d7d254eacf3c39cf3eebe17eda"></a><!-- doxytag: member="KURL::urlcmp" ref="2694d0d7d254eacf3c39cf3eebe17eda" args="(const QString &amp;_url1, const QString &amp;_url2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool urlcmp           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>_url2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Compares URLs. They are parsed, split and compared. Two malformed URLs with the same string representation are nevertheless considered to be unequal. That means no malformed URL equals anything else. 
<p>
Definition at line <a class="el" href="kurl_8cpp-source.html#l02088">2088</a> of file <a class="el" href="kurl_8cpp-source.html">kurl.cpp</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kurl_8h-source.html">kurl.h</a><li><a class="el" href="kurl_8cpp-source.html">kurl.cpp</a></ul>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kdecore</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="modules.html">Modules</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKAboutData.html">kaboutdata</option>,  <option value="classKAboutPerson.html">kaboutperson</option>,  <option value="classKAboutTranslator.html">kabouttranslator</option>,  <option value="classKAccel.html">kaccel</option>,  <option value="classKAccelAction.html">kaccelaction</option>,  <option value="classKAccelActions.html">kaccelactions</option>,  <option value="classKAccelBase.html">kaccelbase</option>,  <option value="classKAcceleratorManager.html">kacceleratormanager</option>,  <option value="classKAccelManagerAlgorithm.html">kaccelmanageralgorithm</option>,  <option value="classKAccelPrivate.html">kaccelprivate</option>,  <option value="classKAccelShortcutList.html">kaccelshortcutlist</option>,  <option value="classKAccelString.html">kaccelstring</option>,  <option value="classKAddressInfo.html">kaddressinfo</option>,  <option value="classKAppDCOPInterface.html">kappdcopinterface</option>,  <option value="classKApplication.html">kapplication</option>,  <option value="classKAsyncIO.html">kasyncio</option>,  <option value="classKAudioPlayer.html">kaudioplayer</option>,  <option value="classKBufferedIO.html">kbufferedio</option>,  <option value="classKCalendarSystem.html">kcalendarsystem</option>,  <option value="classKCalendarSystemFactory.html">kcalendarsystemfactory</option>,  <option value="classKCalendarSystemGregorian.html">kcalendarsystemgregorian</option>,  <option value="classKCalendarSystemHebrew.html">kcalendarsystemhebrew</option>,  <option value="classKCalendarSystemHijri.html">kcalendarsystemhijri</option>,  <option value="classKCalendarSystemJalali.html">kcalendarsystemjalali</option>,  <option value="classKCatalogue.html">kcatalogue</option>,  <option value="classKCharMacroExpander.html">kcharmacroexpander</option>,  <option value="classKCharsets.html">kcharsets</option>,  <option value="classKCheckAccelerators.html">kcheckaccelerators</option>,  <option value="classKClipboardSynchronizer.html">kclipboardsynchronizer</option>,  <option value="classKCmdLineArgs.html">kcmdlineargs</option>,  <option value="classKCodecs.html">kcodecs</option>,  <option value="classKCompletion.html">kcompletion</option>,  <option value="classKCompletionBase.html">kcompletionbase</option>,  <option value="classKCompletionMatches.html">kcompletionmatches</option>,  <option value="classKCompletionMatchesWrapper.html">kcompletionmatcheswrapper</option>,  <option value="classKCompTreeNode.html">kcomptreenode</option>,  <option value="classKCompTreeNodeList.html">kcomptreenodelist</option>,  <option value="classKConfig.html">kconfig</option>,  <option value="classKConfigBackEnd.html">kconfigbackend</option>,  <option value="classKConfigBase.html">kconfigbase</option>,  <option value="classKConfigDialogManager.html">kconfigdialogmanager</option>,  <option value="classKConfigGroup.html">kconfiggroup</option>,  <option value="classKConfigGroupSaver.html">kconfiggroupsaver</option>,  <option value="classKConfigINIBackEnd.html">kconfiginibackend</option>,  <option value="classKConfigSkeleton.html">kconfigskeleton</option>,  <option value="classKConfigSkeleton_1_1ItemBool.html">kconfigskeleton::itembool</option>,  <option value="classKConfigSkeleton_1_1ItemColor.html">kconfigskeleton::itemcolor</option>,  <option value="classKConfigSkeleton_1_1ItemDateTime.html">kconfigskeleton::itemdatetime</option>,  <option value="classKConfigSkeleton_1_1ItemDouble.html">kconfigskeleton::itemdouble</option>,  <option value="classKConfigSkeleton_1_1ItemEnum.html">kconfigskeleton::itemenum</option>,  <option value="classKConfigSkeleton_1_1ItemFont.html">kconfigskeleton::itemfont</option>,  <option value="classKConfigSkeleton_1_1ItemInt.html">kconfigskeleton::itemint</option>,  <option value="classKConfigSkeleton_1_1ItemInt64.html">kconfigskeleton::itemint64</option>,  <option value="classKConfigSkeleton_1_1ItemIntList.html">kconfigskeleton::itemintlist</option>,  <option value="classKConfigSkeleton_1_1ItemLong.html">kconfigskeleton::itemlong</option>,  <option value="classKConfigSkeleton_1_1ItemPassword.html">kconfigskeleton::itempassword</option>,  <option value="classKConfigSkeleton_1_1ItemPath.html">kconfigskeleton::itempath</option>,  <option value="classKConfigSkeleton_1_1ItemPathList.html">kconfigskeleton::itempathlist</option>,  <option value="classKConfigSkeleton_1_1ItemPoint.html">kconfigskeleton::itempoint</option>,  <option value="classKConfigSkeleton_1_1ItemProperty.html">kconfigskeleton::itemproperty</option>,  <option value="classKConfigSkeleton_1_1ItemRect.html">kconfigskeleton::itemrect</option>,  <option value="classKConfigSkeleton_1_1ItemSize.html">kconfigskeleton::itemsize</option>,  <option value="classKConfigSkeleton_1_1ItemString.html">kconfigskeleton::itemstring</option>,  <option value="classKConfigSkeleton_1_1ItemStringList.html">kconfigskeleton::itemstringlist</option>,  <option value="classKConfigSkeleton_1_1ItemUInt.html">kconfigskeleton::itemuint</option>,  <option value="classKConfigSkeleton_1_1ItemUInt64.html">kconfigskeleton::itemuint64</option>,  <option value="classKConfigSkeleton_1_1ItemULong.html">kconfigskeleton::itemulong</option>,  <option value="classKConfigSkeletonGenericItem.html">kconfigskeletongenericitem</option>,  <option value="classKConfigSkeletonItem.html">kconfigskeletonitem</option>,  <option value="classKCrash.html">kcrash</option>,  <option value="classKDCOPPropertyProxy.html">kdcoppropertyproxy</option>,  <option value="classKDebugDCOPIface.html">kdebugdcopiface</option>,  <option value="classKDesktopFile.html">kdesktopfile</option>,  <option value="classKExtendedSocket.html">kextendedsocket</option>,  <option value="classKGenericFactory.html">kgenericfactory</option>,  <option value="classKGenericFactory_3_01KTypeList_3_01Product_00_01ProductListTail_01_4_00_01KTypeList_3_01Pare1ed8d1e5a9847c99711cad3b12c7e96c.html">kgenericfactory< ktypelist< product, productlisttail >, ktypelist< pare1ed8d1e5a9847c99711cad3b12c7e96c</option>,  <option value="classKGenericFactory_3_01KTypeList_3_01Product_00_01ProductListTail_01_4_00_01KTypeList_3_01Paref6a00f76851e0daa2cb662bb8a41fc7f.html">kgenericfactory< ktypelist< product, productlisttail >, ktypelist< paref6a00f76851e0daa2cb662bb8a41fc7f</option>,  <option value="classKGenericFactory_3_01KTypeList_3_01Product_00_01ProductListTail_01_4_00_01QObject_01_4.html">kgenericfactory< ktypelist< product, productlisttail >, qobject ></option>,  <option value="classKGenericFactoryBase.html">kgenericfactorybase</option>,  <option value="classKGlobal.html">kglobal</option>,  <option value="classKGlobalAccel.html">kglobalaccel</option>,  <option value="classKGlobalAccelPrivate.html">kglobalaccelprivate</option>,  <option value="classKGlobalAccelPrivate_1_1CodeMod.html">kglobalaccelprivate::codemod</option>,  <option value="classKGlobalSettings.html">kglobalsettings</option>,  <option value="classKIcon.html">kicon</option>,  <option value="classKIconEffect.html">kiconeffect</option>,  <option value="classKIconLoader.html">kiconloader</option>,  <option value="classKIconTheme.html">kicontheme</option>,  <option value="classKInetSocketAddress.html">kinetsocketaddress</option>,  <option value="classKInstance.html">kinstance</option>,  <option value="classKIOBufferBase.html">kiobufferbase</option>,  <option value="classKIPC.html">kipc</option>,  <option value="classKKey.html">kkey</option>,  <option value="classKKeyNative.html">kkeynative</option>,  <option value="classKKeySequence.html">kkeysequence</option>,  <option value="classKLibFactory.html">klibfactory</option>,  <option value="classKLibLoader.html">klibloader</option>,  <option value="classKLibrary.html">klibrary</option>,  <option value="classKLocale.html">klocale</option>,  <option value="classKLockFile.html">klockfile</option>,  <option value="classKMacroExpanderBase.html">kmacroexpanderbase</option>,  <option value="classKMD4.html">kmd4</option>,  <option value="classKMD5.html">kmd5</option>,  <option value="classKMimeSourceFactory.html">kmimesourcefactory</option>,  <option value="classKMountPoint.html">kmountpoint</option>,  <option value="classKMultipleDrag.html">kmultipledrag</option>,  <option value="classKNetwork_1_1KActiveSocketBase.html">knetwork::kactivesocketbase</option>,  <option value="classKNetwork_1_1KBufferedSocket.html">knetwork::kbufferedsocket</option>,  <option value="classKNetwork_1_1KClientSocketBase.html">knetwork::kclientsocketbase</option>,  <option value="classKNetwork_1_1KDatagramPacket.html">knetwork::kdatagrampacket</option>,  <option value="classKNetwork_1_1KDatagramSocket.html">knetwork::kdatagramsocket</option>,  <option value="classKNetwork_1_1KHttpProxySocketDevice.html">knetwork::khttpproxysocketdevice</option>,  <option value="classKNetwork_1_1KInetSocketAddress.html">knetwork::kinetsocketaddress</option>,  <option value="classKNetwork_1_1KIpAddress.html">knetwork::kipaddress</option>,  <option value="classKNetwork_1_1KMulticastSocket.html">knetwork::kmulticastsocket</option>,  <option value="classKNetwork_1_1KMulticastSocketImpl.html">knetwork::kmulticastsocketimpl</option>,  <option value="classKNetwork_1_1KNetworkInterface.html">knetwork::knetworkinterface</option>,  <option value="classKNetwork_1_1KPassiveSocketBase.html">knetwork::kpassivesocketbase</option>,  <option value="classKNetwork_1_1KResolver.html">knetwork::kresolver</option>,  <option value="classKNetwork_1_1KResolverEntry.html">knetwork::kresolverentry</option>,  <option value="classKNetwork_1_1KResolverResults.html">knetwork::kresolverresults</option>,  <option value="classKNetwork_1_1KResolverWorkerBase.html">knetwork::kresolverworkerbase</option>,  <option value="classKNetwork_1_1KResolverWorkerBase_1_1ResolverLocker.html">knetwork::kresolverworkerbase::resolverlocker</option>,  <option value="classKNetwork_1_1KResolverWorkerFactory.html">knetwork::kresolverworkerfactory</option>,  <option value="classKNetwork_1_1KResolverWorkerFactoryBase.html">knetwork::kresolverworkerfactorybase</option>,  <option value="classKNetwork_1_1KReverseResolver.html">knetwork::kreverseresolver</option>,  <option value="classKNetwork_1_1KServerSocket.html">knetwork::kserversocket</option>,  <option value="classKNetwork_1_1KSocketAddress.html">knetwork::ksocketaddress</option>,  <option value="classKNetwork_1_1KSocketBase.html">knetwork::ksocketbase</option>,  <option value="classKNetwork_1_1KSocketDevice.html">knetwork::ksocketdevice</option>,  <option value="classKNetwork_1_1KSocketDeviceFactory.html">knetwork::ksocketdevicefactory</option>,  <option value="classKNetwork_1_1KSocketDeviceFactoryBase.html">knetwork::ksocketdevicefactorybase</option>,  <option value="classKNetwork_1_1KSocksSocketDevice.html">knetwork::ksockssocketdevice</option>,  <option value="classKNetwork_1_1KStreamSocket.html">knetwork::kstreamsocket</option>,  <option value="classKNetwork_1_1KUnixSocketAddress.html">knetwork::kunixsocketaddress</option>,  <option value="classKNotifyClient_1_1Instance.html">knotifyclient::instance</option>,  <option value="classKPalette.html">kpalette</option>,  <option value="classKPixmapProvider.html">kpixmapprovider</option>,  <option value="classKPopupAccelManager.html">kpopupaccelmanager</option>,  <option value="classKProcess.html">kprocess</option>,  <option value="classKProcessController.html">kprocesscontroller</option>,  <option value="classKProcIO.html">kprocio</option>,  <option value="classKProtocolInfoFactory.html">kprotocolinfofactory</option>,  <option value="classKPty.html">kpty</option>,  <option value="classKRandomSequence.html">krandomsequence</option>,  <option value="classKRegExp.html">kregexp</option>,  <option value="classKRegExpPrivate.html">kregexpprivate</option>,  <option value="classKRFCDate.html">krfcdate</option>,  <option value="classKRootProp.html">krootprop</option>,  <option value="classKSaveFile.html">ksavefile</option>,  <option value="classKServerSocket.html">kserversocket</option>,  <option value="classKSessionManaged.html">ksessionmanaged</option>,  <option value="classKShared.html">kshared</option>,  <option value="classKSharedConfig.html">ksharedconfig</option>,  <option value="classKSharedPtr.html">ksharedptr</option>,  <option value="classKShellProcess.html">kshellprocess</option>,  <option value="classKShortcut.html">kshortcut</option>,  <option value="classKShortcutList.html">kshortcutlist</option>,  <option value="classKShortcutMenu.html">kshortcutmenu</option>,  <option value="classKSimpleConfig.html">ksimpleconfig</option>,  <option value="classKSocket.html">ksocket</option>,  <option value="classKSocketAddress.html">ksocketaddress</option>,  <option value="classKSocks.html">ksocks</option>,  <option value="classKSortableItem.html">ksortableitem</option>,  <option value="classKSortableValueList.html">ksortablevaluelist</option>,  <option value="classKStandardDirs.html">kstandarddirs</option>,  <option value="classKStaticDeleter.html">kstaticdeleter</option>,  <option value="classKStaticDeleterBase.html">kstaticdeleterbase</option>,  <option value="classKStdAccel_1_1ShortcutList.html">kstdaccel::shortcutlist</option>,  <option value="classKStringHandler.html">kstringhandler</option>,  <option value="classKSVGIconEngine.html">ksvgiconengine</option>,  <option value="classKSVGIconPainter.html">ksvgiconpainter</option>,  <option value="classKSycoca.html">ksycoca</option>,  <option value="classKSycocaDict.html">ksycocadict</option>,  <option value="classKSycocaEntry.html">ksycocaentry</option>,  <option value="classKSycocaFactory.html">ksycocafactory</option>,  <option value="classKSycocaFactoryList.html">ksycocafactorylist</option>,  <option value="classKTempDir.html">ktempdir</option>,  <option value="classKTempFile.html">ktempfile</option>,  <option value="classKTimezone.html">ktimezone</option>,  <option value="classKTimezoneDetails.html">ktimezonedetails</option>,  <option value="classKTimezones.html">ktimezones</option>,  <option value="classKTimezoneSource.html">ktimezonesource</option>,  <option value="classKUniqueApplication.html">kuniqueapplication</option>,  <option value="classKUnixSocketAddress.html">kunixsocketaddress</option>,  <option value="classKURL.html">kurl</option>,  <option value="classKURL_1_1List.html">kurl::list</option>,  <option value="classKURLDrag.html">kurldrag</option>,  <option value="classKUser.html">kuser</option>,  <option value="classKUserGroup.html">kusergroup</option>,  <option value="classKVMAllocator.html">kvmallocator</option>,  <option value="classKWin.html">kwin</option>,  <option value="classKWin_1_1WindowInfo.html">kwin::windowinfo</option>,  <option value="classKWinModule.html">kwinmodule</option>,  <option value="classKWordMacroExpander.html">kwordmacroexpander</option>,  <option value="classKXErrorHandler.html">kxerrorhandler</option>,  <option value="classKZoneAllocator.html">kzoneallocator</option>,  <option value="classNET.html">net</option>,  <option value="classQWidgetStackAccelManager.html">qwidgetstackaccelmanager</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#116;&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>