diff Framework/Plugins/GlobalProperties.h @ 239:e9ba888f371b

fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Apr 2021 20:30:15 +0200
parents 35598014f140
children 16aac0287485
line wrap: on
line diff
--- a/Framework/Plugins/GlobalProperties.h	Thu Apr 08 19:33:36 2021 +0200
+++ b/Framework/Plugins/GlobalProperties.h	Thu Apr 08 20:30:15 2021 +0200
@@ -27,20 +27,19 @@
 namespace Orthanc
 {
   /**
-   * The enum "GlobalProperty" below must use same values as in the
-   * source code of the Orthanc server:
+   * The enum "GlobalProperty" is a subset of the "GlobalProperty_XXX"
+   * values from the Orthanc server that have a special meaning to the
+   * database plugins:
    * https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Sources/ServerEnumerations.h
+   *
+   * WARNING: The values must be the same between the Orthanc core and
+   * this enum!
    **/
   
   enum GlobalProperty
   {
     GlobalProperty_DatabaseSchemaVersion = 1,   // Unused in the Orthanc core as of Orthanc 0.9.5
-    GlobalProperty_FlushSleep = 2,
-    GlobalProperty_AnonymizationSequence = 3,
-    GlobalProperty_JobsRegistry = 5,
     GlobalProperty_GetTotalSizeIsFast = 6,      // New in Orthanc 1.5.2
-    GlobalProperty_Modalities = 20,             // New in Orthanc 1.5.0
-    GlobalProperty_Peers = 21,                  // New in Orthanc 1.5.0
 
     // Reserved values for internal use by the database plugins
     GlobalProperty_DatabasePatchLevel = 4,
@@ -53,6 +52,6 @@
     GlobalProperty_DatabaseInternal6 = 16,
     GlobalProperty_DatabaseInternal7 = 17,
     GlobalProperty_DatabaseInternal8 = 18,
-    GlobalProperty_DatabaseInternal9 = 19
+    GlobalProperty_DatabaseInternal9 = 19   // Only used in unit tests
   };
 }