Mercurial > hg > orthanc-stone
diff Framework/Toolbox/IWebService.h @ 643:f0008c55e5f7
getting rid of MessageType enumeration
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 10 May 2019 17:34:48 +0200 |
parents | a750f11892ec |
children | 4f2416d519b4 |
line wrap: on
line diff
--- a/Framework/Toolbox/IWebService.h Fri May 10 14:54:03 2019 +0200 +++ b/Framework/Toolbox/IWebService.h Fri May 10 17:34:48 2019 +0200 @@ -45,8 +45,10 @@ public: typedef std::map<std::string, std::string> HttpHeaders; - class HttpRequestSuccessMessage : public BaseMessage<MessageType_HttpRequestSuccess> + class HttpRequestSuccessMessage : public IMessage { + ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); + private: const std::string& uri_; const void* answer_; @@ -97,8 +99,10 @@ }; - class HttpRequestErrorMessage : public BaseMessage<MessageType_HttpRequestError> + class HttpRequestErrorMessage : public IMessage { + ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); + private: const std::string& uri_; const Orthanc::IDynamicObject* payload_;