From kde-devel Wed Nov 04 21:49:43 2009 From: Peter Penz Date: Wed, 04 Nov 2009 21:49:43 +0000 To: kde-devel Subject: Dolphin: plugin loading problem Message-Id: <200911042249.43690.peter.penz () gmx ! at> X-MARC-Message: https://marc.info/?l=kde-devel&m=125737284131571 Hello, Dolphin for KDE 4.4 will support plugins for revision control systems like SVN (already implemented as prototype), Git, CVS, ... I've written already a plugin prototype for SVN. Currently it is located inside the Dolphin sources, but it will be removed outside Dolphin if the plugin interface has been proofed to be stable (probably KDE 4.5). However I've problem to load the plugin properly and hope someone can give me a hint. To load the plugin the following approach is used: const KService::List plugins = KServiceTypeTrader::self()->query("FileViewVersionControlPlugin"); for (KService::List::ConstIterator it = plugins.constBegin(); it != plugins.constEnd(); ++it) { KVersionControlPlugin* p = (*it)->createInstance(); // ... } The SVN plugin can be found successfully, however p is always 0 and the following error is given: dolphin(13505)/kdecore (KLibrary) kde4Factory: The library "/home/kde4peter/kde/lib/kde4/fileviewsvnplugin.so" does not offer a qt_plugin_instance function. dolphin(13505)/kdecore (KLibrary) kde3Factory: The library "/home/kde4peter/kde/lib/kde4/fileviewsvnplugin.so" does not offer an "init_fileviewsvnplugin" function. 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... Maybe someone with plugin-experience has a hint for me ;-) The plugin interface is defined at [1], the subversion plugin is available in Dolphin at [2]. Thanks in advance for any help, Peter [1] Version control plugin interface: http://websvn.kde.org/trunk/KDE/kdebase/apps/lib/konq/kversioncontrolplugin.h?revision=1017549&view=markup [2] Subversion plugin in Dolphin: http://websvn.kde.org/trunk/KDE/kdebase/apps/dolphin/src/fileviewsvnplugin.h?revision=1022921&view=markup http://websvn.kde.org/trunk/KDE/kdebase/apps/dolphin/src/fileviewsvnplugin.cpp?revision=1022921&view=markup >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<