Mercurial > hg > orthanc-stone
diff Applications/Samples/SimpleViewerApplicationSingleFile.h @ 1222:21c2b0eee53c broker
deprecating MessageHandler
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 07 Dec 2019 18:18:07 +0100 |
parents | d7887f88710f |
children | 0ca50d275b9a |
line wrap: on
line diff
--- a/Applications/Samples/SimpleViewerApplicationSingleFile.h Fri Dec 06 17:05:57 2019 +0100 +++ b/Applications/Samples/SimpleViewerApplicationSingleFile.h Sat Dec 07 18:18:07 2019 +0100 @@ -330,7 +330,7 @@ LOG(WARNING) << "The study ID is missing, will take the first studyId found in Orthanc"; context->GetOrthancApiClient()->GetJsonAsync( "/studies", - new Callable<SimpleViewerApplication, Deprecated::OrthancApiClient::JsonResponseReadyMessage> + new Deprecated::DeprecatedCallable<SimpleViewerApplication, Deprecated::OrthancApiClient::JsonResponseReadyMessage> (GetSharedObserver(), &SimpleViewerApplication::OnStudyListReceived)); } else @@ -360,7 +360,7 @@ { context_->GetOrthancApiClient()->GetJsonAsync( "/series/" + response["Series"][(int)i].asString(), - new Callable<SimpleViewerApplication, Deprecated::OrthancApiClient::JsonResponseReadyMessage> + new Deprecated::DeprecatedCallable<SimpleViewerApplication, Deprecated::OrthancApiClient::JsonResponseReadyMessage> (GetSharedObserver(), &SimpleViewerApplication::OnSeriesReceived)); } } @@ -411,7 +411,7 @@ { LOG(INFO) << "Selecting study: " << studyId; context_->GetOrthancApiClient()->GetJsonAsync( - "/studies/" + studyId, new Callable<SimpleViewerApplication, Deprecated::OrthancApiClient::JsonResponseReadyMessage> + "/studies/" + studyId, new Deprecated::DeprecatedCallable<SimpleViewerApplication, Deprecated::OrthancApiClient::JsonResponseReadyMessage> (GetSharedObserver(), &SimpleViewerApplication::OnStudyReceived)); }