Fwd: Dolphin: plugin loading problem

14 views
Skip to first unread message

Jonas Bähr

unread,
Nov 4, 2009, 5:46:26 PM11/4/09
to krusade...@googlegroups.com
Could be interesting to use these too in Krusader... Can the new MVC
views display Dolphin's views too?

Anfang der weitergeleiteten E-Mail:

> Von: Peter Penz <peter...@gmx.at>
> Datum: 4. November 2009 22:49:43 MEZ
> An: kde-...@kde.org
> Betreff: Dolphin: plugin loading problem
> Antwort an: kde-...@kde.org
>
> 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<KVersionControlPlugin>();
> // ...
> }
>
> 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 <<

shie erlich

unread,
Nov 5, 2009, 5:12:35 AM11/5/09
to krusade...@googlegroups.com
i think no :-(
Reply all
Reply to author
Forward
0 new messages