diff Plugins/Engine/PluginsHttpHandler.h @ 899:bb0a51561016 plugins

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 18 Jun 2014 13:29:09 +0200
parents bafc9d592632
children 7d88f3f4a3b3
line wrap: on
line diff
--- a/Plugins/Engine/PluginsHttpHandler.h	Wed Jun 18 09:18:28 2014 +0200
+++ b/Plugins/Engine/PluginsHttpHandler.h	Wed Jun 18 13:29:09 2014 +0200
@@ -40,7 +40,7 @@
 
 namespace Orthanc
 {
-  class PluginsHttpHandler : public HttpHandler
+  class PluginsHttpHandler : public HttpHandler, public IPluginServiceProvider
   {
   private:
     struct PImpl;
@@ -48,7 +48,7 @@
     boost::shared_ptr<PImpl> pimpl_;
 
   public:
-    PluginsHttpHandler(const PluginsManager& manager);
+    PluginsHttpHandler();
 
     virtual ~PluginsHttpHandler();
 
@@ -60,5 +60,8 @@
                         const Arguments& headers,
                         const Arguments& getArguments,
                         const std::string& postData);
+
+    virtual bool InvokeService(OrthancPluginService service,
+                               const void* parameters);
   };
 }