comparison Plugin/Plugin.cpp @ 206:d1ed9efdea6c

rename ORTHANC_WEBVIEWER_VERSION as ORTHANC_PLUGIN_VERSION
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 20 Jul 2018 14:25:04 +0200
parents 7edc2c82996c
children 2f27287c047c
comparison
equal deleted inserted replaced
205:7edc2c82996c 206:d1ed9efdea6c
612 OrthancPluginLogWarning(context_, s.c_str()); 612 OrthancPluginLogWarning(context_, s.c_str());
613 clear = true; 613 clear = true;
614 } 614 }
615 615
616 if (!scheduler.LookupProperty(webViewerVersion, CacheProperty_WebViewerVersion) || 616 if (!scheduler.LookupProperty(webViewerVersion, CacheProperty_WebViewerVersion) ||
617 webViewerVersion != std::string(ORTHANC_WEBVIEWER_VERSION)) 617 webViewerVersion != std::string(ORTHANC_PLUGIN_VERSION))
618 { 618 {
619 std::string s = ("The version of the Web viewer plugin has changed from \"" + webViewerVersion + "\" to \"" + 619 std::string s = ("The version of the Web viewer plugin has changed from \"" + webViewerVersion + "\" to \"" +
620 std::string(ORTHANC_WEBVIEWER_VERSION) + "\": The cache of the Web viewer will be cleared"); 620 std::string(ORTHANC_PLUGIN_VERSION) + "\": The cache of the Web viewer will be cleared");
621 OrthancPluginLogWarning(context_, s.c_str()); 621 OrthancPluginLogWarning(context_, s.c_str());
622 clear = true; 622 clear = true;
623 } 623 }
624 624
625 625
627 if (clear) 627 if (clear)
628 { 628 {
629 OrthancPluginLogWarning(context_, "Clearing the cache of the Web viewer"); 629 OrthancPluginLogWarning(context_, "Clearing the cache of the Web viewer");
630 scheduler.Clear(); 630 scheduler.Clear();
631 scheduler.SetProperty(CacheProperty_OrthancVersion, context_->orthancVersion); 631 scheduler.SetProperty(CacheProperty_OrthancVersion, context_->orthancVersion);
632 scheduler.SetProperty(CacheProperty_WebViewerVersion, ORTHANC_WEBVIEWER_VERSION); 632 scheduler.SetProperty(CacheProperty_WebViewerVersion, ORTHANC_PLUGIN_VERSION);
633 } 633 }
634 else 634 else
635 { 635 {
636 OrthancPluginLogInfo(context_, "No change in the versions, no need to clear the cache of the Web viewer"); 636 OrthancPluginLogInfo(context_, "No change in the versions, no need to clear the cache of the Web viewer");
637 } 637 }
727 } 727 }
728 728
729 729
730 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() 730 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion()
731 { 731 {
732 return ORTHANC_WEBVIEWER_VERSION; 732 return ORTHANC_PLUGIN_VERSION;
733 } 733 }
734 } 734 }