diff Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3413:f09bfdea3fc3

rename
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Jun 2019 14:02:57 +0200
parents 3575466a3e57
children b9cba6a91780
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Sat Jun 08 20:49:39 2019 +0200
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Tue Jun 11 14:02:57 2019 +0200
@@ -107,9 +107,9 @@
 #endif
 
 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 7)
-#  define HAS_ORTHANC_PLUGIN_STREAMING_HTTP_CLIENT  1
+#  define HAS_ORTHANC_PLUGIN_CHUNKED_HTTP_CLIENT  1
 #else
-#  define HAS_ORTHANC_PLUGIN_STREAMING_HTTP_CLIENT  0
+#  define HAS_ORTHANC_PLUGIN_CHUNKED_HTTP_CLIENT  0
 #endif
 
 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 7)
@@ -822,7 +822,7 @@
       virtual bool ReadNextChunk(std::string& chunk) = 0;
     };
 
-#if HAS_ORTHANC_PLUGIN_STREAMING_HTTP_CLIENT == 1
+#if HAS_ORTHANC_PLUGIN_CHUNKED_HTTP_CLIENT == 1
     class IAnswer : public boost::noncopyable
     {
     public:
@@ -853,10 +853,10 @@
     std::string              certificateKeyFile_;
     std::string              certificateKeyPassword_;
     bool                     pkcs11_;
-    std::string              body_;
-    IRequestBody*            streamingBody_;    
+    std::string              fullBody_;
+    IRequestBody*            chunkedBody_;    
 
-#if HAS_ORTHANC_PLUGIN_STREAMING_HTTP_CLIENT == 1
+#if HAS_ORTHANC_PLUGIN_CHUNKED_HTTP_CLIENT == 1
     void ExecuteWithStream(uint16_t& httpStatus,  // out
                            IAnswer& answer,       // out
                            IRequestBody& body) const;
@@ -925,7 +925,7 @@
 
     void SetBody(IRequestBody& body);
 
-#if HAS_ORTHANC_PLUGIN_STREAMING_HTTP_CLIENT == 1
+#if HAS_ORTHANC_PLUGIN_CHUNKED_HTTP_CLIENT == 1
     void Execute(IAnswer& answer);
 #endif