diff Framework/Plugins/IndexBackend.h @ 237:35598014f140

refactoring to remove GlobalProperties.cpp
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Apr 2021 19:09:04 +0200
parents d1b124d116c1
children e184dcadf163
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.h	Thu Apr 08 12:00:01 2021 +0200
+++ b/Framework/Plugins/IndexBackend.h	Thu Apr 08 19:09:04 2021 +0200
@@ -88,7 +88,7 @@
                                        uint32_t maxResults);
 
   public:
-    IndexBackend(OrthancPluginContext* context);
+    explicit IndexBackend(OrthancPluginContext* context);
 
     virtual OrthancPluginContext* GetContext() ORTHANC_OVERRIDE
     {
@@ -254,7 +254,7 @@
     virtual void SetGlobalProperty(DatabaseManager& manager,
                                    const char* serverIdentifier,
                                    int32_t property,
-                                   const char* value) ORTHANC_OVERRIDE;
+                                   const char* utf8) ORTHANC_OVERRIDE;
 
     virtual void SetMainDicomTag(DatabaseManager& manager,
                                  int64_t id,
@@ -381,6 +381,16 @@
                                const char* hashSeries,
                                const char* hashInstance);
 
+    bool LookupGlobalIntegerProperty(int& target /*out*/,
+                                     DatabaseManager& manager,
+                                     const char* serverIdentifier,
+                                     int32_t property);
+    
+    void SetGlobalIntegerProperty(DatabaseManager& manager,
+                                  const char* serverIdentifier,
+                                  int32_t property,
+                                  int value);
+
     /**
      * "maxDatabaseRetries" is to handle
      * "OrthancPluginErrorCode_DatabaseCannotSerialize" if there is a