integrating plasma into kdevelop's dashboard

Aaron J. Seigo aseigo at kde.org
Wed Jul 28 18:12:55 CEST 2010


On July 28, 2010, Aleix Pol wrote:
> I thought I could use that data engine approach but looks like that all
> projects would have to share the same DataEngine instance so I still need
> to tell them separately what project do they have to target somehow.

what you want is a mapping between a containment and a project, essentially,
 right?

assuming you have such a mapping somewhere, the DataEngine could have one
 source per Containment, keyed by the Containment's id.

then the Applet can, in it's init(),
 do:

dataEngine("org.kdevelop.projects").connectSource(QString::number(containmen
t()->id()), this);

then all that's needed is to update the DataEngine. this can be done in any
 number of ways, depending on the internals of your app.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F
 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100728/a47c358f/attachment.sig 


More information about the Plasma-devel mailing list