inter-plugin dependencies and BC
adymo at mksat.net
Thu Sep 8 12:55:06 UTC 2005
This mail summarises what we've discussed with Ian Geiser at aKademy.
Current policy in KDevelop is to put all public interfaces people may use
to lib/interfaces (libkdevelop.so) and implement them somewhere in shell.
This obviously means that we have lots of interfaces in the core but not all
of them are necessary for platform applications.
The solution is to allow individual plugins to define their interfaces and
link other plugins to those interfaces. Basically, we'd like to introduce
inter-plugin dependencies (like Eclipse ;)). The only problem is that we'd
be forced then to keep BC not only in the core interfaces, but in plugins
as well. And this is not good for us.
But there's a way to introduce inter-plugin dependencies and at the same
time do not care about BC. The solutions is simple - we can use
QMetaObject::invoke and some kind of IDL compiler.
Please take a look at attachment where a simple model of kdevelop architecture
is implemented and two plugins (plugin1 and plugin2) are created.
plugin2 uses plugin1iface.h file (ideally created by an "IDL" compiler) and
does not link to plugin1 (thus BC is kept). "kdeviface" keyword will show
which methods of a plugin form the interface of a plugin.
What do you think about exposing interfaces in that way?
PS: If we do that, we could move more interfaces from the core to plugins
(like in Eclipse where you have runtime plugin, resources plugin, etc.).
ICST Department, National University of Shipbuilding, Mykolayiv, Ukraine
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4762 bytes
Desc: not available
More information about the KDevelop-devel