Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3392:ad434967a68c
renames
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Jun 2019 10:35:16 +0200 |
parents | 18cd4951fccc |
children | 2cd0369a156f |
comparison
equal
deleted
inserted
replaced
3391:df0f1821b3de | 3392:ad434967a68c |
---|---|
788 #if HAS_ORTHANC_PLUGIN_HTTP_CLIENT == 1 | 788 #if HAS_ORTHANC_PLUGIN_HTTP_CLIENT == 1 |
789 class HttpClient : public boost::noncopyable | 789 class HttpClient : public boost::noncopyable |
790 { | 790 { |
791 public: | 791 public: |
792 #if HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY == 1 | 792 #if HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY == 1 |
793 class IChunkedBody : public boost::noncopyable | 793 class IRequestChunkedBody : public boost::noncopyable |
794 { | 794 { |
795 public: | 795 public: |
796 virtual ~IChunkedBody() | 796 virtual ~IRequestChunkedBody() |
797 { | 797 { |
798 } | 798 } |
799 | 799 |
800 virtual bool ReadNextChunk(std::string& chunk) = 0; | 800 virtual bool ReadNextChunk(std::string& chunk) = 0; |
801 }; | 801 }; |
819 std::string certificateKeyPassword_; | 819 std::string certificateKeyPassword_; |
820 bool pkcs11_; | 820 bool pkcs11_; |
821 std::string body_; | 821 std::string body_; |
822 | 822 |
823 #if HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY == 1 | 823 #if HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY == 1 |
824 class ChunkedBody; | 824 class RequestChunkedBody; |
825 IChunkedBody* chunkedBody_; | 825 IRequestChunkedBody* chunkedBody_; |
826 #else | 826 #else |
827 // Dummy variable for backward compatibility | 827 // Dummy variable for backward compatibility |
828 void* chunkedBody_; | 828 void* chunkedBody_; |
829 #endif | 829 #endif |
830 | 830 |
893 void SwapBody(std::string& body); | 893 void SwapBody(std::string& body); |
894 | 894 |
895 void SetBody(const std::string& body); | 895 void SetBody(const std::string& body); |
896 | 896 |
897 #if HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY == 1 | 897 #if HAS_ORTHANC_PLUGIN_HTTP_CHUNKED_BODY == 1 |
898 void SetBody(IChunkedBody& body); | 898 void SetBody(IRequestChunkedBody& body); |
899 #endif | 899 #endif |
900 | 900 |
901 void Execute(); | 901 void Execute(); |
902 }; | 902 }; |
903 #endif | 903 #endif |