reusability of GenericManager

Andreas Pakulat apaku at gmx.de
Tue Oct 19 06:56:15 UTC 2010


On 19.10.10 02:16:44, Milian Wolff wrote:
> So the real question of this mail is probably: How can I export something from 
> a plugin in a way that I link against it? Andreas, could you maybe help me 
> with the CMake magic required?

You don't. What you do is move the common functionality into a separate
class and use that from both generic manager and qmake manager. This
could either be an abstract base class implementing the
projectfilemanager interface and providing pure virtual hooks to create
items and/or set them up. Or just make it a has-a relationship in the
plugins and only provide methods that implement the logic you need and
that call back into your manager class (via signals or so).

> PS: I personally think this would involve creating and installing a new shared 
> library which would be linked into the genericmanager plugin as well. Correct?

Well, you could instead just put it into the project library which
already handles other project-related stuff :)

Andreas

-- 
You will gain money by an illegal action.




More information about the KDevelop-devel mailing list