📄 storageinfo.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia/storage.cpp:74 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>StorageInfo Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font> <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="137"> <tr> <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td> <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td> </tr> </table></td></tr></table><h1 align=center>StorageInfo Class Reference</h1><p>The StorageInfo class describes the disks mounted on the file system.<a href="#details">More...</a><p><tt>#include <<a href="storage-h.html">storage.h</a>></tt><p><a href="storageinfo-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#StorageInfo"><b>StorageInfo</b></a> ( QObject * parent = 0 )</div></li><li><div class=fn>const QList<FileSystem> & <a href="#fileSystems"><b>fileSystems</b></a> () const</div></li><li><div class=fn>const FileSystem * <a href="#fileSystemOf"><b>fileSystemOf</b></a> ( const QString & filename )</div></li><li><div class=fn>QStringList <a href="#fileSystemNames"><b>fileSystemNames</b></a> () const</div></li></ul><h2>Public Slots</h2><ul><li><div class=fn>void <a href="#update"><b>update</b></a> ()</div></li></ul><h2>Signals</h2><ul><li><div class=fn>void <a href="#disksChanged"><b>disksChanged</b></a> ()</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2> The StorageInfo class describes the disks mounted on the file system.<p> This class provides access to the mount information for the Linuxfilesystem. Each mount point is represented by the <a href="filesystem.html">FileSystem</a> class.To ensure this class has the most up to date size information, callthe <a href="#update">update</a>() method. Note that this will automatically be signaledby the operating system when a disk has been mounted or unmounted.<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="StorageInfo"></a>StorageInfo::StorageInfo ( QObject * parent = 0 )</h3> Constructor that determines the current mount points of the filesystem.The standard <em>parent</em> parameters is passed on to QObject.<h3 class=fn>void <a name="disksChanged"></a>StorageInfo::disksChanged ()<tt> [signal]</tt></h3> Gets emitted when a disk has been mounted or unmounted, such as whena CF card has been inserted.<h3 class=fn>QStringList <a name="fileSystemNames"></a>StorageInfo::fileSystemNames () const</h3> Returns a list of filesystem names.<h3 class=fn>const <a href="filesystem.html">FileSystem</a> * <a name="fileSystemOf"></a>StorageInfo::fileSystemOf ( const QString & filename )</h3> Returns the longest matching <a href="filesystem.html">FileSystem</a> that starts with thesame prefix as <em>filename</em> as its mount point.<h3 class=fn>const QList<FileSystem> & <a name="fileSystems"></a>StorageInfo::fileSystems () const</h3> Returns a list of all available mounted file systems.<p> <b>Warning:</b> This may change in Qtopia 3.x to return only relevant Qtopia file systems (and ignore mount points such as /tmp)<h3 class=fn>void <a name="update"></a>StorageInfo::update ()<tt> [slot]</tt></h3> Updates the mount and free space available information for each mountpoint. This method is automatically called when a disk is mounted orunmounted.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright © 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -