<div class="gmail_quote">On Tue, Jul 5, 2011 at 00:52, Shaun Reich <span dir="ltr">&lt;<a href="mailto:predator106@gmail.com">predator106@gmail.com</a>&gt;</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>
&lt;<a href="mailto:martin.klapetek@gmail.com">martin.klapetek@gmail.com</a>&gt; wrote:<br>
&gt;The plasmoid is pure QML, therefore we can&#39;t do any dbus<br>
&gt; magic directly with it (or can we?).<br>
<br>
</div>Well, remember, JS == QML, basically. So I don&#39;t see why not...<br></blockquote><div><br></div><div>Is there any pure QML plasmoid using dbus? I&#39;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>
&gt; So I&#39;d like to know - is there any way that we can detect if the plasmoid is<br>
&gt; 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>
&gt;And related question is the dataengine in use only when the plasmoid is active?<br>
<br>
</div>In general I&#39;d say yes, although it depends on what you are referring<br>
to when you say &quot;active&quot;. 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>
&gt;If so, is it &quot;safe&quot; (in terms that we can rely on it 100%) to export some activity<br>
&gt; 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&#39;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>