Mercurial > hg > orthanc-stone
comparison Applications/StoneApplicationContext.h @ 728:8190213e2279 am-dev
Merged default into am-dev
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 21 May 2019 13:25:58 +0200 |
parents | 4f2416d519b4 |
children | c35e98d22764 |
comparison
equal
deleted
inserted
replaced
690:f185cfcb72a0 | 728:8190213e2279 |
---|---|
58 | 58 |
59 class StoneApplicationContext : public boost::noncopyable | 59 class StoneApplicationContext : public boost::noncopyable |
60 { | 60 { |
61 private: | 61 private: |
62 MessageBroker& broker_; | 62 MessageBroker& broker_; |
63 IWebService* webService_; | 63 Deprecated::IWebService* webService_; |
64 IDelayedCallExecutor* delayedCallExecutor_; | 64 Deprecated::IDelayedCallExecutor* delayedCallExecutor_; |
65 std::auto_ptr<OrthancApiClient> orthanc_; | 65 std::auto_ptr<Deprecated::OrthancApiClient> orthanc_; |
66 std::string orthancBaseUrl_; | 66 std::string orthancBaseUrl_; |
67 | 67 |
68 void InitializeOrthanc(); | 68 void InitializeOrthanc(); |
69 | 69 |
70 public: | 70 public: |
87 bool HasWebService() const | 87 bool HasWebService() const |
88 { | 88 { |
89 return webService_ != NULL; | 89 return webService_ != NULL; |
90 } | 90 } |
91 | 91 |
92 IWebService& GetWebService(); | 92 Deprecated::IWebService& GetWebService(); |
93 | 93 |
94 OrthancApiClient& GetOrthancApiClient(); | 94 Deprecated::OrthancApiClient& GetOrthancApiClient(); |
95 | 95 |
96 void SetWebService(IWebService& webService); | 96 void SetWebService(Deprecated::IWebService& webService); |
97 | 97 |
98 void SetOrthancBaseUrl(const std::string& baseUrl); | 98 void SetOrthancBaseUrl(const std::string& baseUrl); |
99 | 99 |
100 void SetDelayedCallExecutor(IDelayedCallExecutor& delayedCallExecutor) | 100 void SetDelayedCallExecutor(Deprecated::IDelayedCallExecutor& delayedCallExecutor) |
101 { | 101 { |
102 delayedCallExecutor_ = &delayedCallExecutor; | 102 delayedCallExecutor_ = &delayedCallExecutor; |
103 } | 103 } |
104 | 104 |
105 IDelayedCallExecutor& GetDelayedCallExecutor() | 105 Deprecated::IDelayedCallExecutor& GetDelayedCallExecutor() |
106 { | 106 { |
107 return *delayedCallExecutor_; | 107 return *delayedCallExecutor_; |
108 } | 108 } |
109 }; | 109 }; |
110 } | 110 } |