[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Ruby applet dataEngine service operation call
From:        <kde () xfou ! com>
Date:       2009-08-16 12:28:23
Message-ID: 9fa26e080908160528nf93e4c0t8cdb10ca07d4cd7d () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

I would like to create a ruby plasma applet which will use the tasks data
engine.
I have a problem to call operations on service.

In plasmaengineexplorer i can close a window but i don't manage it in ruby

service=dataEngine("tasks").serviceForSource(dataEngine("tasks").sources.first)

service.startOperationCall(service.operationDescription("close"))


This does not do anything.


pp service.operationNames gives an empty array


I attached the plasmoid source code. This action is triggered when clicking
on the plasmoid and then clicking on a window name in the list.

Thanks for your help
Cédric H

[Attachment #5 (text/html)]

Hello,<br><br>I would like to create a ruby plasma applet which will use the tasks \
data engine. <br>I have a problem to call operations on service. 

<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(0, 0, 0);">In \
plasmaengineexplorer i can close a window but i don&#39;t manage it in \
ruby</span></p><br>

<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(0, 0, \
0);">service=dataEngine(&quot;tasks&quot;).serviceForSource(dataEngine(&quot;tasks&quot;).sources.first)</span></p>
 <p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(112, 144, \
112);"></span><span style="color: rgb(0, 0, \
0);">service.startOperationCall(service.operationDescription(&quot;close&quot;))</span></p>
 <p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(112, 144, \
112);"></span><span style="color: rgb(0, 0, 0);"><br></span></p><p style="margin: \
0px; text-indent: 0px;"><span style="color: rgb(0, 0, 0);">This does not do \
anything.</span></p>

<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(0, 0, \
0);"><br></span></p> <p style="margin: 0px; text-indent: 0px;"><span style="color: \
rgb(112, 144, 112);"></span><span style="color: rgb(0, 0, 0);">pp \
service.operationNames gives an empty array</span></p> <p style="margin: 0px; \
text-indent: 0px;"><span style="color: rgb(112, 144, 112);"></span><span \
style="color: rgb(0, 0, 0);"><br></span></p>I attached the plasmoid source code. This \
action is triggered when clicking on the plasmoid and then clicking on a window name \
in the list.<br>

<br>Thanks for your help<br>Cédric H<br>



_______________________________________________
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