comparison Framework/SmartLoader.h @ 317:b66d13708f40 am-2

cleanup
author am@osimis.io
date Fri, 05 Oct 2018 11:57:36 +0200
parents b4abaeb783b1
children 3a4ca166fafa
comparison
equal deleted inserted replaced
315:aad37d0b6407 317:b66d13708f40
22 #pragma once 22 #pragma once
23 #include <map> 23 #include <map>
24 24
25 #include "Layers/ILayerSource.h" 25 #include "Layers/ILayerSource.h"
26 #include "Messages/IObservable.h" 26 #include "Messages/IObservable.h"
27 #include "../Platforms/Generic/OracleWebService.h"
28 #include "Toolbox/OrthancApiClient.h" 27 #include "Toolbox/OrthancApiClient.h"
29 28
30 namespace OrthancStone 29 namespace OrthancStone
31 { 30 {
32 class SmartLoader : public IObservable, IObserver 31 class SmartLoader : public IObservable, IObserver
33 { 32 {
34 SliceImageQuality imageQuality_; 33 SliceImageQuality imageQuality_;
35 IWebService& webService_; 34 OrthancApiClient& orthancApiClient_;
36 OrthancApiClient orthancApiClient_;
37 35
38 int studyListRequest_; 36 int studyListRequest_;
39 37
40 public: 38 public:
41 SmartLoader(MessageBroker& broker, IWebService& webService); // TODO: add maxPreloadStorageSizeInBytes 39 SmartLoader(MessageBroker& broker, OrthancApiClient& orthancApiClient); // TODO: add maxPreloadStorageSizeInBytes
42 40
43 void PreloadStudy(const std::string studyId); 41 void PreloadStudy(const std::string studyId);
44 void PreloadSeries(const std::string seriesId); 42 void PreloadSeries(const std::string seriesId);
45 void LoadStudyList(); 43 void LoadStudyList();
46 44