KDECore
KMountPoint::List Class Reference
#include <kmountpoint.h>
Inheritance diagram for KMountPoint::List:
Public Member Functions | |
List () | |
Ptr | findByDevice (const QString &device) const |
Ptr | findByPath (const QString &path) const |
Detailed Description
List of mount points.
Definition at line 42 of file kmountpoint.h.
Constructor & Destructor Documentation
KMountPoint::List::List | ( | ) |
Definition at line 479 of file kmountpoint.cpp.
Member Function Documentation
KMountPoint::Ptr KMountPoint::List::findByDevice | ( | const QString & | device | ) | const |
Returns the mount point associated with device
, i.e.
the one where mountedFrom() == device
(after symlink resolution).
- Returns
- the mountpoint, or 0 if this device doesn't exist or isn't mounted
Definition at line 525 of file kmountpoint.cpp.
KMountPoint::Ptr KMountPoint::List::findByPath | ( | const QString & | path | ) | const |
Find the mountpoint on which resides path
For instance if /home is a separate partition, findByPath("/home/user/blah") will return /home.
- Parameters
-
path the path to check
- Returns
- the mount point of the given file
Definition at line 502 of file kmountpoint.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.