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 <[email protected]> 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 > [email protected] > https://mail.kde.org/mailman/listinfo/kde-hardware-devel >
_______________________________________________ Kde-hardware-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-hardware-devel
