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

List:       kde-panel-devel
Subject:    Re: DataEngine in JavaScript: Help
From:       Alessandro Diaferia <alediaferia () gmail ! com>
Date:       2010-06-19 11:07:56
Message-ID: AANLkTimTfCs0qFn_UD9uO1CQmQ3vzLVOzo8fmlCqfdik () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I had a look at the dataengine. When loading it via plasmaenginexplorer it
says "package is in path which is a "Plasmoid" package" .. This seems no
good to me.
Can you point out what's wrong?

Also, are there any implementations of JS DataEngines to take inspiration
from? As there's near to 0 docs about them. Or probably i wasn't able to
find any.

Thanks.

2010/6/17 Onur-Hayri Bakici <thehayro@gmail.com>

> Hey guys.
>
> i have issues about running this code:
>
>
> function sourceRequestEvent(source)
> {
>  print("Test");
>  setData("Hello", "World");
>  return true;
>
> }
>
> function updateSourceEvent(source)
> {
>  return true;
> }
>
> it doesnt do anything. not printing out test, nothing.
> i already have plasma-scriptengines-javascript installed.
>
> here is my metadata.desktop:
>
> X-KDE-ServiceTypes=Plasma/DataEngine
> Type=Service
>
>
> X-Plasma-API=javascript
> X-Plasma-MainScript=mediadataengine.js
> X-Plasma-ComponentTypes=DataEngine
>
> X-Plasma-EngineName=webmedia
> X-KDE-Library=plasma_engine_webmedia
> X-KDE-PluginInfo-Author=test
> X-KDE-PluginInfo-Email=test@test.com
> X-KDE-PluginInfo-Name=webmedia
> X-KDE-PluginInfo-Version=0.1
> X-KDE-PluginInfo-Website=http://plasma.kde.org/
> X-KDE-PluginInfo-Category=Multimedia
> X-KDE-PluginInfo-License=LGPL
> X-KDE-PluginInfo-EnabledByDefault=true
>
> i am also not quite sure, if i have the X-KDE-ServiceTypes correct, because
> the plasma-scriptengine-dataengine-javascript.desktop in
> kdebase/runtime/plasma/scriptengines/javascript
>
> thank you in advance
>
> cheers
> thehayro
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>



-- 
Alessandro Diaferia
KDE Developer
KDE e.V. member

[Attachment #5 (text/html)]

I had a look at the dataengine. When loading it via plasmaenginexplorer it says \
&quot;package is in path which is a &quot;Plasmoid&quot; package&quot; .. This seems \
no good to me.<br>Can you point out what&#39;s wrong?<br> <br>Also, are there any \
implementations of JS DataEngines to take inspiration from? As there&#39;s near to 0 \
docs about them. Or probably i wasn&#39;t able to find \
any.<br><br>Thanks.<br><br><div class="gmail_quote">2010/6/17 Onur-Hayri Bakici <span \
dir="ltr">&lt;<a href="mailto:thehayro@gmail.com">thehayro@gmail.com</a>&gt;</span><br>
 <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
solid rgb(204, 204, 204); padding-left: 1ex;">Hey guys.<br> <br>
i have issues about running this code:<br>
<br>
<br>
function sourceRequestEvent(source)<br>
{<br>
   print(&quot;Test&quot;);<br>
   setData(&quot;Hello&quot;, &quot;World&quot;);<br>
   return true;<br>
<br>
}<br>
<br>
function updateSourceEvent(source)<br>
{<br>
   return true;<br>
}<br>
<br>
it doesnt do anything. not printing out test, nothing.<br>
i already have plasma-scriptengines-javascript installed.<br>
<br>
here is my metadata.desktop:<br>
<br>
X-KDE-ServiceTypes=Plasma/DataEngine<br>
Type=Service<br>
<br>
<br>
X-Plasma-API=javascript<br>
X-Plasma-MainScript=mediadataengine.js<br>
X-Plasma-ComponentTypes=DataEngine<br>
<br>
X-Plasma-EngineName=webmedia<br>
X-KDE-Library=plasma_engine_webmedia<br>
X-KDE-PluginInfo-Author=test<br>
X-KDE-PluginInfo-Email=<a href="mailto:test@test.com">test@test.com</a><br>
X-KDE-PluginInfo-Name=webmedia<br>
X-KDE-PluginInfo-Version=0.1<br>
X-KDE-PluginInfo-Website=<a href="http://plasma.kde.org/" \
target="_blank">http://plasma.kde.org/</a><br> \
X-KDE-PluginInfo-Category=Multimedia<br> X-KDE-PluginInfo-License=LGPL<br>
X-KDE-PluginInfo-EnabledByDefault=true<br>
<br>
i am also not quite sure, if i have the X-KDE-ServiceTypes correct, because<br>
the plasma-scriptengine-dataengine-javascript.desktop in<br>
kdebase/runtime/plasma/scriptengines/javascript<br>
<br>
thank you in advance<br>
<br>
cheers<br>
thehayro<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
</blockquote></div><br><br clear="all"><br>-- <br>Alessandro Diaferia<br>KDE \
Developer<br>KDE e.V. member<br><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