# class KDiskFreeSpace

###

Module | kio
Namespace |
Class | KDiskFreeSpace
Inherits | QObject

This class parses the output of "df" to find the disk usage information for a given partition (mount point).

### methods

- KDiskFreeSpace (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | 0

  Constructor

- KDiskFreeSpace (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject | 0

- done ( )

  returns Nothing
  SIGNAL ("done ()")

  Emitted when the request made via readDF is over, whether foundMountPoint was emitted or not.

- findUsageInfo (path)

  returns KDiskFreeSpace
  static

  Argument | Type | Default
  --- | --- | ---
  path | QString |

  Call this to fire a search on the disk usage information for the mount point containing path. The foundMountPoint() signal will be emitted if this mount point is found, with the info requested. The done() signal is emitted in any case.

- foundMountPoint (mountPoint, kibSize, kibUsed, kibAvail)

  returns Nothing
  SIGNAL ("foundMountPoint (const QString&, quint64, quint64, quint64)")

  Argument | Type | Default
  --- | --- | ---
  mountPoint | QString |
  kibSize | quint64 |
  kibUsed | quint64 |
  kibAvail | quint64 |

  Emitted when the information about the requested mount point was found.

  mountPoint - the requested mount point

  kibSize - the total size of the partition in KiB

  kibUsed - the amount of KiB being used on the partition

  kibAvail - the available space on the partition in KiB

- readDF (mountPoint)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  mountPoint | QString |

  Call this to fire a search on the disk usage information for mountPoint. The foundMountPoint() signal will be emitted if this mount point is found, with the info requested. The done() signal is emitted in any case.

  Returns true if the request could be handled, false if another request is happening already. readDF() can only be called once on a given instance of KDiskFreeSpace, given that it handles only the request for one mount point and then auto-deletes itself. Suicidal objects are not reusable...