# class KMountPoint

###

Module | kio
Namespace |
Class | KMountPoint
Inherits |

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

Author Waldo Bastian <bastian@kde.org>

### enums

- DetailsNeededFlag { BasicInfoNeeded, NeedMountOptions, NeedRealDeviceName }
  typesafe object: DetailsNeededFlags
- FileSystemFlag { SupportsChmod, SupportsChown, SupportsUTime, SupportsSymlinks, CaseInsensitive }

enum details

### methods

- KMountPoint ( )

  returns ctor
  Not implemented

  Constructor

- currentMountPoints (infoNeeded)

  returns KMountPoint.List
  static

  Argument | Type | Default
  --- | --- | ---
  infoNeeded | KMountPoint.DetailsNeededFlags | KMountPoint.BasicInfoNeeded

  This function gives a list of all currently used mountpoints. (mtab)

  infoNeeded - Flags that specify which additional information should be fetched.

- mountOptions ( )

  returns QStringList

  Options used to mount the filesystem. Only available when the NeedMountOptions flag was set.

- mountPoint ( )

  returns QString

  Path where the filesystem is mounted or can be mounted.

- mountType ( )

  returns QString

  Type of filesystem

- mountedFrom ( )

  returns QString

  Where this filesystem gets mounted from. This can refer to a device, a remote server or something else.

- possibleMountPoints (infoNeeded)

  returns KMountPoint.List
  static

  Argument | Type | Default
  --- | --- | ---
  infoNeeded | KMountPoint.DetailsNeededFlags | KMountPoint.BasicInfoNeeded

  This function gives a list of all possible mountpoints. (fstab)

  infoNeeded - Flags that specify which additional information should be fetched.

- probablySlow ( )

  returns bool

  Checks if the filesystem that is probably slow (nfs mounts). Returns true if the filesystem is probably slow

- realDeviceName ( )

  returns QString

  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.

- testFileSystemFlag (flag)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  flag | KMountPoint.FileSystemFlag |

  Checks the capabilities of the filesystem.

  flag - the flag to check Returns true if the filesystem has that flag, false if not

  The availables flags are:

- SupportsChmod: returns true if the filesystem supports chmod
(e.g. msdos filesystems return false)
- SupportsChown: returns true if the filesystem supports chown
(e.g. msdos filesystems return false)
- SupportsUtime: returns true if the filesystems supports utime
(e.g. msdos filesystems return false)
- SupportsSymlinks: returns true if the filesystems supports symlinks
(e.g. msdos filesystems return false)
- CaseInsensitive: returns true if the filesystem treats
"foo" and "FOO" as being the same file (true for msdos systems)

### enums - detail

- DetailsNeededFlag { BasicInfoNeeded, NeedMountOptions, NeedRealDeviceName }

  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.

  typesafe object: DetailsNeededFlags

BasicInfoNeeded - 0 -
NeedMountOptions - 1 -
NeedRealDeviceName - 2 -

- FileSystemFlag { SupportsChmod, SupportsChown, SupportsUTime, SupportsSymlinks, CaseInsensitive }

  | SupportsChmod | - | - |
  | SupportsChown | - | - |
  | SupportsUTime | - | - |
  | SupportsSymlinks | - | - |
  | CaseInsensitive | - | - |