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

List:       kde-devel
Subject:    Re: Dolphin: plugin loading problem
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2009-11-04 22:23:13
Message-ID: 200911041423.14816.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On November 4, 2009, Peter Penz wrote:
> I checked http://techbase.kde.org/Development/Tutorials/Services/Plugins
>  but don't understand how to deal with "The Plugin Factory Macro" and guess
>  that is missing in my SVN plugin...


sth like this in your plugin's .cpp file:

K_PLUGIN_FACTORY(factory, registerPlugin<$CLASSNAME>();) 
K_EXPORT_PLUGIN(factory($LIBRARYNAME))

replacing the $variables with the respective values (library name doesn't 
include the .so suffix of course :)

-- 
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)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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