Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > b77dda48f87d4eda8cc559e40c49a652 > files > 840

python-kde4-doc-4.4.5-0.2mdv2010.2.i586.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" xml:lang="en">

<head>
  <title>KMountPoint</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <link rel="stylesheet" type="text/css" href="../common/doxygen.css" />
  <link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../common/kde.css" />
</head>
<body>
<div id="container">
<div id="header">
  <div id="header_top">
    <div>
      <div>
        <img alt ="" src="../common/top-kde.jpg"/>
        KDE 4.4 PyKDE API Reference
      </div>
    </div>
  </div>
  <div id="header_bottom">
    <div id="location">
      <ul>
        <li>KDE's Python API</li>
      </ul>
    </div>

    <div id="menu">
      <ul>
        <li><a href="../modules.html">Overview</a></li>
<li><a href="http://techbase.kde.org/Development/Languages/Python">PyKDE Home</a></li>
<li><a href="http://kde.org/family/">Sitemap</a></li>
<li><a href="http://kde.org/contact/">Contact Us</a></li>
</ul>
    </div>
  </div>
</div>

<div id="body_wrapper">
<div id="body">
<div id="right">
<div class="content">
<div id="main">
<div class="clearer">&nbsp;</div>

<h1>KMountPoint Class Reference</h1>
<code>from PyKDE4.kio import *</code>
<p>



<h2>Detailed Description</h2>

<p>The KMountPoint class provides information about mounted and unmounted disks.
It provides a system independent interface to fstab.
</p>
<p>

<dl class="author" compact><dt><b>Author:</b></dt><dd> Waldo Bastian &lt;bastian@kde.org&gt; </dd></dl>
</p>
<table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#DetailsNeededFlag">DetailsNeededFlag</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;BasicInfoNeeded, NeedMountOptions, NeedRealDeviceName&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#FileSystemFlag">FileSystemFlag</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;SupportsChmod, SupportsChown, SupportsUTime, SupportsSymlinks, CaseInsensitive&nbsp;}</td></tr>
<tr><td colspan="2"><br><h2>Methods</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#KMountPoint">__init__</a> (self)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#KMountPoint">__init__</a> (self, <a href="../kio/KMountPoint.html">KMountPoint</a> other)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="../kio/KMountPoint.List.html">KMountPoint.List</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#currentMountPoints">currentMountPoints</a> (self, <a href="../kio/KMountPoint.DetailsNeededFlags.html">KMountPoint.DetailsNeededFlags</a> infoNeeded=KMountPoint.BasicInfoNeeded)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#mountOptions">mountOptions</a> (self)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#mountPoint">mountPoint</a> (self)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#mountType">mountType</a> (self)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#mountedFrom">mountedFrom</a> (self)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="../kio/KMountPoint.List.html">KMountPoint.List</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#possibleMountPoints">possibleMountPoints</a> (self, <a href="../kio/KMountPoint.DetailsNeededFlags.html">KMountPoint.DetailsNeededFlags</a> infoNeeded=KMountPoint.BasicInfoNeeded)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#probablySlow">probablySlow</a> (self)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#realDeviceName">realDeviceName</a> (self)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="#testFileSystemFlag">testFileSystemFlag</a> (self, <a href="../kio/KMountPoint.html#FileSystemFlag">KMountPoint.FileSystemFlag</a> flag)</td></tr>
</table>
<hr><h2>Method Documentation</h2><a class="anchor" name="KMountPoint"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">__init__</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname"><em>self</em>&nbsp;)</td>
<td width="100%"> </td>
</tr>
</table>
</div>
<div class="memdoc"><p>Constructor
</p></div></div><a class="anchor" name="KMountPoint"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">__init__</td>
<td>(</td>
<td class="paramtype">&nbsp;<em>self</em>, </td>
<td class="paramname"></td>
</tr><tr>
<td class="memname"></td>
<td></td>
<td class="paramtype"><a href="../kio/KMountPoint.html">KMountPoint</a>&nbsp;</td>
<td class="paramname"><em>other</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"></div></div><a class="anchor" name="currentMountPoints"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"><a href="../kio/KMountPoint.List.html">KMountPoint.List</a> currentMountPoints</td>
<td>(</td>
<td class="paramtype">&nbsp;<em>self</em>, </td>
<td class="paramname"></td>
</tr><tr>
<td class="memname"></td>
<td></td>
<td class="paramtype"><a href="../kio/KMountPoint.DetailsNeededFlags.html">KMountPoint.DetailsNeededFlags</a>&nbsp;</td>
<td class="paramname"><em>infoNeeded=KMountPoint.BasicInfoNeeded</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"><p>This function gives a list of all currently used mountpoints. (mtab)
</p><dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign="top"><em>infoNeeded</em>&nbsp;</td><td> Flags that specify which additional information
should be fetched.
</td></tr>
</table></dl>
<p>
</p></div></div><a class="anchor" name="mountOptions"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstringlist.html">QStringList</a> mountOptions</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname"><em>self</em>&nbsp;)</td>
<td width="100%"> </td>
</tr>
</table>
</div>
<div class="memdoc"><p>Options used to mount the filesystem.
Only available when the NeedMountOptions flag was set.
</p></div></div><a class="anchor" name="mountPoint"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> mountPoint</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname"><em>self</em>&nbsp;)</td>
<td width="100%"> </td>
</tr>
</table>
</div>
<div class="memdoc"><p>Path where the filesystem is mounted or can be mounted.
</p></div></div><a class="anchor" name="mountType"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> mountType</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname"><em>self</em>&nbsp;)</td>
<td width="100%"> </td>
</tr>
</table>
</div>
<div class="memdoc"><p>Type of filesystem
</p></div></div><a class="anchor" name="mountedFrom"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> mountedFrom</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname"><em>self</em>&nbsp;)</td>
<td width="100%"> </td>
</tr>
</table>
</div>
<div class="memdoc"><p>Where this filesystem gets mounted from.
This can refer to a device, a remote server or something else.
</p></div></div><a class="anchor" name="possibleMountPoints"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"><a href="../kio/KMountPoint.List.html">KMountPoint.List</a> possibleMountPoints</td>
<td>(</td>
<td class="paramtype">&nbsp;<em>self</em>, </td>
<td class="paramname"></td>
</tr><tr>
<td class="memname"></td>
<td></td>
<td class="paramtype"><a href="../kio/KMountPoint.DetailsNeededFlags.html">KMountPoint.DetailsNeededFlags</a>&nbsp;</td>
<td class="paramname"><em>infoNeeded=KMountPoint.BasicInfoNeeded</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"><p>This function gives a list of all possible mountpoints. (fstab)
</p><dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign="top"><em>infoNeeded</em>&nbsp;</td><td> Flags that specify which additional information
should be fetched.
</td></tr>
</table></dl>
<p>
</p></div></div><a class="anchor" name="probablySlow"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">bool probablySlow</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname"><em>self</em>&nbsp;)</td>
<td width="100%"> </td>
</tr>
</table>
</div>
<div class="memdoc"><p>Checks if the filesystem that is probably slow (nfs mounts).
<dl class="return" compact><dt><b>Returns:</b></dt><dd> true if the filesystem is probably slow
</dd></dl>
</p></div></div><a class="anchor" name="realDeviceName"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname"><a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qstring.html">QString</a> realDeviceName</td>
<td>(</td>
<td class="paramtype">&nbsp;</td>
<td class="paramname"><em>self</em>&nbsp;)</td>
<td width="100%"> </td>
</tr>
</table>
</div>
<div class="memdoc"><p>Canonical name of the device where the filesystem got mounted from.
(Or empty, if not a device)
Only available when the NeedRealDeviceName flag was set.
</p></div></div><a class="anchor" name="testFileSystemFlag"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">bool testFileSystemFlag</td>
<td>(</td>
<td class="paramtype">&nbsp;<em>self</em>, </td>
<td class="paramname"></td>
</tr><tr>
<td class="memname"></td>
<td></td>
<td class="paramtype"><a href="../kio/KMountPoint.html#FileSystemFlag">KMountPoint.FileSystemFlag</a>&nbsp;</td>
<td class="paramname"><em>flag</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"><p>Checks the capabilities of the filesystem.
</p><dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign="top"><em>flag</em>&nbsp;</td><td> the flag to check
</td></tr> </table></dl>
<p> <dl class="return" compact><dt><b>Returns:</b></dt><dd> true if the filesystem has that flag, false if not
</dd></dl> </p>
<p>
The availables flags are:
<li> SupportsChmod: returns true if the filesystem supports chmod </li>
(e.g. msdos filesystems return false)
<li> SupportsChown: returns true if the filesystem supports chown </li>
(e.g. msdos filesystems return false)
<li> SupportsUtime: returns true if the filesystems supports utime </li>
(e.g. msdos filesystems return false)
<li> SupportsSymlinks: returns true if the filesystems supports symlinks </li>
(e.g. msdos filesystems return false)
<li> CaseInsensitive: returns true if the filesystem treats </li>
"foo" and "FOO" as being the same file (true for msdos systems)
</p></div></div><hr><h2>Enumeration Documentation</h2><a class="anchor" name="DetailsNeededFlag"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">DetailsNeededFlag</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Flags that specify which additional details should be fetched for each mountpoint.
BasicInfoNeeded: only the basic details: mountedFrom, mountPoint, mountType.
NeedMountOptions: also fetch the options used when mounting, see mountOptions.
NeedRealDeviceName: also fetch the device name (with symlinks resolved), see realDeviceName.
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>BasicInfoNeeded</em>&nbsp;=&nbsp;0</td><td><tr><td valign="top"><em>NeedMountOptions</em>&nbsp;=&nbsp;1</td><td><tr><td valign="top"><em>NeedRealDeviceName</em>&nbsp;=&nbsp;2</td><td></table>
</dl>
</div></div><p><a class="anchor" name="FileSystemFlag"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">FileSystemFlag</td>
</tr>
</table>
</div>
<div class="memdoc"><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>SupportsChmod</em>&nbsp;</td><td><tr><td valign="top"><em>SupportsChown</em>&nbsp;</td><td><tr><td valign="top"><em>SupportsUTime</em>&nbsp;</td><td><tr><td valign="top"><em>SupportsSymlinks</em>&nbsp;</td><td><tr><td valign="top"><em>CaseInsensitive</em>&nbsp;</td><td></table>
</dl>
</div></div><p>
</div>
</div>
</div>

<div id="left">

<div class="menu_box">
<div class="nav_list">
<ul>
<li><a href="../allclasses.html">Full Index</a></li>
</ul>
</div>

<a name="cp-menu" /><div class="menutitle"><div>
  <h2 id="cp-menu-project">Modules</h2>
</div></div>
<div class="nav_list">
<ul><li><a href="../akonadi/index.html">akonadi</a></li>
<li><a href="../dnssd/index.html">dnssd</a></li>
<li><a href="../kdecore/index.html">kdecore</a></li>
<li><a href="../kdeui/index.html">kdeui</a></li>
<li><a href="../khtml/index.html">khtml</a></li>
<li><a href="../kio/index.html">kio</a></li>
<li><a href="../knewstuff/index.html">knewstuff</a></li>
<li><a href="../kparts/index.html">kparts</a></li>
<li><a href="../kutils/index.html">kutils</a></li>
<li><a href="../nepomuk/index.html">nepomuk</a></li>
<li><a href="../phonon/index.html">phonon</a></li>
<li><a href="../plasma/index.html">plasma</a></li>
<li><a href="../polkitqt/index.html">polkitqt</a></li>
<li><a href="../solid/index.html">solid</a></li>
<li><a href="../soprano/index.html">soprano</a></li>
</ul></div></div>

</div>

</div>
  <div class="clearer"/>
</div>

<div id="end_body"></div>
</div>
<div id="footer"><div id="footer_text">
This documentation is maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;simon&#64;simonzone&#46;com">Simon Edwards</a>.<br />
        KDE<sup>&#174;</sup> and <a href="../images/kde_gear_black.png">the K Desktop Environment<sup>&#174;</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" 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>
</body>
</html>