diff PostgreSQL/Plugins/PostgreSQLIndex.h @ 225:94c9908e6aca

removed DatabaseManager member out of class IndexBackend
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 01 Apr 2021 19:18:19 +0200
parents 61c309e06797
children a4918d57435c
line wrap: on
line diff
--- a/PostgreSQL/Plugins/PostgreSQLIndex.h	Thu Apr 01 16:09:59 2021 +0200
+++ b/PostgreSQL/Plugins/PostgreSQLIndex.h	Thu Apr 01 19:18:19 2021 +0200
@@ -76,13 +76,14 @@
       return new Factory(*this);
     }
 
-    virtual int64_t CreateResource(const char* publicId,
+    virtual int64_t CreateResource(DatabaseManager& manager,
+                                   const char* publicId,
                                    OrthancPluginResourceType type)
       ORTHANC_OVERRIDE;
 
-    virtual uint64_t GetTotalCompressedSize() ORTHANC_OVERRIDE;
+    virtual uint64_t GetTotalCompressedSize(DatabaseManager& manager) ORTHANC_OVERRIDE;
 
-    virtual uint64_t GetTotalUncompressedSize() ORTHANC_OVERRIDE;
+    virtual uint64_t GetTotalUncompressedSize(DatabaseManager& manager) ORTHANC_OVERRIDE;
     
     virtual bool HasCreateInstance() const  ORTHANC_OVERRIDE
     {
@@ -91,6 +92,7 @@
 
 #if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1
     virtual void CreateInstance(OrthancPluginCreateInstanceResult& result,
+                                DatabaseManager& manager,
                                 const char* hashPatient,
                                 const char* hashStudy,
                                 const char* hashSeries,
@@ -98,10 +100,12 @@
       ORTHANC_OVERRIDE;
 #endif
 
-    virtual uint64_t GetResourcesCount(OrthancPluginResourceType resourceType) ORTHANC_OVERRIDE;
+    virtual uint64_t GetResourcesCount(DatabaseManager& manager,
+                                       OrthancPluginResourceType resourceType) ORTHANC_OVERRIDE;
 
-    virtual int64_t GetLastChangeIndex() ORTHANC_OVERRIDE;
+    virtual int64_t GetLastChangeIndex(DatabaseManager& manager) ORTHANC_OVERRIDE;
 
-    virtual void TagMostRecentPatient(int64_t patient) ORTHANC_OVERRIDE;
+    virtual void TagMostRecentPatient(DatabaseManager& manager,
+                                      int64_t patient) ORTHANC_OVERRIDE;
   };
 }