Στις 25/01/2013 10:08 πμ, ο/η Aaron J. Seigo έγραψε:
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.


Perfect, thanks a lot Aaron, it worked like a charm,
I used DataEngineManager because DataEngineConsumer
was not accesible in my system. I dont know why Kde 4.9, opensuse 12.2
_______________________________________________
Plasma-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to