[Kde-hardware-devel] How to use Solid

Christopher Blauvelt cblauvelt at gmail.com
Tue May 12 18:51:15 CEST 2009


If you look in the tutorials folder in kdelibs/solid/ you'll see a lot of
example code.  I'll upload a tutorial I've written that shows how to use
predicates to query Solid.  Another place to look would be the
devicenotifier applet under kdebase/workspace/plasma.
Chris

On Tue, May 12, 2009 at 11:30 AM, Martin Koller <kollix at aon.at> wrote:

> Hi,
>
> I'm in the process of porting my backup application (kbackup) to KDE4.
> I hope I can use Solid to find out if the path the user entered as the
> target directory is located on a device which has removable media.
>
> The question is: How can I ask Solid about a device where the only thing I
> know
> is a path to a directory ?
>
> I assume once I have that, I can use Solid::StorageDrive::isRemovable() ...
>
> --
> Best regards/Schöne Grüße
>
> Martin    ()  ascii ribbon campaign - against html mail
>          /\                        - against microsoft attachments
> _______________________________________________
> Kde-hardware-devel mailing list
> Kde-hardware-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-hardware-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20090512/628febf8/attachment.htm 


More information about the Kde-hardware-devel mailing list