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

List:       kde-panel-devel
Subject:    Re: plasma dataengine question
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2011-03-16 7:24:02
Message-ID: 201103160824.06350.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wednesday, March 16, 2011, Farhad Hedayati-Fard wrote:
> there is another problem here! I've inherited from Plasma::PackageStructure
> (Just like comic_package in comic dataengine)... but I still can't install
> my translator plugin with plasmapkg:
> Could not find a suitable installer for package of type Plasma/Translator

firstly, what language are your addons written in? are they also in 
javascript, like the comic engine?  

in any case, to let plasmapkg know about Plasma/Translator packages, there 
needs to either be a plasma package plugin (C++) installed, which is what the 
comic DataEngine (among others) do. in the comic engine, see:

comic_package.h
comic_package.cpp
comic_package_plugin.cpp
plasma-packagestructure-comic.desktop

if your plugins are javascript and your datengine and plugins don't need 
access to anything more than http or other facilities provided by the 
javascript bindings, then you could write your DataEngine in Javascript as 
well and you get addons for free. for an example of that see:

kdeexamples/plasma/javascript/generic/usingAddons/
kdeexamples/plasma/javascript/generic/exampleAddon/

> though! (there is no good tutorial on plasma packages too! at least I
> couldn't find any in techbase!)

you're right, there isn't. another bit fo docuemtnation that needs writing.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks

["signature.asc" (application/pgp-signature)]

_______________________________________________
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