You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pytde/doc/classref/kio/KFileItem.html

327 lines
20 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN
"http://www.w3.org/TR/html4/loose.dtd"">
<html>
<head>
<title>class KFileItem</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="wabbit dumphtml">
</head>
<body>
<h4>PyKDE - Python Bindings for KDE</h4>
<hr>
<table width="100%"><tr>
<td width ="70%">
<h1>class KFileItem</h1><hr>
</td>
<td width="30%" valign="top" align="right">
<table>
<tr><td align="right"><a href="doc/index.html">Table of contents</a></td></tr>
<tr><td align="right"><a href="../index.html">Modules</a></td></tr>
<tr><td align="right"><a href="index.html">kio Classes</a></td></tr>
<tr><td align="right"><a href="../allclasses.html">All Classes</a></td></tr>
</table>
</td>
</tr></table>
<table>
<tr><td width="10%" align=left>Module</td>
<td width="30%" align=left>kio</td>
</tr>
<tr><td>Class</td>
<td>KFileItem</td>
</tr>
<tr><td>Inherits</td>
<td> </td>
</tr>
</table>
<h3>enums</h3><ul>
<li><b>(anonymous)</b> = {Unknown
}</ul>
<h3>methods</h3><ul>
<li><b>ACL</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KACL)</i></td></tr>
<tr><td>In versions KDE 3.5.0 and above only</td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KFileItem</b> (_entry, _url, _determineMimeTypeOnDemand = 0, _urlIsDirectory = 0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KFileItem instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>_entry</td><td>KIO.UDSEntry</td><td></td></tr>
<tr><td>_url</td><td>KURL</td><td></td></tr>
<tr><td>_determineMimeTypeOnDemand</td><td>bool</td><td>0</td></tr>
<tr><td>_urlIsDirectory</td><td>bool</td><td>0</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KFileItem</b> (_mode, _permissions, _url, _determineMimeTypeOnDemand = 0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KFileItem instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>_mode</td><td>mode_t</td><td></td></tr>
<tr><td>_permissions</td><td>mode_t</td><td></td></tr>
<tr><td>_url</td><td>KURL</td><td></td></tr>
<tr><td>_determineMimeTypeOnDemand</td><td>bool</td><td>0</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KFileItem</b> (url, mimeType, mode)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KFileItem instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>url</td><td>KURL</td><td></td></tr>
<tr><td>mimeType</td><td>QString</td><td></td></tr>
<tr><td>mode</td><td>mode_t</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>KFileItem</b> (item)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KFileItem instance</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>item</td><td>KFileItem</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>acceptsDrops</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>assign</b> (item)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>item</td><td>KFileItem</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>cmp</b> (item)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>item</td><td>KFileItem</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>defaultACL</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KACL)</i></td></tr>
<tr><td>In versions KDE 3.5.0 and above only</td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>determineMimeType</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KMimeType.Ptr)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>entry</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KIO.UDSEntry)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>extraData</b> (key)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>getStatusBarInfo</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>getToolTipText</b> (maxcount = 6)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>maxcount</td><td>int</td><td>6</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>group</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>hasExtendedACL</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
<tr><td>In versions KDE 3.5.0 and above only</td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>iconName</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>init</b> (_determineMimeTypeOnDemand)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>_determineMimeTypeOnDemand</td><td>bool</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>isDir</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>isFile</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>isHidden</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
<tr><td>In versions KDE 3.3.0 and above only</td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>isLink</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>isLocalFile</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>isMarked</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>isMimeTypeKnown</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>isReadable</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>isWritable</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
<tr><td>In versions KDE 3.4.0 and above only</td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>linkDest</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>localPath</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
<tr><td>In versions KDE 3.4.0 and above only</td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>mark</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>metaInfo</b> (autoget = 1, what = KFileMetaInfo .Fastest)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KFileMetaInfo)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>autoget</td><td>bool</td><td>1</td></tr>
<tr><td>what</td><td>int</td><td>KFileMetaInfo .Fastest</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>mimeComment</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>mimeTypePtr</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KMimeType.Ptr)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>mimetype</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>mode</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(mode_t)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>mostLocalURL</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KURL) local (bool)</i></td></tr>
<tr><td>In versions KDE 3.4.0 and above only</td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>name</b> (lowerCase = 0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>lowerCase</td><td>bool</td><td>0</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>overlays</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>parsePermissions</b> (perm)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>perm</td><td>mode_t</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>permissions</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(mode_t)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>permissionsString</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>pixmap</b> (_size, _state = 0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QPixmap)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>_size</td><td>int</td><td></td></tr>
<tr><td>_state</td><td>int</td><td>0</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>readUDSEntry</b> (_urlIsDirectory)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
<tr><td>In versions KDE 3.4.3 and above only</td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>_urlIsDirectory</td><td>bool</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>refresh</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>refreshMimeType</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>removeExtraData</b> (key)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>run</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>setExtraData</b> (key, value)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td><i>Not Implemented</i></td></tr></table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>setFileMode</b> (m)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
<tr><td>In versions KDE 3.5.0 and above only</td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>m</td><td>mode_t</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>setMetaInfo</b> (info)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>info</td><td>KFileMetaInfo</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>setMimeType</b> (mimetype)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
<tr><td>In versions KDE 3.5.0 and above only</td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>mimetype</td><td>QString</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>setName</b> (name)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
<tr><td>In versions KDE 3.2.0 and above only</td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>name</td><td>QString</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>setUDSEntry</b> (entry, url, determineMimeTypeOnDemand = 0, urlIsDirectory = 0)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
<tr><td>In versions KDE 3.4.3 and above only</td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>entry</td><td>KIO.UDSEntry</td><td></td></tr>
<tr><td>url</td><td>KURL</td><td></td></tr>
<tr><td>determineMimeTypeOnDemand</td><td>bool</td><td>0</td></tr>
<tr><td>urlIsDirectory</td><td>bool</td><td>0</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>setURL</b> (url)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>url</td><td>KURL</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>size</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KIO.filesize_t)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>size</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KIO.filesize_t) hasSize (bool)</i></td></tr>
<tr><td>In versions KDE 3.5.0 and above only</td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>text</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>time</b> (which)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(time_t)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>which</td><td>uint</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>time</b> (which)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(time_t) hasTime (bool)</i></td></tr>
<tr><td>In versions KDE 3.5.0 and above only</td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>which</td><td>uint</td><td></td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>timeString</b> (which = KIO .UDS_MODIFICATION_TIME)
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
<tr><td>which</td><td>uint</td><td>KIO .UDS_MODIFICATION_TIME</td></tr>
</table>
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>unmark</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>url</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KURL)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
<li><b>user</b> ()
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
</ul>
</body>
</html>