[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-hardware-devel
Subject: Re: [Kde-hardware-devel] How to use Solid
From: Christopher Blauvelt <cblauvelt () gmail ! com>
Date: 2009-05-12 16:51:15
Message-ID: ffa898c90905120951s53961f47r14e99e9cfe30b1d6 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@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=F6ne Gr=FC=DFe
>
> Martin () ascii ribbon campaign - against html mail
> /\ - against microsoft attachments
> _______________________________________________
> Kde-hardware-devel mailing list
> Kde-hardware-devel@kde.org
> https://mail.kde.org/mailman/listinfo/kde-hardware-devel
>
[Attachment #5 (text/html)]
<div>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.</div>
<div>Chris<br><br></div>
<div class="gmail_quote">On Tue, May 12, 2009 at 11:30 AM, Martin Koller <span \
dir="ltr"><<a href="mailto:kollix@aon.at">kollix@aon.at</a>></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'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>
_______________________________________________
Kde-hardware-devel mailing list
Kde-hardware-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-hardware-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic