[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Access data engine from C++ QML Plugin?
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2013-01-25 8:08:36
Message-ID: 7551921.pMc7AyrY41 () freedom
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Thursday, January 24, 2013 19:56:52 Michail Vourlakos wrote:
> is there a way to access a data engine from a C++ QML Plugin?
You can access a DataEngine from any bit of C++ code by using
DataEngineManager directly .. however, I would instead recommend subclassing
the DataEngineConsumer class as it provides a rather more friendly API. it is
also what will be avaiable in libplasma2.
you can find DataEngineConsumer in kdelibs/plasma/private/dataengineconsumer*
by subclassing it (or using it directly as a class member) you will have the
exact same API in your class that Applet and other classes in libplasma have
for DataEngines.
--
Aaron J. Seigo
["signature.asc" (application/pgp-signature)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic