diff Framework/Plugins/GlobalProperties.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 73cc85f3d9c1
children e9ba888f371b
line wrap: on
line diff
--- a/Framework/Plugins/GlobalProperties.h	Thu Apr 08 12:00:01 2021 +0200
+++ b/Framework/Plugins/GlobalProperties.h	Thu Apr 08 19:09:04 2021 +0200
@@ -21,8 +21,6 @@
 
 #pragma once
 
-#include "../Common/DatabaseManager.h"
-
 #define MISSING_SERVER_IDENTIFIER ""
 
 
@@ -58,41 +56,3 @@
     GlobalProperty_DatabaseInternal9 = 19
   };
 }
-
-
-namespace OrthancDatabases
-{
-  bool LookupGlobalProperty(std::string& target /* out */,
-                            IDatabase& db,
-                            ITransaction& transaction,
-                            const std::string& serverIdentifier,
-                            Orthanc::GlobalProperty property);
-
-  bool LookupGlobalProperty(std::string& target /* out */,
-                            DatabaseManager& manager,
-                            const std::string& serverIdentifier,
-                            Orthanc::GlobalProperty property);
-
-  void SetGlobalProperty(IDatabase& db,
-                         ITransaction& transaction,
-                         const std::string& serverIdentifier,
-                         Orthanc::GlobalProperty property,
-                         const std::string& utf8);
-
-  void SetGlobalProperty(DatabaseManager& manager,
-                         const std::string& serverIdentifier,
-                         Orthanc::GlobalProperty property,
-                         const std::string& utf8);
-
-  bool LookupGlobalIntegerProperty(int& target,
-                                   IDatabase& db,
-                                   ITransaction& transaction,
-                                   const std::string& serverIdentifier,
-                                   Orthanc::GlobalProperty property);
-
-  void SetGlobalIntegerProperty(IDatabase& db,
-                                ITransaction& transaction,
-                                const std::string& serverIdentifier,
-                                Orthanc::GlobalProperty property,
-                                int value);
-}