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

List:       kde-panel-devel
Subject:    DataEngine in JavaScript: Help
From:       "Onur-Hayri Bakici" <thehayro () gmail ! com>
Date:       2010-06-16 22:49:17
Message-ID: 201006170049.17221.thehayro () gmail ! com
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic