diff Applications/BasicApplicationContext.h @ 57:d20e25cfcf3a wasm

IWebService
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 May 2017 14:45:21 +0200
parents c2dc924f1a63
children 1553b67b24e5
line wrap: on
line diff
--- a/Applications/BasicApplicationContext.h	Fri Apr 28 21:46:41 2017 +0200
+++ b/Applications/BasicApplicationContext.h	Wed May 03 14:45:21 2017 +0200
@@ -25,6 +25,7 @@
 #include "../../Framework/Viewport/WidgetViewport.h"
 #include "../../Framework/Widgets/IWorldSceneInteractor.h"
 #include "../../Framework/Toolbox/DicomStructureSet.h"
+#include "../../Framework/Toolbox/OrthancWebService.h"
 
 #include <list>
 #include <boost/thread.hpp>
@@ -40,16 +41,15 @@
 
     static void UpdateThread(BasicApplicationContext* that);
 
-    OrthancPlugins::IOrthancConnection&  orthanc_;
-
-    boost::mutex     viewportMutex_;
-    WidgetViewport   viewport_;
-    Volumes          volumes_;
-    Interactors      interactors_;
-    StructureSets    structureSets_;
-    boost::thread    updateThread_;
-    bool             stopped_;
-    unsigned int     updateDelay_;
+    OrthancWebService&  orthanc_;
+    boost::mutex        viewportMutex_;
+    WidgetViewport      viewport_;
+    Volumes             volumes_;
+    Interactors         interactors_;
+    StructureSets       structureSets_;
+    boost::thread       updateThread_;
+    bool                stopped_;
+    unsigned int        updateDelay_;
 
   public:
     class ViewportLocker : public boost::noncopyable
@@ -72,17 +72,17 @@
     };
 
     
-    BasicApplicationContext(OrthancPlugins::IOrthancConnection& orthanc);
+    BasicApplicationContext(OrthancWebService& orthanc);
 
     ~BasicApplicationContext();
 
     IWidget& SetCentralWidget(IWidget* widget);   // Takes ownership
 
-    OrthancPlugins::IOrthancConnection& GetOrthancConnection()
+    OrthancWebService& GetWebService()
     {
       return orthanc_;
     }
-
+    
     VolumeImage& AddSeriesVolume(const std::string& series,
                                  bool isProgressiveDownload,
                                  size_t downloadThreadCount);