<div class="gmail_quote">On Tue, Jul 5, 2011 at 00:52, Shaun Reich <span dir="ltr"><<a href="mailto:predator106@gmail.com">predator106@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Jul 4, 2011 at 2:07 PM, Martin Klapetek<br>
<<a href="mailto:martin.klapetek@gmail.com">martin.klapetek@gmail.com</a>> wrote:<br>
>The plasmoid is pure QML, therefore we can't do any dbus<br>
> magic directly with it (or can we?).<br>
<br>
</div>Well, remember, JS == QML, basically. So I don't see why not...<br></blockquote><div><br></div><div>Is there any pure QML plasmoid using dbus? I'd be interested in this..</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
> So I'd like to know - is there any way that we can detect if the plasmoid is<br>
> in use from any KApp and not depend on Plasma libs?<br>
<br>
</div>A dbus interface sounds the most reasonable, here -- in that case.<br>
<div class="im"><br>
>And related question is the dataengine in use only when the plasmoid is active?<br>
<br>
</div>In general I'd say yes, although it depends on what you are referring<br>
to when you say "active". DataEngines do not exist until they are<br>
called upon. When they are no longer being used (e.g. applet dies)<br>
they will die as well.<br>
<div class="im"><br>
>If so, is it "safe" (in terms that we can rely on it 100%) to export some activity<br>
> indicator from the dataengine on dbus?<br>
<br>
</div>That would be fine. Other dataengines create dbus interfaces as well,<br>
so you are not alone in your need.<br></blockquote><div><br></div><div>The thing that concerns me is that if the dataengine is created without the plasmoid, we'd get a false positive, which is unwanted. Also, the refCount in Plasma::DataEnginePriv would be very usefull if exposed to child classes of Plasma::DataEngine ;)</div>
<div><br></div><div>--Marty</div></div>