Sophie

Sophie

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

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>kio/kio: kfileitem.h Source File (kio/kio)</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="../../html/index.html">kio</a> / <a href=".">kio</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 class="header">
  <div class="headertitle">
<div class="title">kfileitem.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* This file is part of the KDE project</span>
<a name="l00002"></a>00002 <span class="comment">   Copyright (C) 1999 David Faure &lt;faure@kde.org&gt;</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">   This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment">   modify it under the terms of the GNU Library General Public</span>
<a name="l00006"></a>00006 <span class="comment">   License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment">   version 2 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">   This library is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment">   Library General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">   You should have received a copy of the GNU Library General Public License</span>
<a name="l00015"></a>00015 <span class="comment">   along with this library; see the file COPYING.LIB.  If not, write to</span>
<a name="l00016"></a>00016 <span class="comment">   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
<a name="l00017"></a>00017 <span class="comment">   Boston, MA 02110-1301, USA.</span>
<a name="l00018"></a>00018 <span class="comment">*/</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef __kfileitem_h__</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __kfileitem_h__</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;qstringlist.h&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;sys/stat.h&gt;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;qptrlist.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;kio/global.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;kurl.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;kacl.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;kmimetype.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;kfilemetainfo.h&gt;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="preprocessor">#define KFILEITEM_HAS_ISWRITABLE // only used in libkonq/konq_iconviewwidget.cc, will be removed for 3.4</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00041"></a><a class="code" href="classKFileItem.html">00041</a> <span class="keyword">class </span>KIO_EXPORT <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a>
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00044"></a>00044   <span class="keyword">enum</span> { Unknown = (mode_t) - 1 };
<a name="l00045"></a>00045 
<a name="l00057"></a>00057   <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a>( <span class="keyword">const</span> <a class="codeRef" href="qvaluelist.html">KIO::UDSEntry</a>&amp; _entry, <span class="keyword">const</span> KURL&amp; _url,
<a name="l00058"></a>00058              <span class="keywordtype">bool</span> _determineMimeTypeOnDemand = <span class="keyword">false</span>,
<a name="l00059"></a>00059              <span class="keywordtype">bool</span> _urlIsDirectory = <span class="keyword">false</span> );
<a name="l00060"></a>00060 
<a name="l00074"></a>00074   <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a>( mode_t _mode, mode_t _permissions, <span class="keyword">const</span> KURL&amp; _url,
<a name="l00075"></a>00075              <span class="keywordtype">bool</span> _determineMimeTypeOnDemand = <span class="keyword">false</span> );
<a name="l00076"></a>00076 
<a name="l00083"></a>00083   <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a>( <span class="keyword">const</span> KURL &amp;url, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;mimeType, mode_t mode );
<a name="l00084"></a>00084 
<a name="l00089"></a>00089   <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a>( <span class="keyword">const</span> <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a> &amp;item );
<a name="l00090"></a>00090 
<a name="l00095"></a>00095   <span class="keyword">virtual</span> ~<a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a>();
<a name="l00096"></a>00096 
<a name="l00101"></a>00101   <span class="keywordtype">void</span> refresh();
<a name="l00102"></a>00102 
<a name="l00107"></a>00107   <span class="keywordtype">void</span> refreshMimeType();
<a name="l00108"></a>00108 
<a name="l00113"></a><a class="code" href="classKFileItem.html#a04813dcf686795b8854034b0165ccdc0">00113</a>   <span class="keyword">const</span> KURL &amp; <a class="code" href="classKFileItem.html#a04813dcf686795b8854034b0165ccdc0" title="Returns the url of the file.">url</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_url; }
<a name="l00114"></a>00114 
<a name="l00120"></a>00120   <span class="keywordtype">void</span> setURL( <span class="keyword">const</span> KURL &amp;url );
<a name="l00121"></a>00121 
<a name="l00128"></a>00128   <span class="keywordtype">void</span> setName( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &amp;name );
<a name="l00129"></a>00129 
<a name="l00134"></a><a class="code" href="classKFileItem.html#a3db815f0ee321b4b6095b3265f48ab34">00134</a>   mode_t <a class="code" href="classKFileItem.html#a3db815f0ee321b4b6095b3265f48ab34" title="Returns the permissions of the file (stat.st_mode containing only permissions).">permissions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_permissions; }
<a name="l00135"></a>00135 
<a name="l00140"></a>00140   <a class="codeRef" href="qstring.html">QString</a> permissionsString() <span class="keyword">const</span>;
<a name="l00141"></a>00141 
<a name="l00147"></a>00147   <span class="keywordtype">bool</span> hasExtendedACL() <span class="keyword">const</span>;
<a name="l00148"></a>00148 
<a name="l00154"></a>00154   <a class="code" href="classKACL.html" title="The KCAL class encapsulates a POSIX Access Control List.">KACL</a> ACL() <span class="keyword">const</span>;
<a name="l00155"></a>00155 
<a name="l00161"></a>00161   <a class="code" href="classKACL.html" title="The KCAL class encapsulates a POSIX Access Control List.">KACL</a> defaultACL() <span class="keyword">const</span>;
<a name="l00162"></a>00162 
<a name="l00167"></a><a class="code" href="classKFileItem.html#af506df34a95e060e42e792321e8babc3">00167</a>   mode_t <a class="code" href="classKFileItem.html#af506df34a95e060e42e792321e8babc3" title="Returns the file type (stat.st_mode containing only S_IFDIR, S_IFLNK, ...).">mode</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_fileMode; }
<a name="l00168"></a>00168 
<a name="l00173"></a>00173   <a class="codeRef" href="qstring.html">QString</a> user() <span class="keyword">const</span>;
<a name="l00174"></a>00174 
<a name="l00179"></a>00179   <a class="codeRef" href="qstring.html">QString</a> group() <span class="keyword">const</span>;
<a name="l00180"></a>00180 
<a name="l00186"></a><a class="code" href="classKFileItem.html#afe8c8d470b642f9b2a754279c634adcf">00186</a>   <span class="keywordtype">bool</span> <a class="code" href="classKFileItem.html#afe8c8d470b642f9b2a754279c634adcf" title="Returns true if this item represents a link in the UNIX sense of a link.">isLink</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_bLink; }
<a name="l00187"></a>00187 
<a name="l00192"></a>00192   <span class="keywordtype">bool</span> isDir() <span class="keyword">const</span>;
<a name="l00193"></a>00193 
<a name="l00198"></a><a class="code" href="classKFileItem.html#aedcbb6854fc04cb078a185fc3cef8bff">00198</a>   <span class="keywordtype">bool</span> <a class="code" href="classKFileItem.html#aedcbb6854fc04cb078a185fc3cef8bff" title="Returns true if this item represents a file (and not a a directory)">isFile</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !isDir(); }
<a name="l00199"></a>00199 
<a name="l00206"></a>00206   <span class="keywordtype">bool</span> isReadable() <span class="keyword">const</span>;
<a name="l00207"></a>00207 
<a name="l00215"></a>00215   <span class="keywordtype">bool</span> isWritable() <span class="keyword">const</span>;
<a name="l00216"></a>00216 
<a name="l00221"></a>00221   <span class="keywordtype">bool</span> isHidden() <span class="keyword">const</span>;
<a name="l00222"></a>00222 
<a name="l00227"></a>00227   <a class="codeRef" href="qstring.html">QString</a> linkDest() <span class="keyword">const</span>;
<a name="l00228"></a>00228 
<a name="l00235"></a>00235   <a class="codeRef" href="qstring.html">QString</a> localPath() <span class="keyword">const</span>;
<a name="l00236"></a>00236 
<a name="l00237"></a>00237   <span class="comment">//FIXME KDE4 deprecate this in favor of size(bool &amp;hasSize)</span>
<a name="l00242"></a>00242 <span class="comment"></span>  <a class="code" href="namespaceKIO.html#a90b418366ba9052c97d4dca845026f43" title="64-bit file size">KIO::filesize_t</a> size() <span class="keyword">const</span>;
<a name="l00243"></a>00243 
<a name="l00249"></a>00249   <a class="code" href="namespaceKIO.html#a90b418366ba9052c97d4dca845026f43" title="64-bit file size">KIO::filesize_t</a> size(<span class="keywordtype">bool</span> &amp;hasSize) <span class="keyword">const</span>;
<a name="l00250"></a>00250   
<a name="l00251"></a>00251   <span class="comment">//FIXME KDE4 deprecate this in favor of time(unsigned int which, bool &amp;hasSize)</span>
<a name="l00258"></a>00258 <span class="comment"></span>  time_t time( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> which ) <span class="keyword">const</span>;
<a name="l00259"></a>00259 
<a name="l00267"></a>00267   time_t time( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> which, <span class="keywordtype">bool</span> &amp;hasTime ) <span class="keyword">const</span>;
<a name="l00268"></a>00268 
<a name="l00276"></a>00276   <a class="codeRef" href="qstring.html">QString</a> timeString( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> which = <a class="code" href="namespaceKIO.html#ab329df4f691911c03bce444a035fd31fa2870258f5a68f7dd13a18703c7144d10" title="The last time the file was modified.">KIO::UDS_MODIFICATION_TIME</a> ) <span class="keyword">const</span>;
<a name="l00277"></a>00277 
<a name="l00282"></a><a class="code" href="classKFileItem.html#aadad0539639d65932be3a02ee42cc2c3">00282</a>   <span class="keywordtype">bool</span> <a class="code" href="classKFileItem.html#aadad0539639d65932be3a02ee42cc2c3" title="Returns true if the file is a local file.">isLocalFile</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_bIsLocalURL; }
<a name="l00283"></a>00283 
<a name="l00289"></a><a class="code" href="classKFileItem.html#a81c3ba0690812cb8eae807de50470a00">00289</a>   <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; <a class="code" href="classKFileItem.html#a81c3ba0690812cb8eae807de50470a00" title="Returns the text of the file item.">text</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_strText; }
<a name="l00290"></a>00290 
<a name="l00298"></a><a class="code" href="classKFileItem.html#a6974c0e2d9e74c77a8bed531bc1e7b34">00298</a>   <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; <a class="code" href="classKFileItem.html#a6974c0e2d9e74c77a8bed531bc1e7b34" title="Return the name of the file item (without a path).">name</a>( <span class="keywordtype">bool</span> lowerCase = <span class="keyword">false</span> )<span class="keyword"> const </span>{
<a name="l00299"></a>00299       <span class="keywordflow">if</span> ( !lowerCase )
<a name="l00300"></a>00300           <span class="keywordflow">return</span> m_strName;
<a name="l00301"></a>00301       <span class="keywordflow">else</span>
<a name="l00302"></a>00302           <span class="keywordflow">if</span> ( m_strLowerCaseName.isNull() )
<a name="l00303"></a>00303               m_strLowerCaseName = m_strName.<a class="codeRef" href="qstring.html#lower">lower</a>();
<a name="l00304"></a>00304       <span class="keywordflow">return</span> m_strLowerCaseName;
<a name="l00305"></a>00305   }
<a name="l00306"></a>00306 
<a name="l00313"></a>00313   <a class="codeRef" href="qstring.html">QString</a> mimetype() <span class="keyword">const</span>;
<a name="l00314"></a>00314 
<a name="l00321"></a>00321   KMimeType::Ptr determineMimeType();
<a name="l00322"></a>00322 
<a name="l00328"></a><a class="code" href="classKFileItem.html#a942ad14decac480824627ef77f214ed5">00328</a>   KMimeType::Ptr <a class="code" href="classKFileItem.html#a942ad14decac480824627ef77f214ed5" title="Returns the currently known mimetype of the file item.">mimeTypePtr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_pMimeType; }
<a name="l00329"></a>00329 
<a name="l00330"></a>00330   <span class="keywordtype">bool</span> isMimeTypeKnown() <span class="keyword">const</span>;
<a name="l00336"></a>00336   <a class="codeRef" href="qstring.html">QString</a> mimeComment();
<a name="l00337"></a>00337 
<a name="l00343"></a>00343   <a class="codeRef" href="qstring.html">QString</a> iconName();
<a name="l00344"></a>00344 
<a name="l00353"></a>00353   <a class="codeRef" href="qpixmap.html">QPixmap</a> pixmap( <span class="keywordtype">int</span> _size, <span class="keywordtype">int</span> _state=0 ) <span class="keyword">const</span>;
<a name="l00354"></a>00354 
<a name="l00361"></a>00361   <span class="keywordtype">int</span> overlays() <span class="keyword">const</span>;
<a name="l00362"></a>00362 
<a name="l00368"></a>00368   <a class="codeRef" href="qstring.html">QString</a> getStatusBarInfo();
<a name="l00369"></a>00369 
<a name="l00378"></a>00378   <a class="codeRef" href="qstring.html">QString</a> getToolTipText(<span class="keywordtype">int</span> maxcount = 6);
<a name="l00379"></a>00379 
<a name="l00386"></a>00386   <span class="keywordtype">bool</span> acceptsDrops( );
<a name="l00387"></a>00387 
<a name="l00392"></a>00392   <span class="keywordtype">void</span> run();
<a name="l00393"></a>00393 
<a name="l00399"></a><a class="code" href="classKFileItem.html#adb66986c1db0dd5694a5d3d702f915fd">00399</a>   <span class="keyword">const</span> <a class="codeRef" href="qvaluelist.html">KIO::UDSEntry</a> &amp; <a class="code" href="classKFileItem.html#adb66986c1db0dd5694a5d3d702f915fd" title="Returns the UDS entry.">entry</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_entry; }
<a name="l00400"></a>00400 
<a name="l00405"></a><a class="code" href="classKFileItem.html#a7054582e0d3c21f3649bf254e141815d">00405</a>   <span class="keywordtype">bool</span> <a class="code" href="classKFileItem.html#a7054582e0d3c21f3649bf254e141815d" title="Used when updating a directory.">isMarked</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_bMarked; }
<a name="l00410"></a><a class="code" href="classKFileItem.html#a59bbf08495ca0f6d141ae37f9da8b2dc">00410</a>   <span class="keywordtype">void</span> <a class="code" href="classKFileItem.html#a59bbf08495ca0f6d141ae37f9da8b2dc" title="Marks the item.">mark</a>() { m_bMarked = <span class="keyword">true</span>; }
<a name="l00415"></a><a class="code" href="classKFileItem.html#a9798ca9a2a6337d4732288fc71603cd5">00415</a>   <span class="keywordtype">void</span> <a class="code" href="classKFileItem.html#a9798ca9a2a6337d4732288fc71603cd5" title="Unmarks the item.">unmark</a>() { m_bMarked = <span class="keyword">false</span>; }
<a name="l00416"></a>00416 
<a name="l00422"></a>00422   <span class="keywordtype">bool</span> cmp( <span class="keyword">const</span> <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a> &amp; item );
<a name="l00423"></a>00423 
<a name="l00457"></a>00457   <span class="keyword">virtual</span> <span class="keywordtype">void</span> setExtraData( <span class="keyword">const</span> <span class="keywordtype">void</span> *key, <span class="keywordtype">void</span> *value );
<a name="l00458"></a>00458 
<a name="l00466"></a>00466   <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">void</span> * extraData( <span class="keyword">const</span> <span class="keywordtype">void</span> *key ) <span class="keyword">const</span>;
<a name="l00467"></a>00467 
<a name="l00475"></a>00475   <span class="keyword">virtual</span> <span class="keywordtype">void</span> * extraData( <span class="keyword">const</span> <span class="keywordtype">void</span> *key );
<a name="l00476"></a>00476 
<a name="l00481"></a>00481   <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeExtraData( <span class="keyword">const</span> <span class="keywordtype">void</span> *key );
<a name="l00482"></a>00482 
<a name="l00487"></a>00487   <span class="keywordtype">void</span> setMetaInfo( <span class="keyword">const</span> <a class="code" href="classKFileMetaInfo.html" title="Meta Information about a file.">KFileMetaInfo</a> &amp; info );
<a name="l00488"></a>00488 
<a name="l00496"></a>00496    <span class="keywordtype">void</span> setFileMode( mode_t m );
<a name="l00497"></a>00497 
<a name="l00503"></a>00503    <span class="keywordtype">void</span> setMimeType( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; mimetype );
<a name="l00504"></a>00504 
<a name="l00510"></a>00510   <span class="keyword">const</span> <a class="code" href="classKFileMetaInfo.html" title="Meta Information about a file.">KFileMetaInfo</a> &amp; metaInfo(<span class="keywordtype">bool</span> autoget = <span class="keyword">true</span>,
<a name="l00511"></a>00511                                  <span class="keywordtype">int</span> what = <a class="code" href="classKFileMetaInfo.html#ae6582f767b27438b6e1e8258aa3a7309a771fbc87a4f7beae344a6b4c49fe8323" title="do the fastest possible read and omit all items that might need a significantly longer time than the ...">KFileMetaInfo::Fastest</a>) <span class="keyword">const</span>;
<a name="l00512"></a>00512 
<a name="l00520"></a>00520   <span class="keywordtype">void</span> assign( <span class="keyword">const</span> <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a> &amp; item );
<a name="l00521"></a>00521 
<a name="l00539"></a>00539   <span class="keywordtype">void</span> setUDSEntry( <span class="keyword">const</span> <a class="codeRef" href="qvaluelist.html">KIO::UDSEntry</a>&amp; entry, <span class="keyword">const</span> KURL&amp; url,
<a name="l00540"></a>00540                     <span class="keywordtype">bool</span> determineMimeTypeOnDemand = <span class="keyword">false</span>,
<a name="l00541"></a>00541                     <span class="keywordtype">bool</span> urlIsDirectory = <span class="keyword">false</span> );
<a name="l00542"></a>00542 
<a name="l00546"></a>00546   <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a>&amp; operator=( <span class="keyword">const</span> <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a>&amp; );
<a name="l00547"></a>00547 
<a name="l00552"></a>00552   KURL mostLocalURL(<span class="keywordtype">bool</span> &amp;local) <span class="keyword">const</span>;
<a name="l00553"></a>00553 
<a name="l00555"></a>00555 
<a name="l00556"></a>00556 <span class="keyword">protected</span>:
<a name="l00561"></a>00561   <span class="keywordtype">void</span> init( <span class="keywordtype">bool</span> _determineMimeTypeOnDemand );
<a name="l00562"></a>00562 
<a name="l00568"></a>00568   <span class="keywordtype">void</span> readUDSEntry( <span class="keywordtype">bool</span> _urlIsDirectory );
<a name="l00569"></a>00569 
<a name="l00573"></a>00573   <a class="codeRef" href="qstring.html">QString</a> parsePermissions( mode_t perm ) <span class="keyword">const</span>;
<a name="l00574"></a>00574 
<a name="l00575"></a>00575 <span class="keyword">private</span>:
<a name="l00579"></a>00579   <a class="codeRef" href="qvaluelist.html">KIO::UDSEntry</a> m_entry;
<a name="l00583"></a>00583   KURL m_url;
<a name="l00584"></a>00584 
<a name="l00588"></a>00588   <a class="codeRef" href="qstring.html">QString</a> m_strName;
<a name="l00589"></a>00589 
<a name="l00594"></a>00594   <a class="codeRef" href="qstring.html">QString</a> m_strText;
<a name="l00595"></a>00595 
<a name="l00599"></a>00599   <span class="keyword">mutable</span> <a class="codeRef" href="qstring.html">QString</a> m_user, m_group;
<a name="l00600"></a>00600 
<a name="l00604"></a>00604   <span class="keyword">mutable</span> <a class="codeRef" href="qstring.html">QString</a> m_strLowerCaseName;
<a name="l00605"></a>00605 
<a name="l00609"></a>00609   KMimeType::Ptr m_pMimeType;
<a name="l00610"></a>00610 
<a name="l00614"></a>00614   mode_t m_fileMode;
<a name="l00618"></a>00618   mode_t m_permissions;
<a name="l00619"></a>00619 
<a name="l00623"></a>00623   <span class="keywordtype">bool</span> m_bMarked:1;
<a name="l00627"></a>00627   <span class="keywordtype">bool</span> m_bLink:1;
<a name="l00631"></a>00631   <span class="keywordtype">bool</span> m_bIsLocalURL:1;
<a name="l00632"></a>00632 
<a name="l00633"></a>00633   <span class="keywordtype">bool</span> m_bMimeTypeKnown:1;
<a name="l00634"></a>00634 
<a name="l00635"></a>00635   <span class="comment">// Auto: check leading dot.</span>
<a name="l00636"></a>00636   <span class="keyword">enum</span> { Auto, Hidden, Shown } m_hidden:3;
<a name="l00637"></a>00637 
<a name="l00638"></a>00638    <span class="comment">// For special case like link to dirs over FTP</span>
<a name="l00639"></a>00639   <a class="codeRef" href="qstring.html">QString</a> m_guessedMimeType;
<a name="l00640"></a>00640   <span class="keyword">mutable</span> <a class="codeRef" href="qstring.html">QString</a> m_access;
<a name="l00641"></a>00641   <a class="codeRef" href="qmap.html">QMap&lt;const void*, void*&gt;</a> m_extra;
<a name="l00642"></a>00642   <span class="keyword">mutable</span> <a class="code" href="classKFileMetaInfo.html" title="Meta Information about a file.">KFileMetaInfo</a> m_metaInfo;
<a name="l00643"></a>00643 
<a name="l00644"></a>00644   <span class="keyword">enum</span> { Modification = 0, Access = 1, Creation = 2, NumFlags = 3 };
<a name="l00645"></a>00645   <span class="keyword">mutable</span> time_t m_time[3];
<a name="l00646"></a>00646   <span class="keyword">mutable</span> <a class="code" href="namespaceKIO.html#a90b418366ba9052c97d4dca845026f43" title="64-bit file size">KIO::filesize_t</a> m_size;
<a name="l00647"></a>00647 
<a name="l00648"></a>00648 <span class="keyword">protected</span>:
<a name="l00649"></a>00649   <span class="keyword">virtual</span> <span class="keywordtype">void</span> virtual_hook( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">void</span>* data );
<a name="l00650"></a>00650 <span class="keyword">private</span>:
<a name="l00651"></a>00651   <span class="keyword">class </span>KFileItemPrivate;
<a name="l00652"></a>00652   KFileItemPrivate * d;
<a name="l00653"></a>00653   KIO_EXPORT <span class="keyword">friend</span> <a class="codeRef" href="qdatastream.html">QDataStream</a> &amp; operator&lt;&lt; ( <a class="codeRef" href="qdatastream.html">QDataStream</a> &amp; s, <span class="keyword">const</span> <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a> &amp; a );
<a name="l00654"></a>00654   KIO_EXPORT <span class="keyword">friend</span> <a class="codeRef" href="qdatastream.html">QDataStream</a> &amp; operator&gt;&gt; ( <a class="codeRef" href="qdatastream.html">QDataStream</a> &amp; s, <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a> &amp; a );
<a name="l00655"></a>00655 };
<a name="l00656"></a>00656 
<a name="l00660"></a>00660 <span class="keyword">typedef</span> <a class="codeRef" href="qptrlist.html">QPtrList&lt;KFileItem&gt;</a> <a class="codeRef" href="qptrlist.html">KFileItemList</a>;
<a name="l00661"></a>00661 
<a name="l00665"></a>00665 <span class="keyword">typedef</span> <a class="codeRef" href="qptrlistiterator.html">QPtrListIterator&lt;KFileItem&gt;</a> <a class="codeRef" href="qptrlistiterator.html">KFileItemListIterator</a>;
<a name="l00666"></a>00666 
<a name="l00667"></a>00667 KIO_EXPORT <a class="codeRef" href="qdatastream.html">QDataStream</a> &amp; operator&lt;&lt; ( <a class="codeRef" href="qdatastream.html">QDataStream</a> &amp; s, <span class="keyword">const</span> <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a> &amp; a );
<a name="l00668"></a>00668 KIO_EXPORT <a class="codeRef" href="qdatastream.html">QDataStream</a> &amp; operator&gt;&gt; ( <a class="codeRef" href="qdatastream.html">QDataStream</a> &amp; s, <a class="code" href="classKFileItem.html" title="A KFileItem is a generic class to handle a file, local or remote.">KFileItem</a> &amp; a );
<a name="l00669"></a>00669 
<a name="l00670"></a>00670 
<a name="l00671"></a>00671 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kio/kio</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="classKACL.html">kacl</option>,  <option value="classKAr.html">kar</option>,  <option value="classKArchive.html">karchive</option>,  <option value="classKArchiveDirectory.html">karchivedirectory</option>,  <option value="classKArchiveEntry.html">karchiveentry</option>,  <option value="classKArchiveFile.html">karchivefile</option>,  <option value="classKAutoMount.html">kautomount</option>,  <option value="classKAutoUnmount.html">kautounmount</option>,  <option value="classKDataTool.html">kdatatool</option>,  <option value="classKDataToolAction.html">kdatatoolaction</option>,  <option value="classKDataToolInfo.html">kdatatoolinfo</option>,  <option value="classKDCOPServiceStarter.html">kdcopservicestarter</option>,  <option value="classKDEDesktopMimeType.html">kdedesktopmimetype</option>,  <option value="classKDirLister.html">kdirlister</option>,  <option value="classKDirNotify.html">kdirnotify</option>,  <option value="classKDirWatch.html">kdirwatch</option>,  <option value="classKEMailSettings.html">kemailsettings</option>,  <option value="classKExecMimeType.html">kexecmimetype</option>,  <option value="classKFileFilter.html">kfilefilter</option>,  <option value="classKFileItem.html">kfileitem</option>,  <option value="classKFileMetaInfo.html">kfilemetainfo</option>,  <option value="classKFileMetaInfoGroup.html">kfilemetainfogroup</option>,  <option value="classKFileMetaInfoItem.html">kfilemetainfoitem</option>,  <option value="classKFileMimeTypeInfo.html">kfilemimetypeinfo</option>,  <option value="classKFileMimeTypeInfo_1_1GroupInfo.html">kfilemimetypeinfo::groupinfo</option>,  <option value="classKFileMimeTypeInfo_1_1ItemInfo.html">kfilemimetypeinfo::iteminfo</option>,  <option value="classKFilePlugin.html">kfileplugin</option>,  <option value="classKFileShare.html">kfileshare</option>,  <option value="classKFilterBase.html">kfilterbase</option>,  <option value="classKFilterDev.html">kfilterdev</option>,  <option value="classKFolderType.html">kfoldertype</option>,  <option value="classKImageIO.html">kimageio</option>,  <option value="classKIO_1_1AuthInfo.html">kio::authinfo</option>,  <option value="classKIO_1_1ChmodJob.html">kio::chmodjob</option>,  <option value="classKIO_1_1Connection.html">kio::connection</option>,  <option value="classKIO_1_1CopyJob.html">kio::copyjob</option>,  <option value="classKIO_1_1DataProtocol.html">kio::dataprotocol</option>,  <option value="classKIO_1_1DataSlave.html">kio::dataslave</option>,  <option value="classKIO_1_1DavJob.html">kio::davjob</option>,  <option value="classKIO_1_1DeleteJob.html">kio::deletejob</option>,  <option value="classKIO_1_1FileCopyJob.html">kio::filecopyjob</option>,  <option value="classKIO_1_1ForwardingSlaveBase.html">kio::forwardingslavebase</option>,  <option value="classKIO_1_1Job.html">kio::job</option>,  <option value="classKIO_1_1ListJob.html">kio::listjob</option>,  <option value="classKIO_1_1MetaData.html">kio::metadata</option>,  <option value="classKIO_1_1MetaInfoJob.html">kio::metainfojob</option>,  <option value="classKIO_1_1MimetypeJob.html">kio::mimetypejob</option>,  <option value="classKIO_1_1MkdirJob.html">kio::mkdirjob</option>,  <option value="classKIO_1_1MultiGetJob.html">kio::multigetjob</option>,  <option value="classKIO_1_1NetAccess.html">kio::netaccess</option>,  <option value="classKIO_1_1NetRC.html">kio::netrc</option>,  <option value="classKIO_1_1PasswordDialog.html">kio::passworddialog</option>,  <option value="classKIO_1_1PreviewJob.html">kio::previewjob</option>,  <option value="classKIO_1_1ProgressBase.html">kio::progressbase</option>,  <option value="classKIO_1_1RenameDlg.html">kio::renamedlg</option>,  <option value="classKIO_1_1Scheduler.html">kio::scheduler</option>,  <option value="classKIO_1_1SimpleJob.html">kio::simplejob</option>,  <option value="classKIO_1_1Slave.html">kio::slave</option>,  <option value="classKIO_1_1SlaveBase.html">kio::slavebase</option>,  <option value="classKIO_1_1SlaveConfig.html">kio::slaveconfig</option>,  <option value="classKIO_1_1SlaveInterface.html">kio::slaveinterface</option>,  <option value="classKIO_1_1StatJob.html">kio::statjob</option>,  <option value="classKIO_1_1StatusbarProgress.html">kio::statusbarprogress</option>,  <option value="classKIO_1_1StoredTransferJob.html">kio::storedtransferjob</option>,  <option value="classKIO_1_1TCPSlaveBase.html">kio::tcpslavebase</option>,  <option value="classKIO_1_1TransferJob.html">kio::transferjob</option>,  <option value="classKLimitedIODevice.html">klimitediodevice</option>,  <option value="classKMimeMagic.html">kmimemagic</option>,  <option value="classKMimeMagicResult.html">kmimemagicresult</option>,  <option value="classKMimeType.html">kmimetype</option>,  <option value="classKMimeTypeChooser.html">kmimetypechooser</option>,  <option value="classKMimeTypeChooserDialog.html">kmimetypechooserdialog</option>,  <option value="classKMimeTypeResolver.html">kmimetyperesolver</option>,  <option value="classKNFSShare.html">knfsshare</option>,  <option value="classKOCRDialog.html">kocrdialog</option>,  <option value="classKOCRDialogFactory.html">kocrdialogfactory</option>,  <option value="classKOpenWithHandler.html">kopenwithhandler</option>,  <option value="classKProtocolInfo.html">kprotocolinfo</option>,  <option value="classKProtocolManager.html">kprotocolmanager</option>,  <option value="classKRemoteEncoding.html">kremoteencoding</option>,  <option value="classKRun.html">krun</option>,  <option value="classKSambaShare.html">ksambashare</option>,  <option value="classKScanDialog.html">kscandialog</option>,  <option value="classKScanDialogFactory.html">kscandialogfactory</option>,  <option value="classKService.html">kservice</option>,  <option value="classKServiceGroup.html">kservicegroup</option>,  <option value="classKServiceOffer.html">kserviceoffer</option>,  <option value="classKServiceType.html">kservicetype</option>,  <option value="classKServiceTypeProfile.html">kservicetypeprofile</option>,  <option value="classKShellCompletion.html">kshellcompletion</option>,  <option value="classKShred.html">kshred</option>,  <option value="classKSimpleFileFilter.html">ksimplefilefilter</option>,  <option value="classKTar.html">ktar</option>,  <option value="classKTrader.html">ktrader</option>,  <option value="classKURIFilter.html">kurifilter</option>,  <option value="classKURIFilterData.html">kurifilterdata</option>,  <option value="classKURIFilterPlugin.html">kurifilterplugin</option>,  <option value="classKURIFilterPluginList.html">kurifilterpluginlist</option>,  <option value="classKURLCompletion.html">kurlcompletion</option>,  <option value="classKURLPixmapProvider.html">kurlpixmapprovider</option>,  <option value="classKZip.html">kzip</option>,  <option value="classObserver.html">observer</option>,  <option value="classRenameDlgPlugin.html">renamedlgplugin</option>,  <option value="classThumbCreator.html">thumbcreator</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>