[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: [Panel-devel] SolidDeviceEngine
From: Petri =?utf-8?q?Damst=C3=A9n?= <petri.damsten () dnainternet ! net>
Date: 2007-11-01 19:31:20
Message-ID: 200711012131.20241.petri.damsten () dnainternet ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Thursday 01 November 2007 21:20:05 Aaron J. Seigo wrote:
> anyways, i suppose a bigger question is: why are you querying versus
> connecting? =)
Devices are only needed at start to get some device list and then that list
items are connected. Something like this:
const Plasma::DataEngine::Data &data = engine->query("Devices");
m_uuids = data["Storage Volume List"].toStringList();
foreach (const QString &uuid, m_uuids) {
engine->connectSource(uuid, this, m_interval * 60 * 1000);
}
I also would like to query those when opening configuration dialog.
Petri
--
Windows noun
A 32 bit extension to a 16 bit frontend for an 8 bit operating system designed
to run on a 4 bit processor by a 2 bit company that doesn't care 1 bit.
["signature.asc" (application/pgp-signature)]
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic