[Panel-devel] SolidDeviceEngine
Petri Damstén
petri.damsten at dnainternet.net
Thu Nov 1 20:31:20 CET 2007
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071101/eda18735/attachment.pgp
More information about the Panel-devel
mailing list