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>
64 template <
class SERVICE_TYPE>
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)