comparison Framework/Deprecated/Toolbox/IWebService.h @ 1060:e146743f6cdc broker

removing file MessageBroker.h
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 11 Oct 2019 17:20:41 +0200
parents f6be9412e42a
children 21c2b0eee53c
comparison
equal deleted inserted replaced
1059:e713f1a99861 1060:e146743f6cdc
38 // in a WASM environment, the WebService is asynchronous, the IWebservice 38 // in a WASM environment, the WebService is asynchronous, the IWebservice
39 // also implements an asynchronous interface: you must schedule a request 39 // also implements an asynchronous interface: you must schedule a request
40 // and you'll be notified when the response/error is ready. 40 // and you'll be notified when the response/error is ready.
41 class IWebService : public boost::noncopyable 41 class IWebService : public boost::noncopyable
42 { 42 {
43 protected:
44 OrthancStone::MessageBroker& broker_;
45
46 public: 43 public:
47 typedef std::map<std::string, std::string> HttpHeaders; 44 typedef std::map<std::string, std::string> HttpHeaders;
48 45
49 class HttpRequestSuccessMessage : public OrthancStone::IMessage 46 class HttpRequestSuccessMessage : public OrthancStone::IMessage
50 { 47 {
136 133
137 const Orthanc::IDynamicObject& GetPayload() const; 134 const Orthanc::IDynamicObject& GetPayload() const;
138 }; 135 };
139 136
140 137
141 IWebService(OrthancStone::MessageBroker& broker) :
142 broker_(broker)
143 {
144 }
145
146
147 virtual ~IWebService() 138 virtual ~IWebService()
148 { 139 {
149 } 140 }
150 141
151 virtual void EnableCache(bool enable) = 0; 142 virtual void EnableCache(bool enable) = 0;