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

<div>Chris<br><br></div>
<div class="gmail_quote">On Tue, May 12, 2009 at 11:30 AM, Martin Koller <span dir="ltr">&lt;<a href="mailto:kollix@aon.at">kollix@aon.at</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>I&#39;m in the process of porting my backup application (kbackup) to KDE4.<br>I hope I can use Solid to find out if the path the user entered as the<br>
target directory is located on a device which has removable media.<br><br>The question is: How can I ask Solid about a device where the only thing I know<br>is a path to a directory ?<br><br>I assume once I have that, I can use Solid::StorageDrive::isRemovable() ...<br>
<br>--<br>Best regards/Schöne Grüße<br><br>Martin    ()  ascii ribbon campaign - against html mail<br>         /\                        - against microsoft attachments<br>_______________________________________________<br>
Kde-hardware-devel mailing list<br><a href="mailto:Kde-hardware-devel@kde.org">Kde-hardware-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/kde-hardware-devel" target="_blank">https://mail.kde.org/mailman/listinfo/kde-hardware-devel</a><br>
</blockquote></div><br>