Hi, thinking about your "bombs" is always fun ;-)
I would suggest to create an intermediate plug-in, instead of a module. Creating your own plug-in base class, based on QmitkFunctionality is perfectly okay. Depending on the common functionality, I would may be think about providing the functionality as a "separate object", which could be reused via aggregation (instead of inheritance) or be provided as a service through the CTK service framework. IMHO, inheritance does not lead to improved extensibility or flexibility (if this is what you want). Best, Sascha On 07/22/2011 04:18 PM, Clarkson, Matt wrote: > Hi there, > > Sorry for bombarding the mailing list with questions. > :-) > > I have two Plugins, both derived from QmitkFunctionality, using the recent > external project type template. > > I also have two Modules. > > I wanted to refactor some common functionality out of the plugins, and into a > class that derives from QmitkFunctionality. I thought I could put this in my > Module, and call it from both plugins. > > So the inheritance hierarchy would be: > > QmitkFunctionality -> QmitkMyBaseClass -> PluginA > QmitkFunctionality -> QmitkMyBaseClass -> PluginB > > However, when class QmitkMyBaseClass is in my Module, it can't see > QmitkFunctionality.h because QmitkFunctionality is packaged within a Bundle > (org_mitk_gui_qt_common), not a Module. > > So, how should I do this? (or should I do this?) > > Thanks > > Matt > > > ------------------------------------------------------------------------------ > 10 Tips for Better Web Security > Learn 10 ways to better secure your business today. Topics covered include: > Web security, SSL, hacker attacks& Denial of Service (DoS), private keys, > security Microsoft Exchange, secure Instant Messaging, and much more. > http://www.accelacomm.com/jaw/sfnl/114/51426210/ > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
