comparison Applications/Generic/NativeStoneApplicationRunner.cpp @ 1066:b537002f83a9 broker

removing broker from deprecated classes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 15 Oct 2019 15:39:39 +0200
parents 4fe4b221a31f
children 04a95ee91327
comparison
equal deleted inserted replaced
1065:9d42f89b8c3c 1066:b537002f83a9
195 195
196 LOG(WARNING) << "Creating the widgets of the application"; 196 LOG(WARNING) << "Creating the widgets of the application";
197 197
198 LogStatusBar statusBar; 198 LogStatusBar statusBar;
199 199
200 NativeStoneApplicationContext context(broker_); 200 NativeStoneApplicationContext context;
201 201
202 { 202 {
203 // use multiple threads to execute asynchronous tasks like 203 // use multiple threads to execute asynchronous tasks like
204 // download content 204 // download content
205 Deprecated::Oracle oracle(6); 205 Deprecated::Oracle oracle(6);
206 oracle.Start(); 206 oracle.Start();
207 207
208 { 208 {
209 Deprecated::OracleWebService webService( 209 Deprecated::OracleWebService webService(oracle, webServiceParameters, context);
210 broker_, oracle, webServiceParameters, context);
211 210
212 context.SetWebService(webService); 211 context.SetWebService(webService);
213 context.SetOrthancBaseUrl(webServiceParameters.GetUrl()); 212 context.SetOrthancBaseUrl(webServiceParameters.GetUrl());
214 213
215 Deprecated::OracleDelayedCallExecutor delayedExecutor(broker_, oracle, context); 214 Deprecated::OracleDelayedCallExecutor delayedExecutor(oracle, context);
216 context.SetDelayedCallExecutor(delayedExecutor); 215 context.SetDelayedCallExecutor(delayedExecutor);
217 216
218 application_.Initialize(&context, statusBar, parameters); 217 application_.Initialize(&context, statusBar, parameters);
219 218
220 { 219 {