[Panel-devel] kalming kickoff

Kevin Ottens ervin at kde.org
Mon Nov 12 19:41:14 CET 2007


Le lundi 12 novembre 2007, Aaron J. Seigo a écrit :
> if the device isn't currently accessible, e.g. it's an unmounted
> CD/DVD/etc, i'd like to say what kind of device it is since it will have
> neither a sensible path nor a sensible title.

I don't get it... Are we talking about the drive, or the volume in the drive?
(one being the parent of the other)

> this information seems to be 
> in StorageDrive::DriveType? is there a way to get a translated string out
> for a given DriveType (i couldn't find such a thing)?

Nope.

> and is it possible to 
> get a StorageDrive oject for a non-mounted drive?

Of course, the StorageDrive (only exception being the floppy drives) hold 
no "mounting" information anyway.

> (i'm having issues with device.as<Solid::StorageDrive> in general... it
> returning a null ptr in all cases ... )

Odd... But I think you misunderstood what I said earlier, in the tree when a 
device has the StorageVolume interface then the parent of this device has the 
StorageDrive interface. I think you try to get StorageDrive and StorageVolume 
on the same device.

> i also notice that we don't seem to be responding to hotplug events in
> kickoff. i'll have to fix that today as well.

One could say you really want to use KFilePlacesModel instead of all this code 
that leads to feature duplication. :-)

IIRC someone made a places dataengine...

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: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071112/8bd16ab2/attachment.pgp 


More information about the Panel-devel mailing list