diff Framework/Volumes/StructureSetLoader.cpp @ 251:192e6e349e69 am-2

first usage of new message system (in SDL only)
author am@osimis.io
date Mon, 02 Jul 2018 18:13:46 +0200
parents 5412adf19980
children 9afafb192180
line wrap: on
line diff
--- a/Framework/Volumes/StructureSetLoader.cpp	Mon Jul 02 16:36:17 2018 +0200
+++ b/Framework/Volumes/StructureSetLoader.cpp	Mon Jul 02 18:13:46 2018 +0200
@@ -61,14 +61,14 @@
   };
 
 
-  void StructureSetLoader::NotifyError(const std::string& uri,
+  void StructureSetLoader::OnHttpRequestError(const std::string& uri,
                                        Orthanc::IDynamicObject* payload)
   {
     // TODO
   }
 
   
-  void StructureSetLoader::NotifySuccess(const std::string& uri,
+  void StructureSetLoader::OnHttpRequestSuccess(const std::string& uri,
                                          const void* answer,
                                          size_t answerSize,
                                          Orthanc::IDynamicObject* payload)
@@ -145,7 +145,8 @@
   } 
 
   
-  StructureSetLoader::StructureSetLoader(IWebService& orthanc) :
+  StructureSetLoader::StructureSetLoader(MessageBroker& broker, IWebService& orthanc) :
+    IWebService::ICallback(broker),
     orthanc_(orthanc)
   {
   }