33 #ifndef CXREGISTEREDSERVICE_H 34 #define CXREGISTEREDSERVICE_H 36 #include "cxResourcePluginUtilitiesExport.h" 38 #include "boost/shared_ptr.hpp" 39 #include <ctkPluginActivator.h> 59 template <
class SERVICE_TYPE>
60 static RegisteredServicePtr
create(ctkPluginContext* context, QString iid)
64 template <
class SERVICE_TYPE>
65 static RegisteredServicePtr
create(ctkPluginContext* context, SERVICE_TYPE* service, QString iid)
70 explicit RegisteredService(ctkPluginContext* context, QObject* instance, QString iid);
72 template<
class SERVICE_TYPE>
73 SERVICE_TYPE*
get()
const {
return dynamic_cast<SERVICE_TYPE*
>(mService.get()); }
80 #endif // CXREGISTEREDSERVICE_H static RegisteredServicePtr create(ctkPluginContext *context, SERVICE_TYPE *service, QString iid)
boost::shared_ptr< class QObject > QObjectPtr
boost::shared_ptr< class RegisteredService > RegisteredServicePtr
ctkServiceRegistration mReference
static RegisteredServicePtr create(ctkPluginContext *context, QString iid)
Namespace for all CustusX production code.