KDE 4.1 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KDiskFreeSpace Class Reference

from PyKDE4.kio import *

Inherits: QObject

Detailed Description

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


Signals

 done ()
 foundMountPoint (QString mountPoint, quint64 kibSize, quint64 kibUsed, quint64 kibAvail)

Methods

 __init__ (self, QObject parent=0)
 done (self)
 foundMountPoint (self, QString mountPoint, quint64 kibSize, quint64 kibUsed, quint64 kibAvail)
bool readDF (self, QString mountPoint)

Static Methods

KDiskFreeSpace findUsageInfo (QString path)

Method Documentation

__init__ (  self,
QObject  parent=0
)

Constructor

done (   self )

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

Signal syntax:
QObject.connect(source, SIGNAL("done()"), target_slot)
KDiskFreeSpace findUsageInfo ( QString  path
)

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 (  self,
QString  mountPoint,
quint64  kibSize,
quint64  kibUsed,
quint64  kibAvail
)

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

Parameters:
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

Signal syntax:
QObject.connect(source, SIGNAL("foundMountPoint(const QString&, quint64, quint64, quint64)"), target_slot)
bool readDF (  self,
QString  mountPoint
)

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...

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal