Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.h Tue May 17 15:45:49 2016 +0200 +++ b/Plugins/Engine/OrthancPlugins.h Tue May 24 17:45:56 2016 +0200 @@ -53,6 +53,7 @@ #include "../../OrthancServer/IServerListener.h" #include "../../OrthancServer/IDicomImageDecoder.h" #include "../../OrthancServer/DicomProtocol/IWorklistRequestHandlerFactory.h" +#include "../../OrthancServer/DicomProtocol/IFindRequestHandlerFactory.h" #include "OrthancPluginDatabase.h" #include "PluginsManager.h" @@ -69,13 +70,15 @@ public IServerListener, public IWorklistRequestHandlerFactory, public IDicomImageDecoder, - public IIncomingHttpRequestFilter + public IIncomingHttpRequestFilter, + public IFindRequestHandlerFactory { private: struct PImpl; boost::shared_ptr<PImpl> pimpl_; class WorklistHandler; + class FindHandler; void CheckContextAvailable(); @@ -88,6 +91,8 @@ void RegisterWorklistCallback(const void* parameters); + void RegisterFindCallback(const void* parameters); + void RegisterDecodeImageCallback(const void* parameters); void RegisterIncomingHttpRequestFilter(const void* parameters); @@ -251,6 +256,10 @@ const char* ip, const char* username, const IHttpHandler::Arguments& httpHeaders) const; + + bool HasFindHandler(); + + virtual IFindRequestHandler* ConstructFindRequestHandler(); }; }