diff Framework/Toolbox/OrthancApiClient.h @ 417:aee3d7941c9b

preparing to load images using DICOMweb
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 15 Nov 2018 17:28:15 +0100
parents 939f626eb6d7
children 4fe42ae3653a b70e9be013e4
line wrap: on
line diff
--- a/Framework/Toolbox/OrthancApiClient.h	Tue Nov 13 10:36:53 2018 +0100
+++ b/Framework/Toolbox/OrthancApiClient.h	Thu Nov 15 17:28:15 2018 +0100
@@ -150,13 +150,14 @@
   private:
     class WebServicePayload;
     
-
   protected:
-    IWebService&                      orthanc_;
+    IWebService&  web_;
+    std::string   baseUrl_;
 
   public:
     OrthancApiClient(MessageBroker& broker,
-                     IWebService& orthanc);
+                     IWebService& web,
+                     const std::string& baseUrl);
     
     virtual ~OrthancApiClient()
     {
@@ -177,7 +178,7 @@
 
     // schedule a GET request expecting a binary response.
     void GetBinaryAsync(const std::string& uri,
-                        const IWebService::Headers& headers,
+                        const IWebService::HttpHeaders& headers,
                         MessageHandler<BinaryResponseReadyMessage>* successCallback,
                         MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL,
                         Orthanc::IDynamicObject* payload = NULL   /* takes ownership */);