diff OrthancServer/Sources/Database/IDatabaseWrapper.h @ 5553:28cc06e4859a large-queries

Added ExtendedApiV1: /changes
author Alain Mazy <am@orthanc.team>
date Thu, 11 Apr 2024 19:02:20 +0200
parents 2c5eb1ef26a0
children 3765085693e5
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/IDatabaseWrapper.h	Fri Mar 29 23:23:01 2024 +0100
+++ b/OrthancServer/Sources/Database/IDatabaseWrapper.h	Thu Apr 11 19:02:20 2024 +0200
@@ -51,6 +51,7 @@
       bool hasAtomicIncrementGlobalProperty_;
       bool hasUpdateAndGetStatistics_;
       bool hasMeasureLatency_;
+      bool hasExtendedApiV1_;
 
     public:
       Capabilities() :
@@ -59,7 +60,8 @@
         hasLabelsSupport_(false),
         hasAtomicIncrementGlobalProperty_(false),
         hasUpdateAndGetStatistics_(false),
-        hasMeasureLatency_(false)
+        hasMeasureLatency_(false),
+        hasExtendedApiV1_(false)
       {
       }
 
@@ -93,6 +95,16 @@
         return hasLabelsSupport_;
       }
 
+      void SetHasExtendedApiV1(bool value)
+      {
+        hasExtendedApiV1_ = value;
+      }
+
+      bool HasExtendedApiV1() const
+      {
+        return hasExtendedApiV1_;
+      }
+
       void SetAtomicIncrementGlobalProperty(bool value)
       {
         hasAtomicIncrementGlobalProperty_ = value;
@@ -344,12 +356,22 @@
                                               int64_t increment,
                                               bool shared) = 0;
 
+      // New in Orthanc 1.12.3
       virtual void UpdateAndGetStatistics(int64_t& patientsCount,
                                           int64_t& studiesCount,
                                           int64_t& seriesCount,
                                           int64_t& instancesCount,
                                           int64_t& compressedSize,
                                           int64_t& uncompressedSize) = 0;
+
+      // New in Orthanc 1.13.0
+      virtual void GetChanges2(std::list<ServerIndexChange>& target /*out*/,
+                               bool& done /*out*/,
+                               int64_t since,
+                               int64_t to,
+                               uint32_t limit,
+                               ChangeType filterType) = 0;
+
     };