diff Applications/BasicApplicationContext.h @ 81:8677d95753f8 wasm

switching to Oracle in SDL samples
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 May 2017 22:54:09 +0200
parents 1553b67b24e5
children cee8f308a4bc
line wrap: on
line diff
--- a/Applications/BasicApplicationContext.h	Wed May 24 22:33:20 2017 +0200
+++ b/Applications/BasicApplicationContext.h	Wed May 24 22:54:09 2017 +0200
@@ -26,6 +26,7 @@
 #include "../../Framework/Widgets/IWorldSceneInteractor.h"
 #include "../../Framework/Toolbox/DicomStructureSet.h"
 #include "../../Framework/Toolbox/OrthancSynchronousWebService.h"
+#include "../../Platforms/Generic/OracleWebService.h"
 
 #include <list>
 #include <boost/thread.hpp>
@@ -41,7 +42,8 @@
 
     static void UpdateThread(BasicApplicationContext* that);
 
-    OrthancSynchronousWebService&  orthanc_;
+    Oracle              oracle_;
+    OracleWebService    webService_;
     boost::mutex        viewportMutex_;
     WidgetViewport      viewport_;
     Volumes             volumes_;
@@ -72,15 +74,15 @@
     };
 
     
-    BasicApplicationContext(OrthancSynchronousWebService& orthanc);
+    BasicApplicationContext(Orthanc::WebServiceParameters& orthanc);
 
     ~BasicApplicationContext();
 
     IWidget& SetCentralWidget(IWidget* widget);   // Takes ownership
 
-    OrthancSynchronousWebService& GetWebService()
+    IWebService& GetWebService()
     {
-      return orthanc_;
+      return webService_;
     }
     
     VolumeImage& AddSeriesVolume(const std::string& series,