[PATCH] Make KDiskFreeSpace more convenient -> KJob-like usage
huntedhacker at tiscali.co.uk
Wed Jul 23 21:14:00 BST 2008
On Wednesday 23 July 2008 15:56:29 Sebastian Trüg wrote:
> On Wednesday 23 July 2008 15:35:52 Dirk Mueller wrote:
> > On Wednesday 23 July 2008, Sebastian Trüg wrote:
> > > please find attached a patch for KDiskFreeSpace. I found it to be very
> > > inconvenient to use.
> > A reminescense of the old implementation, which was async. I've changed
> > it to be synchronous, so I'm not sure if we should invest more in that
> > old interface. IMHO a static ::getFreeDiskspace() (better method name
> > welcome) would be enough.
> Sure, for KDE 5, but for now we have to keep the old API.
That just means you have to keep it around. You could introduce the static
method, and mark the old usage as deprecated.
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org
More information about the kde-core-devel