Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPlugins.h @ 1995:f0acfa753973
New callback to handle non-worklists C-Find requests: OrthancPluginRegisterCFindCallback()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 May 2016 17:45:56 +0200 |
parents | ce90d109bb64 |
children | 364cc624eb65 |
comparison
equal
deleted
inserted
replaced
1994:4d099fee5eca | 1995:f0acfa753973 |
---|---|
51 #include "../../Core/HttpServer/IHttpHandler.h" | 51 #include "../../Core/HttpServer/IHttpHandler.h" |
52 #include "../../Core/HttpServer/IIncomingHttpRequestFilter.h" | 52 #include "../../Core/HttpServer/IIncomingHttpRequestFilter.h" |
53 #include "../../OrthancServer/IServerListener.h" | 53 #include "../../OrthancServer/IServerListener.h" |
54 #include "../../OrthancServer/IDicomImageDecoder.h" | 54 #include "../../OrthancServer/IDicomImageDecoder.h" |
55 #include "../../OrthancServer/DicomProtocol/IWorklistRequestHandlerFactory.h" | 55 #include "../../OrthancServer/DicomProtocol/IWorklistRequestHandlerFactory.h" |
56 #include "../../OrthancServer/DicomProtocol/IFindRequestHandlerFactory.h" | |
56 #include "OrthancPluginDatabase.h" | 57 #include "OrthancPluginDatabase.h" |
57 #include "PluginsManager.h" | 58 #include "PluginsManager.h" |
58 | 59 |
59 #include <list> | 60 #include <list> |
60 #include <boost/shared_ptr.hpp> | 61 #include <boost/shared_ptr.hpp> |
67 public IHttpHandler, | 68 public IHttpHandler, |
68 public IPluginServiceProvider, | 69 public IPluginServiceProvider, |
69 public IServerListener, | 70 public IServerListener, |
70 public IWorklistRequestHandlerFactory, | 71 public IWorklistRequestHandlerFactory, |
71 public IDicomImageDecoder, | 72 public IDicomImageDecoder, |
72 public IIncomingHttpRequestFilter | 73 public IIncomingHttpRequestFilter, |
74 public IFindRequestHandlerFactory | |
73 { | 75 { |
74 private: | 76 private: |
75 struct PImpl; | 77 struct PImpl; |
76 boost::shared_ptr<PImpl> pimpl_; | 78 boost::shared_ptr<PImpl> pimpl_; |
77 | 79 |
78 class WorklistHandler; | 80 class WorklistHandler; |
81 class FindHandler; | |
79 | 82 |
80 void CheckContextAvailable(); | 83 void CheckContextAvailable(); |
81 | 84 |
82 void RegisterRestCallback(const void* parameters, | 85 void RegisterRestCallback(const void* parameters, |
83 bool lock); | 86 bool lock); |
85 void RegisterOnStoredInstanceCallback(const void* parameters); | 88 void RegisterOnStoredInstanceCallback(const void* parameters); |
86 | 89 |
87 void RegisterOnChangeCallback(const void* parameters); | 90 void RegisterOnChangeCallback(const void* parameters); |
88 | 91 |
89 void RegisterWorklistCallback(const void* parameters); | 92 void RegisterWorklistCallback(const void* parameters); |
93 | |
94 void RegisterFindCallback(const void* parameters); | |
90 | 95 |
91 void RegisterDecodeImageCallback(const void* parameters); | 96 void RegisterDecodeImageCallback(const void* parameters); |
92 | 97 |
93 void RegisterIncomingHttpRequestFilter(const void* parameters); | 98 void RegisterIncomingHttpRequestFilter(const void* parameters); |
94 | 99 |
249 virtual bool IsAllowed(HttpMethod method, | 254 virtual bool IsAllowed(HttpMethod method, |
250 const char* uri, | 255 const char* uri, |
251 const char* ip, | 256 const char* ip, |
252 const char* username, | 257 const char* username, |
253 const IHttpHandler::Arguments& httpHeaders) const; | 258 const IHttpHandler::Arguments& httpHeaders) const; |
259 | |
260 bool HasFindHandler(); | |
261 | |
262 virtual IFindRequestHandler* ConstructFindRequestHandler(); | |
254 }; | 263 }; |
255 } | 264 } |
256 | 265 |
257 #endif | 266 #endif |