diff OrthancServer/Sources/Database/IDatabaseWrapper.h @ 5847:70a879a7b658 find-refactoring

introduction of IDatabaseWrapper::ICompatibilityTransaction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Oct 2024 13:46:29 +0000
parents 82fc95cc168c
children 0f4345cbe558
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/IDatabaseWrapper.h	Tue Oct 29 13:29:43 2024 +0000
+++ b/OrthancServer/Sources/Database/IDatabaseWrapper.h	Tue Oct 29 13:46:29 2024 +0000
@@ -202,11 +202,6 @@
       virtual void GetAllPublicIds(std::list<std::string>& target,
                                    ResourceType resourceType) = 0;
 
-      virtual void GetAllPublicIds(std::list<std::string>& target,
-                                   ResourceType resourceType,
-                                   int64_t since,
-                                   uint32_t limit) = 0;
-
       virtual void GetChanges(std::list<ServerIndexChange>& target /*out*/,
                               bool& done /*out*/,
                               int64_t since,
@@ -422,6 +417,21 @@
     };
 
 
+    // TODO-FIND: Could this interface be removed?
+    class ICompatibilityTransaction : public boost::noncopyable
+    {
+    public:
+      virtual ~ICompatibilityTransaction()
+      {
+      }
+
+      virtual void GetAllPublicIdsCompatibility(std::list<std::string>& target,
+                                                ResourceType resourceType,
+                                                int64_t since,
+                                                uint32_t limit) = 0;
+    };
+
+
     virtual ~IDatabaseWrapper()
     {
     }