comparison Platforms/Generic/WebServicePostCommand.h @ 726:4f2416d519b4

moving layers, widgets and loaders to Deprecated namespace
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 May 2019 11:43:25 +0200
parents b70e9be013e4
children e713f1a99861 2d8ab34c8c91
comparison
equal deleted inserted replaced
714:d2c0e347ddc2 726:4f2416d519b4
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "WebServiceCommandBase.h" 24 #include "WebServiceCommandBase.h"
25 25
26 namespace OrthancStone 26 namespace Deprecated
27 { 27 {
28 class WebServicePostCommand : public WebServiceCommandBase 28 class WebServicePostCommand : public WebServiceCommandBase
29 { 29 {
30 protected: 30 protected:
31 std::string body_; 31 std::string body_;
32 32
33 public: 33 public:
34 WebServicePostCommand(MessageBroker& broker, 34 WebServicePostCommand(OrthancStone::MessageBroker& broker,
35 MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback, // takes ownership 35 OrthancStone::MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback, // takes ownership
36 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback, // takes ownership 36 OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback, // takes ownership
37 const Orthanc::WebServiceParameters& parameters, 37 const Orthanc::WebServiceParameters& parameters,
38 const std::string& url, 38 const std::string& url,
39 const IWebService::HttpHeaders& headers, 39 const IWebService::HttpHeaders& headers,
40 unsigned int timeoutInSeconds, 40 unsigned int timeoutInSeconds,
41 const std::string& body, 41 const std::string& body,
42 Orthanc::IDynamicObject* payload /* takes ownership */, 42 Orthanc::IDynamicObject* payload /* takes ownership */,
43 NativeStoneApplicationContext& context); 43 OrthancStone::NativeStoneApplicationContext& context);
44 44
45 virtual void Execute(); 45 virtual void Execute();
46 }; 46 };
47 } 47 }