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

List:       kde-panel-devel
Subject:    Re: Plugins: Use Qt plugin art. or XML?
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2008-07-16 16:38:42
Message-ID: 200807161038.42845.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday 15 July 2008, Kelly Miller wrote:
> Well, I went through the API, but I can't seem to locate the info I need to
> use the plugin system, and the tutorial's incomplete.

you can look at how we do it with Applet or DataEngine. there are 3 pieces:

* the service definition (look in workspace/libs/plasma/servicetypes/ for 
examples of that)

* the plugin loader hook (look for K_EXPORT_PLASMA_APPLET at the bottom of 
applet.h)

* loading the plugin via KServiceTypeTrader (look at Applet::load in 
applet.cpp)

-- 
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 Trolltech


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

_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


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

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