KDECore
kmountpoint.cpp
Go to the documentation of this file.
180 const QString potentialDevice = QFile::symLinkTarget(QString::fromLatin1("/dev/disk/by-uuid/") + uuid);
187 const QString potentialDevice = QFile::symLinkTarget(QString::fromLatin1("/dev/disk/by-label/") + label);
495 return parent.compare(child, cs) == 0 || parent.endsWith(slash) || child.at(parent.length()) == slash;
528 if (realDevice.isEmpty()) // d->device can be empty in the loop below, don't match empty with it
542 bool autofs = d->mountType == QLatin1String("autofs") || d->mountType == QLatin1String("subfs");
556 const bool isMsDos = ( d->mountType == QLatin1String("msdos") || d->mountType == QLatin1String("fat") || d->mountType == QLatin1String("vfat") );
557 const bool isNtfs = d->mountType.contains(QLatin1String("fuse.ntfs")) || d->mountType.contains(QLatin1String("fuseblk.ntfs"))
560 const bool isSmb = d->mountType == QLatin1String("cifs") || d->mountType == QLatin1String("smbfs");
Ptr findByPath(const QString &path) const
Find the mountpoint on which resides path For instance if /home is a separate partition,...
Definition kmountpoint.cpp:502
Ptr findByDevice(const QString &device) const
Returns the mount point associated with device, i.e.
Definition kmountpoint.cpp:525
The KMountPoint class provides information about mounted and unmounted disks.
Definition kmountpoint.h:36
bool testFileSystemFlag(FileSystemFlag flag) const
Checks the capabilities of the filesystem.
Definition kmountpoint.cpp:554
QString realDeviceName() const
Canonical name of the device where the filesystem got mounted from.
Definition kmountpoint.cpp:459
QString mountPoint() const
Path where the filesystem is mounted or can be mounted.
Definition kmountpoint.cpp:464
bool probablySlow() const
Checks if the filesystem that is probably slow (network mounts).
Definition kmountpoint.cpp:538
static List currentMountPoints(DetailsNeededFlags infoNeeded=BasicInfoNeeded)
This function gives a list of all currently used mountpoints.
Definition kmountpoint.cpp:295
static List possibleMountPoints(DetailsNeededFlags infoNeeded=BasicInfoNeeded)
This function gives a list of all possible mountpoints.
Definition kmountpoint.cpp:208
static QString realFilePath(const QString &filename)
Expands all symbolic links and resolves references to '/.
Definition kstandarddirs.cpp:973
Definition kaboutdata.h:33
static bool pathsAreParentAndChildOrEqual(const QString &parent, const QString &child)
Definition kmountpoint.cpp:484
static QString devNameFromOptions(const QStringList &options)
When using supermount, the device name is in the options field as dev=/my/device.
Definition kmountpoint.cpp:161
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.