Mercurial > hg > orthanc-stone
comparison Applications/Generic/NativeStoneApplicationRunner.cpp @ 792:4fe4b221a31f
deprecating MessagingToolbox
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 28 May 2019 08:49:49 +0200 |
parents | ab236bb5dbc7 |
children | b537002f83a9 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
791:907189734acd | 792:4fe4b221a31f |
---|---|
23 #error this file shall be included only with the ORTHANC_ENABLE_THREADS set to 1 | 23 #error this file shall be included only with the ORTHANC_ENABLE_THREADS set to 1 |
24 #endif | 24 #endif |
25 | 25 |
26 #include "NativeStoneApplicationRunner.h" | 26 #include "NativeStoneApplicationRunner.h" |
27 | 27 |
28 #include "../../Framework/Toolbox/MessagingToolbox.h" | 28 #include "../../Framework/Deprecated/Toolbox/MessagingToolbox.h" |
29 #include "../../Platforms/Generic/OracleWebService.h" | 29 #include "../../Platforms/Generic/OracleWebService.h" |
30 #include "../../Platforms/Generic/OracleDelayedCallExecutor.h" | 30 #include "../../Platforms/Generic/OracleDelayedCallExecutor.h" |
31 #include "NativeStoneApplicationContext.h" | 31 #include "NativeStoneApplicationContext.h" |
32 | 32 |
33 #include <Core/Logging.h> | 33 #include <Core/Logging.h> |
178 LOG(WARNING) << "URL to the Orthanc REST API: " << | 178 LOG(WARNING) << "URL to the Orthanc REST API: " << |
179 webServiceParameters.GetUrl(); | 179 webServiceParameters.GetUrl(); |
180 | 180 |
181 { | 181 { |
182 OrthancPlugins::OrthancHttpConnection orthanc(webServiceParameters); | 182 OrthancPlugins::OrthancHttpConnection orthanc(webServiceParameters); |
183 if (!MessagingToolbox::CheckOrthancVersion(orthanc)) | 183 if (!Deprecated::MessagingToolbox::CheckOrthancVersion(orthanc)) |
184 { | 184 { |
185 LOG(ERROR) << "Your version of Orthanc is incompatible with Stone of " | 185 LOG(ERROR) << "Your version of Orthanc is incompatible with Stone of " |
186 << "Orthanc, please upgrade"; | 186 << "Orthanc, please upgrade"; |
187 throw Orthanc::OrthancException(Orthanc::ErrorCode_NetworkProtocol); | 187 throw Orthanc::OrthancException(Orthanc::ErrorCode_NetworkProtocol); |
188 } | 188 } |