Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 2047

kdelibs3-apidocs-3.5.10-31.fc15.noarch.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.7.4 -->
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="#related">Related Functions</a>  </div>
  <div class="headertitle">
<div class="title">KURL Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KURL" -->
<p>Represents and parses a URL.  
 <a href="classKURL.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kurl_8h_source.html">kurl.h</a>&gt;</code></p>

<p><a href="classKURL-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL_1_1List.html">List</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classKURL_1_1List.html" title="KURL::List is a QValueList that contains KURLs with a few convenience methods.">KURL::List</a> is a <a class="elRef" 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>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a316e98d10f9c4dfd570f99c179e8b621">AdjustementFlags</a> { <a class="el" href="classKURL.html#a316e98d10f9c4dfd570f99c179e8b621ab5d2997c6d8a1a32dcbc742765c993e0">NoAdjustements</a> =  0, 
<a class="el" href="classKURL.html#a316e98d10f9c4dfd570f99c179e8b621a8ddf235a2eed58e8f915d4332dc16156">StripFileProtocol</a> =  1
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25">URIMode</a> { <br/>
&#160;&#160;<a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25a9db85130d0702a27e41777d7c767acca">Auto</a>, 
<a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25a48dc1cda1b16403f9ba112a8d035e5e7">Invalid</a>, 
<a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25ae1438b681934016b65507c804f933c30">RawURI</a>, 
<a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25a5b1d60824c0e38e36c28ddd5f34a9569">URL</a>, 
<br/>
&#160;&#160;<a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25add1a21fcdf4c90f451c256191553c6f7">Mailto</a>
<br/>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#aace5360569cdbcf648569f45e92e9002">QueryItemsOptions</a> { <a class="el" href="classKURL.html#aace5360569cdbcf648569f45e92e9002a676bc8515e367e5614f4aea0e618f3c7">CaseInsensitiveKeys</a> =  1
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a71e859f230741869c427ba2e7a9c90a9">KURL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a6892da49ac63d19458bf27eb0736ed9c">~KURL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a78d5d0d9c4e19289b7ff74f988538cc7">KURL</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;url, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#adbc4e9b6cb078e26e5b220b1fe9b3cfa">KURL</a> (const char *url, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a3db6e118ac41e55600e9bbad86825b21">KURL</a> (const <a class="elRef" href="qcstring.html">QCString</a> &amp;url, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a5c8f93cc2fe4e6fcad9e431d4c78da70">KURL</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;u)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ada858afd3328c262dc57ec6a31934013">KURL</a> (const <a class="elRef" href="qurl.html">QUrl</a> &amp;u)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a36339dac9244da13dab71911f4a216dd">KURL</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_baseurl, const <a class="elRef" href="qstring.html">QString</a> &amp;_rel_url, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a4be1d1602a1d0f0afeee230167ebfdc4">protocol</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a8992baac621d32c2aed7c97a26362b8d">setProtocol</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_txt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a5f99cb1b7d49f3ddb2a56aa036957269">uriMode</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ae5459bd5b7101d5bbfbff17ce2a43027">user</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a3ee8660de05aaac5e90893ca87ab07fe">setUser</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_txt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a2c6b8f18351722e9280b99d869572989">hasUser</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a0bd95e7e1a54ab12b56439495f00bff6">pass</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a34346c1a8873adc586efffb6d1376154">setPass</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_txt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ab6aa391061678b69b314a6b403d0ace2">hasPass</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#adf3ad35581a0ca25ecc16e073f8275ca">host</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#afbf05cea61e7c6f3c5de6a467d5f0534">setHost</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_txt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ae086bae03d0eb7b01c1d4775ff008734">hasHost</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned short int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a205598afc6842db13e4ad996ba1d9422">port</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a872ff8bd98d746e3356d9331d55421e8">setPort</a> (unsigned short int _p)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19">path</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a0fd6a984e0f2e0fe38e1f67a11a98ff9">path</a> (int _trailing) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3">setPath</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;path)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ad24bdff9a1df6735fe544c96cd7c30c1">hasPath</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#aa4f7e51dc176f53f6e25a89195b04477">cleanPath</a> (bool cleanDirSeparator=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a13576bca04c106cb92a7c33c36495654">adjustPath</a> (int _trailing)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ad243d1d3d12cdf0828b95203dc440284">setEncodedPathAndQuery</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_txt, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#aab26a52864a868ea2eddb5e9e7c9057e">setEncodedPath</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_txt, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a12bb2c946469dafcc86989b2bca4dd4c">encodedPathAndQuery</a> (int _trailing=0, bool _no_empty_path=false, int encoding_hint=0) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a9ffeaee79924b4156f5816fc95f874e5">setQuery</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_txt, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63">query</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a53f4194e147b11b678760340d62b3043">ref</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#af531d16bdf3ac9a5a8ed27e16f61ebd7">setRef</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_txt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#add38e3181b6ebf71290f0353d6630518">hasRef</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#aed95d74660e8514cf91a9948ced8108c">htmlRef</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a27c969dca60a800d96238ed18337d008">encodedHtmlRef</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#abd27cfe74e1c54f0e1f43958d102f103">setHTMLRef</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_ref)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a55f47b57289effd8e4bc7dc945b5b9f9">hasHTMLRef</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ad8b823d40572ca24b6983d868847c251">isValid</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">KDE_DEPRECATED bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ad4df233237b4d9e5f4fc53f909741142">isMalformed</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a942448c47652c6453f3c6ce59ae62731">isLocalFile</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ac3baacf0bb1d8f98970ea301a576dcdd">setFileEncoding</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;encoding)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a49785c16a6ee9805236aaa210dfde124">fileEncoding</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a090c7e6d5d6293a6cbdde374bc1ebaeb">hasSubURL</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a22950393da23aff8dc71dd86cdad9a1b">addPath</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;txt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a24115e5a48e1ea3a5247002dcbf3a18e">queryItem</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;item) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a84d79633bc77b8dda2a91977a6ba0594">queryItem</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;item, int encoding_hint) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ae23423c525716220481cfcea51b5fd"></a><!-- doxytag: member="KURL::queryItems" ref="a9ae23423c525716220481cfcea51b5fd" args="(int options=0) const " -->
<a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>queryItems</b> (int options=0) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ae52346d421301e1108b6c19cfd33294f">queryItems</a> (int options, int encoding_hint) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a324fac18c2e755dc1cc0b479b75a1bbb">addQueryItem</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_item, const <a class="elRef" href="qstring.html">QString</a> &amp;_value, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a86529c33c0fd3f281fdc2e8b01f2d84c">removeQueryItem</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_item)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a8a068268c1128fea91eb2cc17ccad5ce">setFileName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_txt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a0634d0fc02c9883ca164966b4764a692">fileName</a> (bool _ignore_trailing_slash_in_path=true) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a0ff924855867aa98d0cbb5f3f20f4f87">directory</a> (bool _strip_trailing_slash_from_result=true, bool _ignore_trailing_slash_in_path=true) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a35ef4c9ffe4fa877f30c53ccfaf5a293">setDirectory</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;dir)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a7d2e31526d61ed97a0132768d0270a3f">cd</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_dir)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a">url</a> (int _trailing=0, int encoding_hint=0) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a9382bc0e035124e884f755cff962530f">prettyURL</a> (int _trailing=0) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ac12929211bbe1263cfad92d6e246d501">prettyURL</a> (int _trailing, <a class="el" href="classKURL.html#a316e98d10f9c4dfd570f99c179e8b621">AdjustementFlags</a> _flags) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a38ca30778962db93d7b47200b8e1578f">pathOrURL</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a1435c4cc9e9cda44c3490eba7a351101">htmlURL</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#af10f805c72d7223d88d7499fc5f39bd2">isEmpty</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKURL.html">KURL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#acb769056af19c8c4b0458f9a6b317343">upURL</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ac60bdbc98263f470f5955ffc79cf95c3">operator&lt;</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_u) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKURL.html">KURL</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a86078b56b4e196780e343001263d4545">operator=</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_u)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKURL.html">KURL</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a7803b7119921a664d389e9c85b7742e0">operator=</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_url)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKURL.html">KURL</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a43257e96a858a015009ea2816b88f69c">operator=</a> (const char *_url)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKURL.html">KURL</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a678569f3199c222f99701bdbfb091ea3">operator=</a> (const <a class="elRef" href="qurl.html">QUrl</a> &amp;u)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a16d4527245ef6a50d158240936be4775">operator==</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_u) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a405d73554b97daca3568a0a554e2cc58">operator==</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_u) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a0c6c2fbd2f62435d0fc5fdb675edf459">operator!=</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_u) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a3e2062c66a979effb804ea8444e1f159">operator!=</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_u) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ae52a2ef0548958a5e0586182016834da">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" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111">equals</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;u, bool ignore_trailing=false) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a969ac5a396980191f14a459e1d0d6000">isParentOf</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;u) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a69ea0add8b07a0a5e17ca239c6f66599">filename</a> (bool _ignore_trailing_slash_in_path=true) const </td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classKURL_1_1List.html">List</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a411d9ebf2f0c66e58721776271537316">split</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_url)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classKURL_1_1List.html">List</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a5345022be672d2d6c646826d0b1f6af0">split</a> (const <a class="el" href="classKURL.html">KURL</a> &amp;_url)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classKURL.html">KURL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a95df01647f7ddf97be8c3ab018fd1f36">join</a> (const <a class="el" href="classKURL_1_1List.html">List</a> &amp;_list)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classKURL.html">KURL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a5c3370590e8fbae93d5c10197489fcfc">fromPathOrURL</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;text)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a5a12896c25a17ab12abf2097a7c75713">encode_string</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;str, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a2c68cba73fe2d65b926d6f9cc3667790">encode_string_no_slash</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;str, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#abbdd1c868880355a4eb6daa4a71926b0">decode_string</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;str, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#aa45474b065df2aa16142dc77500d6971">isRelativeURL</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_url)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a7f7c85dfee5668f24aba599b7f05f175">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" align="right" valign="top">static <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a8cc9fd7108ba1c161dcc88993e8e4923">relativePath</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;base_dir, const <a class="elRef" href="qstring.html">QString</a> &amp;path, bool *isParent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25">URIMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ad400be8a7ea5af29184581da39abe7ce">uriModeForProtocol</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;protocol)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a508a4c6026a031a52d4c854a26cce536">reset</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a1005b451c6beee15b87bfe498b2e1f90">parseURL</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_url, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a4429a776e21ea5a2112c1dad318a8d15">parseRawURI</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_url, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a9266785d84b7b41c78b1336592198a86">parseMailto</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_url, int encoding_hint=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#ab3e311c1974098c707b94e7b7eb2ec74">parse</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_url, int encoding_hint=0)</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3c55df33b6a2d82b40461a326bd9d92"></a><!-- doxytag: member="KURL::operator&lt;&lt;" ref="aa3c55df33b6a2d82b40461a326bd9d92" args="(QDataStream &amp;s, const KURL &amp;a)" -->
<a class="elRef" href="qdatastream.html">QDataStream</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator&lt;&lt;</b> (<a class="elRef" href="qdatastream.html">QDataStream</a> &amp;s, const <a class="el" href="classKURL.html">KURL</a> &amp;a)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa8081baa37e415e07e66ed8af8bd2cc1"></a><!-- doxytag: member="KURL::operator&gt;&gt;" ref="aa8081baa37e415e07e66ed8af8bd2cc1" args="(QDataStream &amp;s, KURL &amp;a)" -->
<a class="elRef" href="qdatastream.html">QDataStream</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator&gt;&gt;</b> (<a class="elRef" href="qdatastream.html">QDataStream</a> &amp;s, <a class="el" href="classKURL.html">KURL</a> &amp;a)</td></tr>
<tr><td colspan="2"><h2><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p>
</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a2694d0d7d254eacf3c39cf3eebe17eda">urlcmp</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_url1, const <a class="elRef" href="qstring.html">QString</a> &amp;_url2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKURL.html#a0b58ea663513546270fd380a811b209a">urlcmp</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_url1, const <a class="elRef" href="qstring.html">QString</a> &amp;_url2, bool _ignore_trailing, bool _ignore_ref)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Represents and parses a URL. </p>
<p>A prototypical URL looks like: </p>
<div class="fragment"><pre class="fragment">   <a class="code" href="classKURL.html#a4be1d1602a1d0f0afeee230167ebfdc4" title="Returns the protocol for the URL.">protocol</a>:<span class="comment">//user:password@hostname:port/path/to/file.ext#reference</span>
</pre></div><p><a class="el" href="classKURL.html" title="Represents and parses a URL.">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>
<p>For examle:</p>
<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" title="Represents and parses a URL.">KURL</a> via the default-constructor and then call <a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath(const QString&amp;)</a>: </p>
<div class="fragment"><pre class="fragment">     <a class="code" href="classKURL.html" title="Represents and parses a URL.">KURL</a> kurl;
     kurl.<a class="code" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath</a>( <span class="stringliteral">&quot;/bar/#foo#&quot;</span> );
     <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url</a> = kurl.<a class="code" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url</a>();    <span class="comment">// -&gt; &quot;file:///bar/%23foo%23&quot;</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#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a>. </p>
<div class="fragment"><pre class="fragment">    <a class="code" href="classKURL.html" title="Represents and parses a URL.">KURL</a> <a class="code" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url</a>( <span class="stringliteral">&quot;file:///bar/%23foo%23&quot;</span> );
    ...
    <span class="keywordflow">if</span> ( url.isLocalFile() )
       <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path</a> = url.path();       <span class="comment">// -&gt; &quot;/bar/#foo#&quot;</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#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">KURL::fromPathOrURL()</a> to build a <a class="el" href="classKURL.html" title="Represents and parses a URL.">KURL</a>.</p>
<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>
<p>Wrong: </p>
<div class="fragment"><pre class="fragment">    <a class="codeRef" href="qstring.html">QString</a> dirUrl = <span class="stringliteral">&quot;file:///bar/&quot;</span>;
    <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKURL.html#a0634d0fc02c9883ca164966b4764a692" title="Returns the filename of the path.">fileName</a> = <span class="stringliteral">&quot;#foo#&quot;</span>;
    <a class="codeRef" href="qstring.html">QString</a> invalidURL = dirUrl + <a class="code" href="classKURL.html#a0634d0fc02c9883ca164966b4764a692" title="Returns the filename of the path.">fileName</a>;   <span class="comment">// -&gt; &quot;file:///bar/#foo#&quot; won&#39;t behave like you would expect.</span>
</pre></div><p> Instead you should use <a class="el" href="classKURL.html#a22950393da23aff8dc71dd86cdad9a1b" title="Adds to the current path.">addPath()</a>.</p>
<p>Right: </p>
<div class="fragment"><pre class="fragment">    <a class="code" href="classKURL.html" title="Represents and parses a URL.">KURL</a> <a class="code" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url</a>( <span class="stringliteral">&quot;file:///bar/&quot;</span> );
    <a class="codeRef" href="qstring.html">QString</a> fileName = <span class="stringliteral">&quot;#foo#&quot;</span>;
    url.addPath( fileName );
    <a class="codeRef" href="qstring.html">QString</a> validURL = url.url();    <span class="comment">// -&gt; &quot;file:///bar/%23foo%23&quot;</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#a9382bc0e035124e884f755cff962530f" title="Returns the URL as string in human-friendly format.">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" title="Represents and parses a URL.">KURL</a> <a class="code" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url</a>( <span class="stringliteral">&quot;ftp://name:password@ftp.faraway.org/bar/%23foo%23&quot;</span>);
    <a class="codeRef" href="qstring.html">QString</a> visibleURL = url.prettyURL(); <span class="comment">// -&gt; &quot;ftp://name@ftp.faraway.org/bar/%23foo%23&quot;</span>
</pre></div><p> Note that <a class="el" href="classKURL.html#a9382bc0e035124e884f755cff962530f" title="Returns the URL as string in human-friendly format.">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>
<p><a class="el" href="classKURL.html" title="Represents and parses a URL.">KURL</a> has some restrictions regarding the path encoding. <a class="el" href="classKURL.html" title="Represents and parses a URL.">KURL</a> works internally with the decoded path and and encoded query. For example, </p>
<div class="fragment"><pre class="fragment">    http:<span class="comment">//localhost/cgi-bin/test%20me.pl?cmd=Hello%20you</span>
</pre></div><p> 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 class="author"><dt><b>Author:</b></dt><dd>Torben Weis &lt;<a href="mailto:weis@kde.org">weis@kde.org</a>&gt; </dd></dl>

<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>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a316e98d10f9c4dfd570f99c179e8b621"></a><!-- doxytag: member="KURL::AdjustementFlags" ref="a316e98d10f9c4dfd570f99c179e8b621" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKURL.html#a316e98d10f9c4dfd570f99c179e8b621">KURL::AdjustementFlags</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Flags to choose how <a href="file:">file:</a> URLs are treated when creating their <a class="elRef" href="qstring.html">QString</a> representation with prettyURL(int,AdjustementFlags) </p>
<p>However it is recommended to use <a class="el" href="classKURL.html#a38ca30778962db93d7b47200b8e1578f" title="Returns the URL as a string depending if it is a local file.">pathOrURL()</a> instead of this variant of <a class="el" href="classKURL.html#a9382bc0e035124e884f755cff962530f" title="Returns the URL as string in human-friendly format.">prettyURL()</a> </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a316e98d10f9c4dfd570f99c179e8b621ab5d2997c6d8a1a32dcbc742765c993e0"></a><!-- doxytag: member="NoAdjustements" ref="a316e98d10f9c4dfd570f99c179e8b621ab5d2997c6d8a1a32dcbc742765c993e0" args="" -->NoAdjustements</em>&nbsp;</td><td>
<p>Do not treat <a href="file:">file:</a> URLs differently. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a316e98d10f9c4dfd570f99c179e8b621a8ddf235a2eed58e8f915d4332dc16156"></a><!-- doxytag: member="StripFileProtocol" ref="a316e98d10f9c4dfd570f99c179e8b621a8ddf235a2eed58e8f915d4332dc16156" args="" -->StripFileProtocol</em>&nbsp;</td><td>
<p>Strip the <a href="file:">file:</a> protocol from the string, i.e. </p>
<p>return only the path and filename as a local path </p>
</td></tr>
</table>
</dd>
</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>.</p>

</div>
</div>
<a class="anchor" id="aace5360569cdbcf648569f45e92e9002"></a><!-- doxytag: member="KURL::QueryItemsOptions" ref="aace5360569cdbcf648569f45e92e9002" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKURL.html#aace5360569cdbcf648569f45e92e9002">KURL::QueryItemsOptions</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Options for queryItems() </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.1 </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="aace5360569cdbcf648569f45e92e9002a676bc8515e367e5614f4aea0e618f3c7"></a><!-- doxytag: member="CaseInsensitiveKeys" ref="aace5360569cdbcf648569f45e92e9002a676bc8515e367e5614f4aea0e618f3c7" args="" -->CaseInsensitiveKeys</em>&nbsp;</td><td>
<p>Normalize query keys to lowercase. </p>
</td></tr>
</table>
</dd>
</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>.</p>

</div>
</div>
<a class="anchor" id="ae02a2dbcced8e7219eec8d30bada0d25"></a><!-- doxytag: member="KURL::URIMode" ref="ae02a2dbcced8e7219eec8d30bada0d25" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25">KURL::URIMode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Defines the type of URI we are processing. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ae02a2dbcced8e7219eec8d30bada0d25a9db85130d0702a27e41777d7c767acca"></a><!-- doxytag: member="Auto" ref="ae02a2dbcced8e7219eec8d30bada0d25a9db85130d0702a27e41777d7c767acca" args="" -->Auto</em>&nbsp;</td><td>
<p>Automatically detected. </p>
<p>Using this mode, an appropriate processing mode will be selected when the URI is first processed. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ae02a2dbcced8e7219eec8d30bada0d25a48dc1cda1b16403f9ba112a8d035e5e7"></a><!-- doxytag: member="Invalid" ref="ae02a2dbcced8e7219eec8d30bada0d25a48dc1cda1b16403f9ba112a8d035e5e7" args="" -->Invalid</em>&nbsp;</td><td>
<p>Invalid URI. </p>
<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#a4be1d1602a1d0f0afeee230167ebfdc4" title="Returns the protocol for the URL.">protocol()</a> method. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ae02a2dbcced8e7219eec8d30bada0d25ae1438b681934016b65507c804f933c30"></a><!-- doxytag: member="RawURI" ref="ae02a2dbcced8e7219eec8d30bada0d25ae1438b681934016b65507c804f933c30" args="" -->RawURI</em>&nbsp;</td><td>
<p>Raw URI. </p>
<p>This type of URI should not be processed in any way. Contents are accessible through the <a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> method. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ae02a2dbcced8e7219eec8d30bada0d25a5b1d60824c0e38e36c28ddd5f34a9569"></a><!-- doxytag: member="URL" ref="ae02a2dbcced8e7219eec8d30bada0d25a5b1d60824c0e38e36c28ddd5f34a9569" args="" -->URL</em>&nbsp;</td><td>
<p>Standards compliant URL. </p>
<p>Process as a syntactically correct URL. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ae02a2dbcced8e7219eec8d30bada0d25add1a21fcdf4c90f451c256191553c6f7"></a><!-- doxytag: member="Mailto" ref="ae02a2dbcced8e7219eec8d30bada0d25add1a21fcdf4c90f451c256191553c6f7" args="" -->Mailto</em>&nbsp;</td><td>
<p>Mailto URI. </p>
<p><a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">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#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> method. </p>
</td></tr>
</table>
</dd>
</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>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a71e859f230741869c427ba2e7a9c90a9"></a><!-- doxytag: member="KURL::KURL" ref="a71e859f230741869c427ba2e7a9c90a9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::KURL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs an empty URL. </p>
<p>The created instance will also be invalid, see <a class="el" href="classKURL.html#ad8b823d40572ca24b6983d868847c251" title="Tests if the URL is well formed.">isValid()</a> </p>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00455">455</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6892da49ac63d19458bf27eb0736ed9c"></a><!-- doxytag: member="KURL::~KURL" ref="a6892da49ac63d19458bf27eb0736ed9c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KURL::~KURL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructs the <a class="el" href="classKURL.html" title="Represents and parses a URL.">KURL</a> object. </p>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00460">460</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a78d5d0d9c4e19289b7ff74f988538cc7"></a><!-- doxytag: member="KURL::KURL" ref="a78d5d0d9c4e19289b7ff74f988538cc7" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Usual constructor, to construct from a string. </p>
<dl class="warning"><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>
<p>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>
<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#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">url</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 class="paramname">encoding_hint</td><td>MIB of original encoding of URL. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00465">465</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adbc4e9b6cb078e26e5b220b1fe9b3cfa"></a><!-- doxytag: member="KURL::KURL" ref="adbc4e9b6cb078e26e5b220b1fe9b3cfa" 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 *&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor taking an URL encoded in a C string. </p>
<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 class="warning"><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>
<p>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>
<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#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>an encoded URL. If the URL does not have a protocol part, <code>"file:"</code> is assumed </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of URL. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a> </dd>
<dd>
<a class="elRef" href="qstring.html#fromLatin1">QString::fromLatin1()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00471">471</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3db6e118ac41e55600e9bbad86825b21"></a><!-- doxytag: member="KURL::KURL" ref="a3db6e118ac41e55600e9bbad86825b21" 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" href="qcstring.html">QCString</a> &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor taking an URL encoded in a <a class="elRef" href="qcstring.html">QCString</a>. </p>
<p>Constructor taking a <a class="elRef" 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 class="warning"><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>
<p>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>
<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#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>A encoded URL. If the URL does not have a protocol part, <code>"file:"</code> is assumed </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of URL. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a> </dd>
<dd>
<a class="elRef" href="qstring.html#fromLatin1">QString::fromLatin1()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00477">477</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5c8f93cc2fe4e6fcad9e431d4c78da70"></a><!-- doxytag: member="KURL::KURL" ref="a5c8f93cc2fe4e6fcad9e431d4c78da70" 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;&#160;</td>
          <td class="paramname"><em>u</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">u</td><td>the <a class="el" href="classKURL.html" title="Represents and parses a URL.">KURL</a> to copy </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00483">483</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ada858afd3328c262dc57ec6a31934013"></a><!-- doxytag: member="KURL::KURL" ref="ada858afd3328c262dc57ec6a31934013" 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" href="qurl.html">QUrl</a> &amp;&#160;</td>
          <td class="paramname"><em>u</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor taking a <a class="elRef" href="qt.html">Qt</a> URL. </p>
<p>Converts from a <a class="elRef" href="qt.html">Qt</a> URL.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">u</td><td>the <a class="elRef" href="qurl.html">QUrl</a> </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00522">522</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a36339dac9244da13dab71911f4a216dd"></a><!-- doxytag: member="KURL::KURL" ref="a36339dac9244da13dab71911f4a216dd" 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;&#160;</td>
          <td class="paramname"><em>_baseurl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_rel_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor allowing relative URLs. </p>
<dl class="warning"><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>
<p>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>
<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#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_baseurl</td><td>The base url. </td></tr>
    <tr><td class="paramname">_rel_url</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#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath()</a> or <a class="el" href="classKURL.html#a22950393da23aff8dc71dd86cdad9a1b" title="Adds to the current path.">addPath()</a> or <a class="el" href="classKURL.html#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a> instead) </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of URL. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00528">528</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a22950393da23aff8dc71dd86cdad9a1b"></a><!-- doxytag: member="KURL::addPath" ref="a22950393da23aff8dc71dd86cdad9a1b" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>txt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds to the current path. </p>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">txt</td><td>the text to add. It is considered to be decoded</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ad24bdff9a1df6735fe544c96cd7c30c1" title="Tests if this URL has a path included in it.">hasPath()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01733">1733</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a324fac18c2e755dc1cc0b479b75a1bbb"></a><!-- doxytag: member="KURL::addQueryItem" ref="a324fac18c2e755dc1cc0b479b75a1bbb" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds an additional query item. </p>
<p>To replace an existing query item, the item should first be removed with <a class="el" href="classKURL.html#a86529c33c0fd3f281fdc2e8b01f2d84c" title="Removea an item from the query.">removeQueryItem()</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_item</td><td>name of item to add </td></tr>
    <tr><td class="paramname">_value</td><td>value of item to add </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of encoding to use for _value. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a24115e5a48e1ea3a5247002dcbf3a18e" title="Returns the value of a certain query item.">queryItem()</a> </dd>
<dd>
queryItems() </dd>
<dd>
<a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63" title="Returns the encoded query of the URL.">query()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02224">2224</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a13576bca04c106cb92a7c33c36495654"></a><!-- doxytag: member="KURL::adjustPath" ref="a13576bca04c106cb92a7c33c36495654" 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&#160;</td>
          <td class="paramname"><em>_trailing</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds or removes a trailing slash to/from the path. </p>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_trailing</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>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ad24bdff9a1df6735fe544c96cd7c30c1" title="Tests if this URL has a path included in it.">hasPath()</a> </dd>
<dd>
<a class="el" href="classKURL.html#aa4f7e51dc176f53f6e25a89195b04477" title="Resolves &quot;.&quot; and &quot;..&quot; components in path.">cleanPath()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01296">1296</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7d2e31526d61ed97a0132768d0270a3f"></a><!-- doxytag: member="KURL::cd" ref="a7d2e31526d61ed97a0132768d0270a3f" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_dir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Changes the directory by descending into the given directory. </p>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_dir</td><td>the directory to change to </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if successful</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a0ff924855867aa98d0cbb5f3f20f4f87" title="Returns the directory of the path.">directory()</a> </dd>
<dd>
<a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01800">1800</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa4f7e51dc176f53f6e25a89195b04477"></a><!-- doxytag: member="KURL::cleanPath" ref="aa4f7e51dc176f53f6e25a89195b04477" 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&#160;</td>
          <td class="paramname"><em>cleanDirSeparator</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resolves <code>"."</code> and <code>".."</code> components in path. </p>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cleanDirSeparator</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>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ad24bdff9a1df6735fe544c96cd7c30c1" title="Tests if this URL has a path included in it.">hasPath()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a13576bca04c106cb92a7c33c36495654" title="Adds or removes a trailing slash to/from the path.">adjustPath()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01257">1257</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae52a2ef0548958a5e0586182016834da"></a><!-- doxytag: member="KURL::cmp" ref="ae52a2ef0548958a5e0586182016834da" 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;&#160;</td>
          <td class="paramname"><em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ignore_trailing</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compares this URL with another one. </p>
<p>The same as <a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a>, just with a less obvious name.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">u</td><td>the URL to compare this one with </td></tr>
    <tr><td class="paramname">ignore_trailing</td><td>set to <code>true</code> to ignore trailing <code>'/'</code> characters</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if both URLs are the same</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>operator==. This function should be used if you want to ignore trailing <code>'/'</code> characters</dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000065">Deprecated:</a></b></dt><dd>Use <a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a> instead. </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01154">1154</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abbdd1c868880355a4eb6daa4a71926b0"></a><!-- doxytag: member="KURL::decode_string" ref="abbdd1c868880355a4eb6daa4a71926b0" 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" href="qstring.html">QString</a> KURL::decode_string </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Decodes a string as used in URLs. </p>
<p>Convenience function.</p>
<p>Decode %-style encoding and convert from local encoding to unicode.</p>
<p>Reverse of <a class="el" href="classKURL.html#a5a12896c25a17ab12abf2097a7c75713" title="Encodes a string for use in URLs.">encode_string()</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>the string to decode (can be <code>QString::null</code>) </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the decoded string</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a5a12896c25a17ab12abf2097a7c75713" title="Encodes a string for use in URLs.">encode_string()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a2c68cba73fe2d65b926d6f9cc3667790" title="Encodes a string for use in URLs.">encode_string_no_slash()</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>.</p>

</div>
</div>
<a class="anchor" id="a0ff924855867aa98d0cbb5f3f20f4f87"></a><!-- doxytag: member="KURL::directory" ref="a0ff924855867aa98d0cbb5f3f20f4f87" 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" href="qstring.html">QString</a> KURL::directory </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</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&#160;</td>
          <td class="paramname"><em>_ignore_trailing_slash_in_path</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the directory of the path. </p>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_strip_trailing_slash_from_result</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 class="paramname">_ignore_trailing_slash_in_path</td><td>if set to <code>false</code>, then everything behind the last <code>'/'</code> is considered to be the filename</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a35ef4c9ffe4fa877f30c53ccfaf5a293" title="Sets the directory of the path, leaving the filename empty.">setDirectory()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a0634d0fc02c9883ca164966b4764a692" title="Returns the filename of the path.">fileName()</a> </dd>
<dd>
<a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01766">1766</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5a12896c25a17ab12abf2097a7c75713"></a><!-- doxytag: member="KURL::encode_string" ref="a5a12896c25a17ab12abf2097a7c75713" 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" href="qstring.html">QString</a> KURL::encode_string </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Encodes a string for use in URLs. </p>
<p>Convenience function.</p>
<p>Convert unicoded string to local encoding and use %%-style encoding for all common delimiters / non-ascii characters.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>the string to encode (can be <code>QString::null</code>) </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of encoding to use. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the encoded string</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a2c68cba73fe2d65b926d6f9cc3667790" title="Encodes a string for use in URLs.">encode_string_no_slash()</a> </dd>
<dd>
<a class="el" href="classKURL.html#abbdd1c868880355a4eb6daa4a71926b0" title="Decodes a string as used in URLs.">decode_string()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02071">2071</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2c68cba73fe2d65b926d6f9cc3667790"></a><!-- doxytag: member="KURL::encode_string_no_slash" ref="a2c68cba73fe2d65b926d6f9cc3667790" 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" href="qstring.html">QString</a> KURL::encode_string_no_slash </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Encodes a string for use in URLs. </p>
<p>Convenience function.</p>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>the string to encode (can be <code>QString::null</code>) </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of encoding to use. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a5a12896c25a17ab12abf2097a7c75713" title="Encodes a string for use in URLs.">encode_string()</a> </dd>
<dd>
<a class="el" href="classKURL.html#abbdd1c868880355a4eb6daa4a71926b0" title="Decodes a string as used in URLs.">decode_string()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02076">2076</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a27c969dca60a800d96238ed18337d008"></a><!-- doxytag: member="KURL::encodedHtmlRef" ref="a27c969dca60a800d96238ed18337d008" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::encodedHtmlRef </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> 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 class="return"><dt><b>Returns:</b></dt><dd>the HTML-style reference in its original, encoded, form</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#aed95d74660e8514cf91a9948ced8108c" title="Returns decoded the HTML-style reference (the part of the URL after &#39;#&#39;)">htmlRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#abd27cfe74e1c54f0e1f43958d102f103" title="Sets the decoded HTML-style reference.">setHTMLRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a55f47b57289effd8e4bc7dc945b5b9f9" title="Tests if there is an HTML-style reference.">hasHTMLRef()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01899">1899</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a12bb2c946469dafcc86989b2bca4dd4c"></a><!-- doxytag: member="KURL::encodedPathAndQuery" ref="a12bb2c946469dafcc86989b2bca4dd4c" 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" href="qstring.html">QString</a> KURL::encodedPathAndQuery </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_trailing</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</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&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the encoded path and the query. </p>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_trailing</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 class="paramname">_no_empty_path</td><td>if set to <code>true</code> then an empty path is substituted by <code>"/"</code> </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of desired encoding of URL. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the concatenation of the encoded path , <code>'</code>?' and the encoded query</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ad243d1d3d12cdf0828b95203dc440284" title="Sets both path and query of the URL in their encoded form.">setEncodedPathAndQuery()</a> </dd>
<dd>
<a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63" title="Returns the encoded query of the URL.">query()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01306">1306</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a373b2cd2d283db2a94f7cf00483d5111"></a><!-- doxytag: member="KURL::equals" ref="a373b2cd2d283db2a94f7cf00483d5111" 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;&#160;</td>
          <td class="paramname"><em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ignore_trailing</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compares this URL with another one. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">u</td><td>the URL to compare this one with </td></tr>
    <tr><td class="paramname">ignore_trailing</td><td>set to <code>true</code> to ignore trailing <code>'/'</code> characters</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if both urls are the same</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>operator==. This function should be used if you want to ignore trailing <code>'/'</code> characters</dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.1 </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01159">1159</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a49785c16a6ee9805236aaa210dfde124"></a><!-- doxytag: member="KURL::fileEncoding" ref="a49785c16a6ee9805236aaa210dfde124" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::fileEncoding </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns encoding information of the URL. </p>
<p>The encoding information is the content of the <code>"charset"</code> parameter.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>an encoding suitable for <a class="elRef" 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#l01416">1416</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a69ea0add8b07a0a5e17ca239c6f66599"></a><!-- doxytag: member="KURL::filename" ref="a69ea0add8b07a0a5e17ca239c6f66599" 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" href="qstring.html">QString</a> KURL::filename </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>_ignore_trailing_slash_in_path</em> = <code>true</code></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000066">Deprecated:</a></b></dt><dd>change code to call <a class="el" href="classKURL.html#a0634d0fc02c9883ca164966b4764a692" title="Returns the filename of the path.">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>.</p>

</div>
</div>
<a class="anchor" id="a0634d0fc02c9883ca164966b4764a692"></a><!-- doxytag: member="KURL::fileName" ref="a0634d0fc02c9883ca164966b4764a692" 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" href="qstring.html">QString</a> KURL::fileName </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>_ignore_trailing_slash_in_path</em> = <code>true</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the filename of the path. </p>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_ignore_trailing_slash_in_path</td><td>if set to <code>false</code>, then everything behind the last <code>'/'</code> is considered to be the filename</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a8a068268c1128fea91eb2cc17ccad5ce" title="Sets the filename of the path.">setFileName()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a0ff924855867aa98d0cbb5f3f20f4f87" title="Returns the directory of the path.">directory()</a> </dd>
<dd>
<a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01674">1674</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5c3370590e8fbae93d5c10197489fcfc"></a><!-- doxytag: member="KURL::fromPathOrURL" ref="a5c3370590e8fbae93d5c10197489fcfc" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a <a class="el" href="classKURL.html" title="Represents and parses a URL.">KURL</a> object from a <a class="elRef" href="qstring.html">QString</a> representing either an absolute path or a real URL. </p>
<p>Use this method instead of </p>
<div class="fragment"><pre class="fragment"> <a class="codeRef" href="qstring.html">QString</a> someDir = ...
 <a class="code" href="classKURL.html" title="Represents and parses a URL.">KURL</a> url = someDir;
</pre></div><p>Otherwise some characters (e.g. the '#') won't be encoded properly.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>the string representation of the URL to convert</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the new <a class="el" href="classKURL.html" title="Represents and parses a URL.">KURL</a></dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a38ca30778962db93d7b47200b8e1578f" title="Returns the URL as a string depending if it is a local file.">pathOrURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a78d5d0d9c4e19289b7ff74f988538cc7" title="Usual constructor, to construct from a string.">KURL(const QString&amp;, int)</a></dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.1 </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02235">2235</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae086bae03d0eb7b01c1d4775ff008734"></a><!-- doxytag: member="KURL::hasHost" ref="ae086bae03d0eb7b01c1d4775ff008734" 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>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if this URL has a hostname included in it. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the URL has a non-empty host</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#adf3ad35581a0ca25ecc16e073f8275ca" title="Returns the decoded hostname included in the URL.">host()</a> </dd>
<dd>
<a class="el" href="classKURL.html#afbf05cea61e7c6f3c5de6a467d5f0534" title="Sets the hostname to include in the URL.">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>.</p>

</div>
</div>
<a class="anchor" id="a55f47b57289effd8e4bc7dc945b5b9f9"></a><!-- doxytag: member="KURL::hasHTMLRef" ref="a55f47b57289effd8e4bc7dc945b5b9f9" 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>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if there is an HTML-style reference. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the URL has an HTML-style reference</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#aed95d74660e8514cf91a9948ced8108c" title="Returns decoded the HTML-style reference (the part of the URL after &#39;#&#39;)">htmlRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a27c969dca60a800d96238ed18337d008" title="Returns the encoded HTML-style reference (the part of the URL after &#39;#&#39;)">encodedHtmlRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#abd27cfe74e1c54f0e1f43958d102f103" title="Sets the decoded HTML-style reference.">setHTMLRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#add38e3181b6ebf71290f0353d6630518" title="Tests if the URL has a reference part.">hasRef()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01925">1925</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab6aa391061678b69b314a6b403d0ace2"></a><!-- doxytag: member="KURL::hasPass" ref="ab6aa391061678b69b314a6b403d0ace2" 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>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if this URL has a password included in it. </p>
<dl class="note"><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#a3ee8660de05aaac5e90893ca87ab07fe" title="Sets the user name (login, user id, etc) to include in the URL.">setUser()</a>.</dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if there is a non-empty password set</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a0bd95e7e1a54ab12b56439495f00bff6" title="Returns the decoded password (corresponding to user()) included in the URL.">pass()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a34346c1a8873adc586efffb6d1376154" title="Sets the password (corresponding to user()) to include in the URL.">setPass()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a2c6b8f18351722e9280b99d869572989" title="Tests if this URL has a user name included in it.">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>.</p>

</div>
</div>
<a class="anchor" id="ad24bdff9a1df6735fe544c96cd7c30c1"></a><!-- doxytag: member="KURL::hasPath" ref="ad24bdff9a1df6735fe544c96cd7c30c1" 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>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if this URL has a path included in it. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if there is a non-empty path</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">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>.</p>

</div>
</div>
<a class="anchor" id="add38e3181b6ebf71290f0353d6630518"></a><!-- doxytag: member="KURL::hasRef" ref="add38e3181b6ebf71290f0353d6630518" 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>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if the URL has a reference part. </p>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a53f4194e147b11b678760340d62b3043" title="Returns the encoded reference of the URL.">ref()</a> </dd>
<dd>
<a class="el" href="classKURL.html#af531d16bdf3ac9a5a8ed27e16f61ebd7" title="Sets the encoded reference part (everything after &#39;#&#39;)">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>.</p>

</div>
</div>
<a class="anchor" id="a090c7e6d5d6293a6cbdde374bc1ebaeb"></a><!-- doxytag: member="KURL::hasSubURL" ref="a090c7e6d5d6293a6cbdde374bc1ebaeb" 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>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if the URL has any sub URLs. </p>
<p>See <a class="el" href="classKURL.html#a411d9ebf2f0c66e58721776271537316" title="Splits nested URLs into a list of URLs.">split()</a> for examples for sub URLs.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the file has at least one sub URL</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a411d9ebf2f0c66e58721776271537316" title="Splits nested URLs into a list of URLs.">split()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01441">1441</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2c6b8f18351722e9280b99d869572989"></a><!-- doxytag: member="KURL::hasUser" ref="a2c6b8f18351722e9280b99d869572989" 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>)</td>
          <td> 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 class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the URL has an non-empty user name</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ae5459bd5b7101d5bbfbff17ce2a43027" title="Returns the decoded user name (login, user id, etc) included in the URL.">user()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a3ee8660de05aaac5e90893ca87ab07fe" title="Sets the user name (login, user id, etc) to include in the URL.">setUser()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ab6aa391061678b69b314a6b403d0ace2" title="Tests if this URL has a password included in it.">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>.</p>

</div>
</div>
<a class="anchor" id="adf3ad35581a0ca25ecc16e073f8275ca"></a><!-- doxytag: member="KURL::host" ref="adf3ad35581a0ca25ecc16e073f8275ca" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::host </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the decoded hostname included in the URL. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the name of the host or <code>QString::null</code> if no host is set</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#afbf05cea61e7c6f3c5de6a467d5f0534" title="Sets the hostname to include in the URL.">setHost()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ae086bae03d0eb7b01c1d4775ff008734" title="Tests if this URL has a hostname included in it.">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>.</p>

</div>
</div>
<a class="anchor" id="aed95d74660e8514cf91a9948ced8108c"></a><!-- doxytag: member="KURL::htmlRef" ref="aed95d74660e8514cf91a9948ced8108c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::htmlRef </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> 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 class="return"><dt><b>Returns:</b></dt><dd>the HTML-style reference</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a27c969dca60a800d96238ed18337d008" title="Returns the encoded HTML-style reference (the part of the URL after &#39;#&#39;)">encodedHtmlRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#abd27cfe74e1c54f0e1f43958d102f103" title="Sets the decoded HTML-style reference.">setHTMLRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a55f47b57289effd8e4bc7dc945b5b9f9" title="Tests if there is an HTML-style reference.">hasHTMLRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a411d9ebf2f0c66e58721776271537316" title="Splits nested URLs into a list of URLs.">split()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a090c7e6d5d6293a6cbdde374bc1ebaeb" title="Tests if the URL has any sub URLs.">hasSubURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a53f4194e147b11b678760340d62b3043" title="Returns the encoded reference of the URL.">ref()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01888">1888</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1435c4cc9e9cda44c3490eba7a351101"></a><!-- doxytag: member="KURL::htmlURL" ref="a1435c4cc9e9cda44c3490eba7a351101" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::htmlURL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the URL as string, escaped for HTML. </p>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a9382bc0e035124e884f755cff962530f" title="Returns the URL as string in human-friendly format.">prettyURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a38ca30778962db93d7b47200b8e1578f" title="Returns the URL as a string depending if it is a local file.">pathOrURL()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01612">1612</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af10f805c72d7223d88d7499fc5f39bd2"></a><!-- doxytag: member="KURL::isEmpty" ref="af10f805c72d7223d88d7499fc5f39bd2" 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>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if the <a class="el" href="classKURL.html" title="Represents and parses a URL.">KURL</a> is empty. </p>
<p>An empty URL has neither path nor protocol set.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the URL is empty</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ad24bdff9a1df6735fe544c96cd7c30c1" title="Tests if this URL has a path included in it.">hasPath()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a4be1d1602a1d0f0afeee230167ebfdc4" title="Returns the protocol for the URL.">protocol()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ad8b823d40572ca24b6983d868847c251" title="Tests if the URL is well formed.">isValid()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00632">632</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a942448c47652c6453f3c6ce59ae62731"></a><!-- doxytag: member="KURL::isLocalFile" ref="a942448c47652c6453f3c6ce59ae62731" 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>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if the file is local. </p>
<dl class="return"><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#l01368">1368</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad4df233237b4d9e5f4fc53f909741142"></a><!-- doxytag: member="KURL::isMalformed" ref="ad4df233237b4d9e5f4fc53f909741142" 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>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if the URL is malformed. </p>
<dl class="return"><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 class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000064">Deprecated:</a></b></dt><dd>Use !isValid() instead</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ad8b823d40572ca24b6983d868847c251" title="Tests if the URL is well formed.">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>.</p>

</div>
</div>
<a class="anchor" id="a969ac5a396980191f14a459e1d0d6000"></a><!-- doxytag: member="KURL::isParentOf" ref="a969ac5a396980191f14a459e1d0d6000" 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;&#160;</td>
          <td class="paramname"><em>u</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if the given URL is parent of this URL. </p>
<p>For instance, <code>"ftp://host/dir/"</code> is a parent of <code>"ftp://host/dir/subdir/subsubdir/"</code>.</p>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a7d2e31526d61ed97a0132768d0270a3f" title="Changes the directory by descending into the given directory.">cd()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01186">1186</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa45474b065df2aa16142dc77500d6971"></a><!-- doxytag: member="KURL::isRelativeURL" ref="aa45474b065df2aa16142dc77500d6971" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url</em></td><td>)</td>
          <td><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>
<p>Convenience function.</p>
<p>Returns whether <code>_url</code> is likely to be a "relative" URL instead of an "absolute" URL.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the URL to examine </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> when the URL is likely to be "relative", <code>false</code> otherwise</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a7f7c85dfee5668f24aba599b7f05f175" title="Creates an URL relative to a base URL for a given input URL.">relativeURL()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00403">403</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad8b823d40572ca24b6983d868847c251"></a><!-- doxytag: member="KURL::isValid" ref="ad8b823d40572ca24b6983d868847c251" 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>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if the URL is well formed. </p>
<dl class="return"><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>.</p>

</div>
</div>
<a class="anchor" id="a95df01647f7ddf97be8c3ab018fd1f36"></a><!-- doxytag: member="KURL::join" ref="a95df01647f7ddf97be8c3ab018fd1f36" 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;&#160;</td>
          <td class="paramname"><em>_list</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Joins a list of URLs into a single URL with sub URLs. </p>
<p>Reverses <a class="el" href="classKURL.html#a411d9ebf2f0c66e58721776271537316" title="Splits nested URLs into a list of URLs.">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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_list</td><td>the list to join</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the joined URL or an invalid URL if the list is empty</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a411d9ebf2f0c66e58721776271537316" title="Splits nested URLs into a list of URLs.">split()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01654">1654</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0c6c2fbd2f62435d0fc5fdb675edf459"></a><!-- doxytag: member="KURL::operator!=" ref="a0c6c2fbd2f62435d0fc5fdb675edf459" 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;&#160;</td>
          <td class="paramname"><em>_u</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if this URL is different from the given one. </p>
<p>Tests by negating the result of <a class="el" href="classKURL.html#a16d4527245ef6a50d158240936be4775" title="Tests if this URL is equal to the given one.">operator==()</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_u</td><td>the URL to compare to</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the negated result of <a class="el" href="classKURL.html#a16d4527245ef6a50d158240936be4775" title="Tests if this URL is equal to the given one.">operator==()</a></dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a16d4527245ef6a50d158240936be4775" title="Tests if this URL is equal to the given one.">operator==()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ac60bdbc98263f470f5955ffc79cf95c3" title="Tests if this URL is less than the given URL.">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>.</p>

</div>
</div>
<a class="anchor" id="a3e2062c66a979effb804ea8444e1f159"></a><!-- doxytag: member="KURL::operator!=" ref="a3e2062c66a979effb804ea8444e1f159" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_u</em></td><td>)</td>
          <td> 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>
<p>Tests by negating the result of operator==(const QString &amp;)</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_u</td><td>the URL to compare to</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the negated result of operator==(const QString &amp;)</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>operator==(const QString &amp;) </dd>
<dd>
<a class="el" href="classKURL.html#ac60bdbc98263f470f5955ffc79cf95c3" title="Tests if this URL is less than the given URL.">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>.</p>

</div>
</div>
<a class="anchor" id="ac60bdbc98263f470f5955ffc79cf95c3"></a><!-- doxytag: member="KURL::operator&lt;" ref="ac60bdbc98263f470f5955ffc79cf95c3" 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;&#160;</td>
          <td class="paramname"><em>_u</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if this URL is less than the given URL. </p>
<p>The current URL is consideres <code>"less than"</code> then <code>_u</code> if (tested in this order):</p>
<ul>
<li>it is not valid but <code>_u</code> is. See <a class="el" href="classKURL.html#ad8b823d40572ca24b6983d868847c251" title="Tests if the URL is well formed.">isValid()</a></li>
<li>its protocol is "less than" <code>_u's</code> protocol. See <a class="el" href="classKURL.html#a4be1d1602a1d0f0afeee230167ebfdc4" title="Returns the protocol for the URL.">protocol()</a></li>
<li>its host is "less than" <code>_u's</code> host. See <a class="el" href="classKURL.html#adf3ad35581a0ca25ecc16e073f8275ca" title="Returns the decoded hostname included in the URL.">host()</a></li>
<li>its port is "less than" <code>_u's</code> port. See <a class="el" href="classKURL.html#a205598afc6842db13e4ad996ba1d9422" title="Returns the port number included in the URL.">port()</a></li>
<li>its path is "less than" <code>_u's</code> path. See <a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a></li>
<li>its encoded query is "less than" <code>_u's</code> encoded query. See <a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63" title="Returns the encoded query of the URL.">query()</a></li>
<li>its endoded reference is "less than" <code>_u's</code> encoded reference. See <a class="el" href="classKURL.html#a53f4194e147b11b678760340d62b3043" title="Returns the encoded reference of the URL.">ref()</a></li>
<li>its username is "less than" <code>_u's</code> username. See <a class="el" href="classKURL.html#ae5459bd5b7101d5bbfbff17ce2a43027" title="Returns the decoded user name (login, user id, etc) included in the URL.">user()</a></li>
<li>its password is "less than" <code>_u's</code> password. See <a class="el" href="classKURL.html#a0bd95e7e1a54ab12b56439495f00bff6" title="Returns the decoded password (corresponding to user()) included in the URL.">pass()</a></li>
</ul>
<p>Examples: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classKURL.html" title="Represents and parses a URL.">KURL</a> url1;
 <a class="code" href="classKURL.html" title="Represents and parses a URL.">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#a8992baac621d32c2aed7c97a26362b8d" title="Sets the protocol for the URL.">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#a8992baac621d32c2aed7c97a26362b8d" title="Sets the protocol for the URL.">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#a8992baac621d32c2aed7c97a26362b8d" title="Sets the protocol for the URL.">setProtocol</a>( <span class="stringliteral">&quot;http&quot;</span> );
 url2.setProtocol( <span class="stringliteral">&quot;https&quot;</span> );
 lessThan = url1 &lt; url2;            <span class="comment">// true. &quot;http&quot; &lt; &quot;https&quot;</span>

 url2.<a class="code" href="classKURL.html#afbf05cea61e7c6f3c5de6a467d5f0534" title="Sets the hostname to include in the URL.">setHost</a>( <span class="stringliteral">&quot;api.kde.org&quot;</span> );
 url2.setProtocol( <span class="stringliteral">&quot;http&quot;</span> );
 url2.setProtocol( <span class="stringliteral">&quot;www.kde.org&quot;</span> );
 lessThan = url1 &lt; url2;            <span class="comment">// true. protocols equal and &quot;api&quot; &lt; &quot;www&quot;</span>

 url1.<a class="code" href="classKURL.html#a8992baac621d32c2aed7c97a26362b8d" title="Sets the protocol for the URL.">setProtocol</a>( <span class="stringliteral">&quot;https&quot;</span> );
 url2.setProtocol( <span class="stringliteral">&quot;http&quot;</span> );
 lessThan = url1 &lt; url2;            <span class="comment">// false. &quot;https&quot; &gt; &quot;http&quot;. host doesn&#39;t matter yet</span>
</pre></div><dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_u</td><td>the URL to compare to</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a16d4527245ef6a50d158240936be4775" title="Tests if this URL is equal to the given one.">operator==()</a> </dd>
<dd>
<a class="elRef" href="qstring.html#compare">QString::compare()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01084">1084</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a86078b56b4e196780e343001263d4545"></a><!-- doxytag: member="KURL::operator=" ref="a86078b56b4e196780e343001263d4545" 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;&#160;</td>
          <td class="paramname"><em>_u</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copies the values of the given URL into this one. </p>
<p>Just assigns each member using the member's assignment operator.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_u</td><td>the URL to take the values from</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this URL (*this)</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01067">1067</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7803b7119921a664d389e9c85b7742e0"></a><!-- doxytag: member="KURL::operator=" ref="a7803b7119921a664d389e9c85b7742e0" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assigns the URL, given as a string, to this one. </p>
<p>This will reset the current URL and parse the given string. See the similar constructor for known limitations.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the <a class="elRef" href="qstring.html">QString</a> to parse for values</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this URL (*this)</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a78d5d0d9c4e19289b7ff74f988538cc7" title="Usual constructor, to construct from a string.">KURL(const QString &amp;, int)</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01032">1032</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a43257e96a858a015009ea2816b88f69c"></a><!-- doxytag: member="KURL::operator=" ref="a43257e96a858a015009ea2816b88f69c" 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 *&#160;</td>
          <td class="paramname"><em>_url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assigns the URL, given as a C string, to this one. </p>
<p>This will reset the current URL and parse the given string. See the similar constructor for known limitations.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the C string to parse for values</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this URL (*this)</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a> </dd>
<dd>
<a class="el" href="classKURL.html#adbc4e9b6cb078e26e5b220b1fe9b3cfa" title="Constructor taking an URL encoded in a C string.">KURL(const char *, int)</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01040">1040</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a678569f3199c222f99701bdbfb091ea3"></a><!-- doxytag: member="KURL::operator=" ref="a678569f3199c222f99701bdbfb091ea3" 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" href="qurl.html">QUrl</a> &amp;&#160;</td>
          <td class="paramname"><em>u</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assigns the URL, given as a <a class="elRef" href="qt.html">Qt</a> URL, to this one. </p>
<p>This will reset the current URL and parse the given string.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">u</td><td>the <a class="elRef" href="qt.html">Qt</a> URL to take the values from</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to this URL (*this)</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ada858afd3328c262dc57ec6a31934013" title="Constructor taking a Qt URL.">KURL(const QUrl &amp;)</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01049">1049</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a16d4527245ef6a50d158240936be4775"></a><!-- doxytag: member="KURL::operator==" ref="a16d4527245ef6a50d158240936be4775" 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;&#160;</td>
          <td class="paramname"><em>_u</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if this URL is equal to the given one. </p>
<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>
<p>Same as <a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a> when used with <code>ignore_trailing</code> set to <code>false</code> (default)</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_u</td><td>the URL to compare to</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ad8b823d40572ca24b6983d868847c251" title="Tests if the URL is well formed.">isValid()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a0c6c2fbd2f62435d0fc5fdb675edf459" title="Tests if this URL is different from the given one.">operator!=()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ac60bdbc98263f470f5955ffc79cf95c3" title="Tests if this URL is less than the given URL.">operator&lt;()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01125">1125</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a405d73554b97daca3568a0a554e2cc58"></a><!-- doxytag: member="KURL::operator==" ref="a405d73554b97daca3568a0a554e2cc58" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_u</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tests if this URL is equal to the one given as a string. </p>
<p>Creates a <a class="el" href="classKURL.html" title="Represents and parses a URL.">KURL</a> instance for <code>_u</code> and compares with that using the equality operator for two KURLs.</p>
<p>See the respective constructor for known limitations.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_u</td><td>the string to compare to</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a78d5d0d9c4e19289b7ff74f988538cc7" title="Usual constructor, to construct from a string.">KURL(const QString &amp;, int)</a> </dd>
<dd>
operator==(const KURL &amp;) </dd>
<dd>
<a class="el" href="classKURL.html#a373b2cd2d283db2a94f7cf00483d5111" title="Compares this URL with another one.">equals()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ad8b823d40572ca24b6983d868847c251" title="Tests if the URL is well formed.">isValid()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a0c6c2fbd2f62435d0fc5fdb675edf459" title="Tests if this URL is different from the given one.">operator!=()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ac60bdbc98263f470f5955ffc79cf95c3" title="Tests if this URL is less than the given URL.">operator&lt;()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01148">1148</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab3e311c1974098c707b94e7b7eb2ec74"></a><!-- doxytag: member="KURL::parse" ref="ab3e311c1974098c707b94e7b7eb2ec74" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the string to parse </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a> </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00637">637</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9266785d84b7b41c78b1336592198a86"></a><!-- doxytag: member="KURL::parseMailto" ref="a9266785d84b7b41c78b1336592198a86" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses the given string and fills the URL's values on success. </p>
<p>Treats the string as a <code>"mailto:"</code> URI.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the string to parse </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a> </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00740">740</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4429a776e21ea5a2112c1dad318a8d15"></a><!-- doxytag: member="KURL::parseRawURI" ref="a4429a776e21ea5a2112c1dad318a8d15" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses the given string and fills the URL's values on success. </p>
<p>Treats the string as a generic URI.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the string to parse </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a> </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00707">707</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1005b451c6beee15b87bfe498b2e1f90"></a><!-- doxytag: member="KURL::parseURL" ref="a1005b451c6beee15b87bfe498b2e1f90" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses the given string and fills the URL's values on success. </p>
<p>Treats the string as an URL.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the string to parse </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a> </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00759">759</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0bd95e7e1a54ab12b56439495f00bff6"></a><!-- doxytag: member="KURL::pass" ref="a0bd95e7e1a54ab12b56439495f00bff6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::pass </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the decoded password (corresponding to <a class="el" href="classKURL.html#ae5459bd5b7101d5bbfbff17ce2a43027" title="Returns the decoded user name (login, user id, etc) included in the URL.">user()</a>) included in the URL. </p>
<dl class="note"><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#a3ee8660de05aaac5e90893ca87ab07fe" title="Sets the user name (login, user id, etc) to include in the URL.">setUser()</a>.</dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the password or <code>QString::null</code> if it does not exist</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a34346c1a8873adc586efffb6d1376154" title="Sets the password (corresponding to user()) to include in the URL.">setPass()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ab6aa391061678b69b314a6b403d0ace2" title="Tests if this URL has a password included in it.">hasPass()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a2c6b8f18351722e9280b99d869572989" title="Tests if this URL has a user name included in it.">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>.</p>

</div>
</div>
<a class="anchor" id="a0fd6a984e0f2e0fe38e1f67a11a98ff9"></a><!-- doxytag: member="KURL::path" ref="a0fd6a984e0f2e0fe38e1f67a11a98ff9" args="(int _trailing) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::path </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_trailing</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current decoded path. </p>
<p>This does <em>not</em> include the query, see <a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63" title="Returns the encoded query of the URL.">query()</a> for accessing it.</p>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_trailing</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>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ad24bdff9a1df6735fe544c96cd7c30c1" title="Tests if this URL has a path included in it.">hasPath()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a13576bca04c106cb92a7c33c36495654" title="Adds or removes a trailing slash to/from the path.">adjustPath()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01363">1363</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="add464ac157c5ee326847ddaef7ae2d19"></a><!-- doxytag: member="KURL::path" ref="add464ac157c5ee326847ddaef7ae2d19" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::path </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current decoded path. </p>
<p>This does <em>not</em> include the query.</p>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd>path(int) </dd>
<dd>
<a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ad24bdff9a1df6735fe544c96cd7c30c1" title="Tests if this URL has a path included in it.">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>.</p>

</div>
</div>
<a class="anchor" id="a38ca30778962db93d7b47200b8e1578f"></a><!-- doxytag: member="KURL::pathOrURL" ref="a38ca30778962db93d7b47200b8e1578f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::pathOrURL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the URL as a string depending if it is a local file. </p>
<p>It will be either the URL (as <a class="el" href="classKURL.html#a9382bc0e035124e884f755cff962530f" title="Returns the URL as string in human-friendly format.">prettyURL()</a> would return) or, when the URL is a local file without query or ref, the <a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a>.</p>
<p>Use this method, together with its opposite, <a class="el" href="classKURL.html#a5c3370590e8fbae93d5c10197489fcfc" title="Creates a KURL object from a QString representing either an absolute path or a real URL...">fromPathOrURL()</a>, to display and even let the user edit URLs.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the path or URL string depending on its properties</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a9382bc0e035124e884f755cff962530f" title="Returns the URL as string in human-friendly format.">prettyURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> </dd>
<dd>
<a class="el" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a942448c47652c6453f3c6ce59ae62731" title="Tests if the file is local.">isLocalFile()</a></dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01603">1603</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a205598afc6842db13e4ad996ba1d9422"></a><!-- doxytag: member="KURL::port" ref="a205598afc6842db13e4ad996ba1d9422" 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>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the port number included in the URL. </p>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a872ff8bd98d746e3356d9331d55421e8" title="Sets the port number to include in the URL.">setPort()</a> </dd>
<dd>
<a class="el" href="classKURL.html#adf3ad35581a0ca25ecc16e073f8275ca" title="Returns the decoded hostname included in the URL.">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>.</p>

</div>
</div>
<a class="anchor" id="ac12929211bbe1263cfad92d6e246d501"></a><!-- doxytag: member="KURL::prettyURL" ref="ac12929211bbe1263cfad92d6e246d501" args="(int _trailing, AdjustementFlags _flags) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::prettyURL </td>
          <td>(</td>
          <td class="paramtype">int&#160;</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#a316e98d10f9c4dfd570f99c179e8b621">AdjustementFlags</a>&#160;</td>
          <td class="paramname"><em>_flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> 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#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url()</a> if you need to have it in the string.</p>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_trailing</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 class="paramname">_flags</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#a38ca30778962db93d7b47200b8e1578f" title="Returns the URL as a string depending if it is a local file.">pathOrURL()</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a9382bc0e035124e884f755cff962530f" title="Returns the URL as string in human-friendly format.">prettyURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a38ca30778962db93d7b47200b8e1578f" title="Returns the URL as a string depending if it is a local file.">pathOrURL()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01591">1591</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9382bc0e035124e884f755cff962530f"></a><!-- doxytag: member="KURL::prettyURL" ref="a9382bc0e035124e884f755cff962530f" args="(int _trailing=0) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::prettyURL </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_trailing</em> = <code>0</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the URL as string in human-friendly format. </p>
<p>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#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url()</a> if you need to have it in the string.</p>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_trailing</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>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">url()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a38ca30778962db93d7b47200b8e1578f" title="Returns the URL as a string depending if it is a local file.">pathOrURL()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01524">1524</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4be1d1602a1d0f0afeee230167ebfdc4"></a><!-- doxytag: member="KURL::protocol" ref="a4be1d1602a1d0f0afeee230167ebfdc4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::protocol </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the protocol for the URL. </p>
<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 class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a8992baac621d32c2aed7c97a26362b8d" title="Sets the protocol for the URL.">setProtocol()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ad8b823d40572ca24b6983d868847c251" title="Tests if the URL is well formed.">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>.</p>

</div>
</div>
<a class="anchor" id="a0a28c0873806d04a7fd4e19feeb4bd63"></a><!-- doxytag: member="KURL::query" ref="a0a28c0873806d04a7fd4e19feeb4bd63" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::query </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the encoded query of the URL. </p>
<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 class="return"><dt><b>Returns:</b></dt><dd>the encoded query or <code>QString::null</code> if there is none</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a9ffeaee79924b4156f5816fc95f874e5" title="Sets the encoded query of the URL.">setQuery()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02059">2059</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a84d79633bc77b8dda2a91977a6ba0594"></a><!-- doxytag: member="KURL::queryItem" ref="a84d79633bc77b8dda2a91977a6ba0594" 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" href="qstring.html">QString</a> KURL::queryItem </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the value of a certain query item. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td>item whose value we want </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of encoding of query. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a324fac18c2e755dc1cc0b479b75a1bbb" title="Adds an additional query item.">addQueryItem()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a86529c33c0fd3f281fdc2e8b01f2d84c" title="Removea an item from the query.">removeQueryItem()</a> </dd>
<dd>
queryItems() </dd>
<dd>
<a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63" title="Returns the encoded query of the URL.">query()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02175">2175</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a24115e5a48e1ea3a5247002dcbf3a18e"></a><!-- doxytag: member="KURL::queryItem" ref="a24115e5a48e1ea3a5247002dcbf3a18e" args="(const QString &amp;item) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::queryItem </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the value of a certain query item. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td>item whose value we want</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a324fac18c2e755dc1cc0b479b75a1bbb" title="Adds an additional query item.">addQueryItem()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a86529c33c0fd3f281fdc2e8b01f2d84c" title="Removea an item from the query.">removeQueryItem()</a> </dd>
<dd>
queryItems() </dd>
<dd>
<a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63" title="Returns the encoded query of the URL.">query()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02170">2170</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae52346d421301e1108b6c19cfd33294f"></a><!-- doxytag: member="KURL::queryItems" ref="ae52346d421301e1108b6c19cfd33294f" args="(int options, int encoding_hint) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qmap.html">QMap</a>&lt; <a class="elRef" href="qstring.html">QString</a>, <a class="elRef" href="qstring.html">QString</a> &gt; KURL::queryItems </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the list of query items as a map mapping keys to values. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">options</td><td>any of QueryItemsOptions <em>OR</em>ed together </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of encoding of query. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><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 class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a24115e5a48e1ea3a5247002dcbf3a18e" title="Returns the value of a certain query item.">queryItem()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a324fac18c2e755dc1cc0b479b75a1bbb" title="Adds an additional query item.">addQueryItem()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a86529c33c0fd3f281fdc2e8b01f2d84c" title="Removea an item from the query.">removeQueryItem()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63" title="Returns the encoded query of the URL.">query()</a></dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.1 </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02139">2139</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a53f4194e147b11b678760340d62b3043"></a><!-- doxytag: member="KURL::ref" ref="a53f4194e147b11b678760340d62b3043" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::ref </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the encoded reference of the URL. </p>
<p>The reference is <em>never</em> decoded automatically.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the undecoded reference, or <code>QString::null</code> if there is none</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#af531d16bdf3ac9a5a8ed27e16f61ebd7" title="Sets the encoded reference part (everything after &#39;#&#39;)">setRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#add38e3181b6ebf71290f0353d6630518" title="Tests if the URL has a reference part.">hasRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#aed95d74660e8514cf91a9948ced8108c" title="Returns decoded the HTML-style reference (the part of the URL after &#39;#&#39;)">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>.</p>

</div>
</div>
<a class="anchor" id="a8cc9fd7108ba1c161dcc88993e8e4923"></a><!-- doxytag: member="KURL::relativePath" ref="a8cc9fd7108ba1c161dcc88993e8e4923" 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" href="qstring.html">QString</a> KURL::relativePath </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>base_dir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>isParent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><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>
<p>Convenience function</p>
<p>Returns a relative path based on <code>base_dir</code> that points to <code>path</code>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">base_dir</td><td>the base directory to derive from </td></tr>
    <tr><td class="paramname">path</td><td>the new target directory </td></tr>
    <tr><td class="paramname">isParent</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>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a7f7c85dfee5668f24aba599b7f05f175" title="Creates an URL relative to a base URL for a given input URL.">relativeURL()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02285">2285</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7f7c85dfee5668f24aba599b7f05f175"></a><!-- doxytag: member="KURL::relativeURL" ref="a7f7c85dfee5668f24aba599b7f05f175" 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" href="qstring.html">QString</a> KURL::relativeURL </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKURL.html">KURL</a> &amp;&#160;</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;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><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>
<p>Convenience function</p>
<p>Returns a "relative URL" based on <code>base_url</code> that points to <code>url</code>.</p>
<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 class="note"><dt><b>Note:</b></dt><dd>if <code>base_url</code> represents a directory, it should contain a trailing slash</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">base_url</td><td>the URL to derive from </td></tr>
    <tr><td class="paramname">url</td><td>the URL to point to relatively from <code>base_url</code> </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of <code>str</code> . See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#aa45474b065df2aa16142dc77500d6971" title="Tests if a given URL is a relative as opposed to an absolute URL.">isRelativeURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a8cc9fd7108ba1c161dcc88993e8e4923" title="Creates a path relative to a base path for a given input path.">relativePath()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a13576bca04c106cb92a7c33c36495654" title="Adds or removes a trailing slash to/from the path.">adjustPath()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02299">2299</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a86529c33c0fd3f281fdc2e8b01f2d84c"></a><!-- doxytag: member="KURL::removeQueryItem" ref="a86529c33c0fd3f281fdc2e8b01f2d84c" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removea an item from the query. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_item</td><td>name of item to remove</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a324fac18c2e755dc1cc0b479b75a1bbb" title="Adds an additional query item.">addQueryItem()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a24115e5a48e1ea3a5247002dcbf3a18e" title="Returns the value of a certain query item.">queryItem()</a> </dd>
<dd>
queryItems() </dd>
<dd>
<a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63" title="Returns the encoded query of the URL.">query()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02201">2201</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a508a4c6026a031a52d4c854a26cce536"></a><!-- doxytag: member="KURL::reset" ref="a508a4c6026a031a52d4c854a26cce536" 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>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resets the members to their "null" state. </p>
<p>All <a class="elRef" 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>
<p>This is like assigning a null URL, but more efficient as it doesn't require the temporary object.</p>
<p>Called by constructors, assignment operators and the parse methods in case of a parsing error.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ad8b823d40572ca24b6983d868847c251" title="Tests if the URL is well formed.">isValid()</a> </dd>
<dd>
<a class="el" href="classKURL.html#af10f805c72d7223d88d7499fc5f39bd2" title="Tests if the KURL is empty.">isEmpty()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l00617">617</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a35ef4c9ffe4fa877f30c53ccfaf5a293"></a><!-- doxytag: member="KURL::setDirectory" ref="a35ef4c9ffe4fa877f30c53ccfaf5a293" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>dir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the directory of the path, leaving the filename empty. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dir</td><td>the decoded directory to set</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a0ff924855867aa98d0cbb5f3f20f4f87" title="Returns the directory of the path.">directory()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a8a068268c1128fea91eb2cc17ccad5ce" title="Sets the filename of the path.">setFileName()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02004">2004</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aab26a52864a868ea2eddb5e9e7c9057e"></a><!-- doxytag: member="KURL::setEncodedPath" ref="aab26a52864a868ea2eddb5e9e7c9057e" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_txt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the (already encoded) path of the URL. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_txt</td><td>the new encoded path </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of <code>_txt</code> . See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ad243d1d3d12cdf0828b95203dc440284" title="Sets both path and query of the URL in their encoded form.">setEncodedPathAndQuery()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01334">1334</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad243d1d3d12cdf0828b95203dc440284"></a><!-- doxytag: member="KURL::setEncodedPathAndQuery" ref="ad243d1d3d12cdf0828b95203dc440284" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_txt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets both path and query of the URL in their encoded form. </p>
<p>This is useful for HTTP. It looks first for <code>'</code>?' and decodes then, see <a class="el" href="classKURL.html#aab26a52864a868ea2eddb5e9e7c9057e" title="Sets the (already encoded) path of the URL.">setEncodedPath()</a>. The encoded path is the concatenation of the current path and the query.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_txt</td><td>the new encoded path and encoded query </td></tr>
    <tr><td class="paramname">encoding_hint</td><td>MIB of original encoding of <code>_txt</code> . See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a12bb2c946469dafcc86989b2bca4dd4c" title="Returns the encoded path and the query.">encodedPathAndQuery()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a9ffeaee79924b4156f5816fc95f874e5" title="Sets the encoded query of the URL.">setQuery()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01348">1348</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac3baacf0bb1d8f98970ea301a576dcdd"></a><!-- doxytag: member="KURL::setFileEncoding" ref="ac3baacf0bb1d8f98970ea301a576dcdd" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>encoding</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds file encoding information. </p>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">encoding</td><td>the encoding to add or <code>QString::null</code> to remove the encoding</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a49785c16a6ee9805236aaa210dfde124" title="Returns encoding information of the URL.">fileEncoding()</a> </dd>
<dd>
<a class="elRef" href="qtextcodec.html#codecForName">QTextCodec::codecForName()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01387">1387</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8a068268c1128fea91eb2cc17ccad5ce"></a><!-- doxytag: member="KURL::setFileName" ref="a8a068268c1128fea91eb2cc17ccad5ce" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_txt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the filename of the path. </p>
<p>In comparison to <a class="el" href="classKURL.html#a22950393da23aff8dc71dd86cdad9a1b" title="Adds to the current path.">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>
<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>
<p>Any reference is reset.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_txt</td><td>the filename to be set. It is considered to be decoded</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a0634d0fc02c9883ca164966b4764a692" title="Returns the filename of the path.">fileName()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a35ef4c9ffe4fa877f30c53ccfaf5a293" title="Sets the directory of the path, leaving the filename empty.">setDirectory()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a6c0a0828b4b9f1126b13380076e2b2f3" title="Sets the decoded path of the URL.">setPath()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01218">1218</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="afbf05cea61e7c6f3c5de6a467d5f0534"></a><!-- doxytag: member="KURL::setHost" ref="afbf05cea61e7c6f3c5de6a467d5f0534" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_txt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the hostname to include in the URL. </p>
<p>Special characters in the hostname will appear encoded in the URL.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_txt</td><td>the new name of the host or QString::null to remove the host</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#adf3ad35581a0ca25ecc16e073f8275ca" title="Returns the decoded hostname included in the URL.">host()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ae086bae03d0eb7b01c1d4775ff008734" title="Tests if this URL has a hostname included in it.">hasHost()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01963">1963</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abd27cfe74e1c54f0e1f43958d102f103"></a><!-- doxytag: member="KURL::setHTMLRef" ref="abd27cfe74e1c54f0e1f43958d102f103" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_ref</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the decoded HTML-style reference. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_ref</td><td>the new reference. This is considered to be <em>not</em> encoded in contrast to <a class="el" href="classKURL.html#af531d16bdf3ac9a5a8ed27e16f61ebd7" title="Sets the encoded reference part (everything after &#39;#&#39;)">setRef()</a>. Use <code>QString::null</code> to remove it</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#aed95d74660e8514cf91a9948ced8108c" title="Returns decoded the HTML-style reference (the part of the URL after &#39;#&#39;)">htmlRef()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a55f47b57289effd8e4bc7dc945b5b9f9" title="Tests if there is an HTML-style reference.">hasHTMLRef()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01910">1910</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a34346c1a8873adc586efffb6d1376154"></a><!-- doxytag: member="KURL::setPass" ref="a34346c1a8873adc586efffb6d1376154" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_txt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the password (corresponding to <a class="el" href="classKURL.html#ae5459bd5b7101d5bbfbff17ce2a43027" title="Returns the decoded user name (login, user id, etc) included in the URL.">user()</a>) to include in the URL. </p>
<p>Special characters in the password will appear encoded in the URL. </p>
<dl class="note"><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#a3ee8660de05aaac5e90893ca87ab07fe" title="Sets the user name (login, user id, etc) to include in the URL.">setUser()</a>.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_txt</td><td>the password to set or <code>QString::null</code> to remove the password</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a0bd95e7e1a54ab12b56439495f00bff6" title="Returns the decoded password (corresponding to user()) included in the URL.">pass()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ab6aa391061678b69b314a6b403d0ace2" title="Tests if this URL has a password included in it.">hasPass()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a2c6b8f18351722e9280b99d869572989" title="Tests if this URL has a user name included in it.">hasUser()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01954">1954</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6c0a0828b4b9f1126b13380076e2b2f3"></a><!-- doxytag: member="KURL::setPath" ref="a6c0a0828b4b9f1126b13380076e2b2f3" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the decoded path of the URL. </p>
<p>This does <em>not</em> changed the query, see <a class="el" href="classKURL.html#a9ffeaee79924b4156f5816fc95f874e5" title="Sets the encoded query of the URL.">setQuery()</a> for that.</p>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>the new, decoded, path or <code>QString::null</code> to remove the path</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> </dd>
<dd>
path(int) </dd>
<dd>
<a class="el" href="classKURL.html#ad24bdff9a1df6735fe544c96cd7c30c1" title="Tests if this URL has a path included in it.">hasPath()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01990">1990</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a872ff8bd98d746e3356d9331d55421e8"></a><!-- doxytag: member="KURL::setPort" ref="a872ff8bd98d746e3356d9331d55421e8" 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&#160;</td>
          <td class="paramname"><em>_p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the port number to include in the URL. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_p</td><td>the new port number or <code>0</code> to have no port number</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a205598afc6842db13e4ad996ba1d9422" title="Returns the port number included in the URL.">port()</a> </dd>
<dd>
<a class="el" href="classKURL.html#afbf05cea61e7c6f3c5de6a467d5f0534" title="Sets the hostname to include in the URL.">setHost()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01985">1985</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8992baac621d32c2aed7c97a26362b8d"></a><!-- doxytag: member="KURL::setProtocol" ref="a8992baac621d32c2aed7c97a26362b8d" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_txt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the protocol for the URL. </p>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_txt</td><td>the new protocol of the URL (without colon)</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a4be1d1602a1d0f0afeee230167ebfdc4" title="Returns the protocol for the URL.">protocol()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01937">1937</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9ffeaee79924b4156f5816fc95f874e5"></a><!-- doxytag: member="KURL::setQuery" ref="a9ffeaee79924b4156f5816fc95f874e5" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_txt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the encoded query of the URL. </p>
<p>The query should start with a <code>'</code>?'. If it doesn't <code>'</code>?' is prepended.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_txt</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 class="paramname">encoding_hint</td><td>MIB of the encoding. Reserved, should be <code>0</code> . See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a0a28c0873806d04a7fd4e19feeb4bd63" title="Returns the encoded query of the URL.">query()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02012">2012</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af531d16bdf3ac9a5a8ed27e16f61ebd7"></a><!-- doxytag: member="KURL::setRef" ref="af531d16bdf3ac9a5a8ed27e16f61ebd7" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_txt</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the encoded reference part (everything after <code>'#'</code>) </p>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_txt</td><td>the encoded reference or <code>QString::null</code> to remove it</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a53f4194e147b11b678760340d62b3043" title="Returns the encoded reference of the URL.">ref()</a> </dd>
<dd>
<a class="el" href="classKURL.html#add38e3181b6ebf71290f0353d6630518" title="Tests if the URL has a reference part.">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>.</p>

</div>
</div>
<a class="anchor" id="a3ee8660de05aaac5e90893ca87ab07fe"></a><!-- doxytag: member="KURL::setUser" ref="a3ee8660de05aaac5e90893ca87ab07fe" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_txt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the user name (login, user id, etc) to include in the URL. </p>
<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#a34346c1a8873adc586efffb6d1376154" title="Sets the password (corresponding to user()) to include in the URL.">setPass()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_txt</td><td>the name of the user or <code>QString::null</code> to remove the user</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ae5459bd5b7101d5bbfbff17ce2a43027" title="Returns the decoded user name (login, user id, etc) included in the URL.">user()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a2c6b8f18351722e9280b99d869572989" title="Tests if this URL has a user name included in it.">hasUser()</a> </dd>
<dd>
<a class="el" href="classKURL.html#ab6aa391061678b69b314a6b403d0ace2" title="Tests if this URL has a password included in it.">hasPass()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01945">1945</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a411d9ebf2f0c66e58721776271537316"></a><!-- doxytag: member="KURL::split" ref="a411d9ebf2f0c66e58721776271537316" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Splits nested URLs into a list of URLs. </p>
<p>Example for a nested URL: </p>
<div class="fragment"><pre class="fragment"> file:<span class="comment">///home/weis/kde.tgz#gzip:/#tar:/kdebase</span>
</pre></div><p> 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>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the URL that has to be split</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an empty list on error or the list of split URLs</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a090c7e6d5d6293a6cbdde374bc1ebaeb" title="Tests if the URL has any sub URLs.">hasSubURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a78d5d0d9c4e19289b7ff74f988538cc7" title="Usual constructor, to construct from a string.">KURL(const QString&amp;, int)</a> </dd>
<dd>
<a class="el" href="classKURL.html#a95df01647f7ddf97be8c3ab018fd1f36" title="Joins a list of URLs into a single URL with sub URLs.">join()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01649">1649</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5345022be672d2d6c646826d0b1f6af0"></a><!-- doxytag: member="KURL::split" ref="a5345022be672d2d6c646826d0b1f6af0" 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;&#160;</td>
          <td class="paramname"><em>_url</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Splits nested URLs into a list of URLs. </p>
<p>Example for a nested URL: </p>
<div class="fragment"><pre class="fragment"> file:<span class="comment">///home/weis/kde.tgz#gzip:/#tar:/kdebase</span>
</pre></div><p> 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>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the URL that has to be split</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>an empty list on error or the list of split URLs</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a090c7e6d5d6293a6cbdde374bc1ebaeb" title="Tests if the URL has any sub URLs.">hasSubURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a95df01647f7ddf97be8c3ab018fd1f36" title="Joins a list of URLs into a single URL with sub URLs.">join()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01617">1617</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acb769056af19c8c4b0458f9a6b317343"></a><!-- doxytag: member="KURL::upURL" ref="acb769056af19c8c4b0458f9a6b317343" 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>)</td>
          <td> 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>
<p>This function is useful to implement the "Up" button in a file manager for example. <a class="el" href="classKURL.html#a7d2e31526d61ed97a0132768d0270a3f" title="Changes the directory by descending into the given directory.">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 class="return"><dt><b>Returns:</b></dt><dd>a URL that is a level higher</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a7d2e31526d61ed97a0132768d0270a3f" title="Changes the directory by descending into the given directory.">cd()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a411d9ebf2f0c66e58721776271537316" title="Splits nested URLs into a list of URLs.">split()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a090c7e6d5d6293a6cbdde374bc1ebaeb" title="Tests if the URL has any sub URLs.">hasSubURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#add464ac157c5ee326847ddaef7ae2d19" title="Returns the current decoded path.">path()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01852">1852</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5f99cb1b7d49f3ddb2a56aa036957269"></a><!-- doxytag: member="KURL::uriMode" ref="a5f99cb1b7d49f3ddb2a56aa036957269" 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>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the URI processing mode for the URL. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the URI processing mode set for this URL</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25" title="Defines the type of URI we are processing.">URIMode</a> </dd>
<dd>
<a class="el" href="classKURL.html#ad400be8a7ea5af29184581da39abe7ce" title="Determines which URI mode is suitable for processing URIs of a given protocol.">uriModeForProtocol()</a></dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02332">2332</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad400be8a7ea5af29184581da39abe7ce"></a><!-- doxytag: member="KURL::uriModeForProtocol" ref="ad400be8a7ea5af29184581da39abe7ce" args="(const QString &amp;protocol)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKURL.html#ae02a2dbcced8e7219eec8d30bada0d25">KURL::URIMode</a> KURL::uriModeForProtocol </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>protocol</em></td><td>)</td>
          <td><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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">protocol</td><td>the protocol name. See <a class="el" href="classKURL.html#a4be1d1602a1d0f0afeee230167ebfdc4" title="Returns the protocol for the URL.">protocol()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the URIMode suitable for the given protocol</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a5f99cb1b7d49f3ddb2a56aa036957269" title="Returns the URI processing mode for the URL.">uriMode()</a></dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02337">2337</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aaf8593b924647a9db73016fbeab1812a"></a><!-- doxytag: member="KURL::url" ref="aaf8593b924647a9db73016fbeab1812a" 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" href="qstring.html">QString</a> KURL::url </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_trailing</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>encoding_hint</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> 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>
<p>This is used in particular for encoding URLs in UTF-8 before using them in a drag and drop operation.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>that the string returned by <a class="el" href="classKURL.html#aaf8593b924647a9db73016fbeab1812a" title="Returns the URL as string, with all escape sequences intact, encoded in a given charset.">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#a9382bc0e035124e884f755cff962530f" title="Returns the URL as string in human-friendly format.">prettyURL()</a>.</dd></dl>
<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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_trailing</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 class="paramname">encoding_hint</td><td>MIB of encoding to use. See <a class="elRef" href="qtextcodec.html#mibEnum">QTextCodec::mibEnum()</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the complete URL, with all escape sequences intact, encoded in a given charset</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a9382bc0e035124e884f755cff962530f" title="Returns the URL as string in human-friendly format.">prettyURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a38ca30778962db93d7b47200b8e1578f" title="Returns the URL as a string depending if it is a local file.">pathOrURL()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a1435c4cc9e9cda44c3490eba7a351101" title="Returns the URL as string, escaped for HTML.">htmlURL()</a> </dd></dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l01464">1464</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae5459bd5b7101d5bbfbff17ce2a43027"></a><!-- doxytag: member="KURL::user" ref="ae5459bd5b7101d5bbfbff17ce2a43027" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KURL::user </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> 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 class="return"><dt><b>Returns:</b></dt><dd>the user name or <code>QString::null</code> if there is no user name</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKURL.html#a3ee8660de05aaac5e90893ca87ab07fe" title="Sets the user name (login, user id, etc) to include in the URL.">setUser()</a> </dd>
<dd>
<a class="el" href="classKURL.html#a2c6b8f18351722e9280b99d869572989" title="Tests if this URL has a user name included in it.">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>.</p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a2694d0d7d254eacf3c39cf3eebe17eda"></a><!-- doxytag: member="KURL::urlcmp" ref="a2694d0d7d254eacf3c39cf3eebe17eda" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><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>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02081">2081</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0b58ea663513546270fd380a811b209a"></a><!-- doxytag: member="KURL::urlcmp" ref="a0b58ea663513546270fd380a811b209a" 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" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_url2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>_ignore_trailing</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>_ignore_ref</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url1</td><td>A reference URL </td></tr>
    <tr><td class="paramname">_url2</td><td>A URL that will be compared with the reference URL </td></tr>
    <tr><td class="paramname">_ignore_trailing</td><td>Described in <a class="el" href="classKURL.html#ae52a2ef0548958a5e0586182016834da" title="Compares this URL with another one.">KURL::cmp</a> </td></tr>
    <tr><td class="paramname">_ignore_ref</td><td>If true, disables comparison of HTML-style references. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kurl_8cpp_source.html#l02100">2100</a> of file <a class="el" href="kurl_8cpp_source.html">kurl.cpp</a>.</p>

</div>
</div>
<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>
<li><a class="el" href="kurl_8cpp_source.html">kurl.cpp</a></li>
</ul>
</div>
    </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="classKAcceleratorManager.html">kacceleratormanager</option>,  <option value="classKAccelManagerAlgorithm.html">kaccelmanageralgorithm</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="classKCalendarSystemJalali.html">kcalendarsystemjalali</option>,  <option value="classKCatalogue.html">kcatalogue</option>,  <option value="classKCharMacroExpander.html">kcharmacroexpander</option>,  <option value="classKCharsets.html">kcharsets</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="classKCompTreeNode.html">kcomptreenode</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="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="classKGlobal.html">kglobal</option>,  <option value="classKGlobalAccel.html">kglobalaccel</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_1_1ResolverLocker.html">knetwork::kresolverworkerbase::resolverlocker</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_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="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="classKSycocaEntry.html">ksycocaentry</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>,
</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&#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>