|
@@ -51,11 +51,9 @@
|
|
|
* not made available to other plugins in the plugin environment. The Framework
|
|
|
* may concurrently call a <code>ctkServiceFactory</code>.
|
|
|
*
|
|
|
- * @tparam S Type of Service
|
|
|
* @see ctkPluginContext#getService
|
|
|
* @threadsafe
|
|
|
*/
|
|
|
-template<class S>
|
|
|
class ctkServiceFactory
|
|
|
{
|
|
|
|
|
@@ -90,7 +88,7 @@ public:
|
|
|
* the classes named when the service was registered.
|
|
|
* @see ctkPluginContext#getService
|
|
|
*/
|
|
|
- virtual S getService(QSharedPointer<ctkPlugin> plugin, const ctkServiceRegistration& registration) = 0;
|
|
|
+ virtual QObject* getService(QSharedPointer<ctkPlugin> plugin, ctkServiceRegistration registration) = 0;
|
|
|
|
|
|
/**
|
|
|
* Releases a service object.
|
|
@@ -106,8 +104,8 @@ public:
|
|
|
* <code>ctkServiceFactory::getService</code> method.
|
|
|
* @see ctkPluginContext#ungetService
|
|
|
*/
|
|
|
- virtual void ungetService(QSharedPointer<ctkPlugin> plugin, const ctkServiceRegistration registration,
|
|
|
- S service) = 0;
|
|
|
+ virtual void ungetService(QSharedPointer<ctkPlugin> plugin, ctkServiceRegistration registration,
|
|
|
+ QObject* service) = 0;
|
|
|
};
|
|
|
|
|
|
Q_DECLARE_INTERFACE(ctkServiceFactory, "org.commontk.services.ctkServiceFactory")
|