Mercurial > hg > orthanc-stone
diff Applications/BasicApplicationContext.cpp @ 57:d20e25cfcf3a wasm
IWebService
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 May 2017 14:45:21 +0200 |
parents | c2dc924f1a63 |
children | ca644004d2ee |
line wrap: on
line diff
--- a/Applications/BasicApplicationContext.cpp Fri Apr 28 21:46:41 2017 +0200 +++ b/Applications/BasicApplicationContext.cpp Wed May 03 14:45:21 2017 +0200 @@ -41,7 +41,7 @@ } - BasicApplicationContext::BasicApplicationContext(OrthancPlugins::IOrthancConnection& orthanc) : + BasicApplicationContext::BasicApplicationContext(OrthancWebService& orthanc) : orthanc_(orthanc), stopped_(true), updateDelay_(100) // By default, 100ms between each refresh of the content @@ -82,7 +82,8 @@ bool isProgressiveDownload, size_t downloadThreadCount) { - std::auto_ptr<VolumeImage> volume(new VolumeImage(new OrthancSeriesLoader(orthanc_, series))); + std::auto_ptr<VolumeImage> volume + (new VolumeImage(new OrthancSeriesLoader(GetWebService().GetConnection(), series))); if (isProgressiveDownload) { @@ -104,7 +105,8 @@ DicomStructureSet& BasicApplicationContext::AddStructureSet(const std::string& instance) { - std::auto_ptr<DicomStructureSet> structureSet(new DicomStructureSet(orthanc_, instance)); + std::auto_ptr<DicomStructureSet> structureSet + (new DicomStructureSet(GetWebService().GetConnection(), instance)); DicomStructureSet& result = *structureSet; structureSets_.push_back(structureSet.release());