12 #ifndef CXREGISTEREDSERVICE_H
13 #define CXREGISTEREDSERVICE_H
15 #include "cxResourcePluginUtilitiesExport.h"
17 #include "boost/shared_ptr.hpp"
18 #include <ctkPluginActivator.h>
38 template <
class SERVICE_TYPE>
43 template <
class SERVICE_TYPE>
49 explicit RegisteredService(ctkPluginContext* context, QObject* instance, QString iid);
51 template<
class SERVICE_TYPE>
52 SERVICE_TYPE*
get()
const {
return dynamic_cast<SERVICE_TYPE*
>(mService.get()); }
59 #endif // CXREGISTEREDSERVICE_H