[Panel-devel] soliddevice available space
Kevin Ottens
ervin at kde.org
Mon Oct 8 19:54:06 CEST 2007
Le lundi 08 octobre 2007, Alex Merry a écrit :
> On Monday 08 Oct 2007, Aaron J. Seigo wrote:
> > On Monday 08 October 2007, Petri Damstén wrote:
> > > Hi,
> > >
> > > soliddevice data engine does not return free space for hdd. In hdd
> > > applet I now get it with statfs call. Could this be moved to the
> > > dataengine?
> >
> > IIRC, Kevin-of-Solid (he loves it when you call him that) said that
> > such information should come from elsewhere, e.g. libksysguard ...
Yes, from the scope of the lib that's what makes more sense. But nobody said
that dataengines must map libs 1:1. ;-)
> > as
> > far as i'm concerned, i think this will be a common request and the
> > data, regardless of where it comes from, should be added to the data
> > engine. however, i don't think we should be using statfs calls
> > directly, but KMountPoint (if necessary, does Solid provide the mount
> > point or just the device?) and KDiskFreeSpace, both of which are in
> > libkio ... example usage can be seen in
> > kdebase/apps/dolphin/statusbarspaceinfo.cpp
>
> Or, indeed in the Places data engine.
+1, that's where it'd make sense, in particular since Kickoff could and should
use it.
Regards.
--
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071008/87fa5959/attachment.pgp
More information about the Panel-devel
mailing list