diff OrthancServer/Sources/ServerIndex.h @ 4568:a3e6aa2b07b0 db-changes

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Mar 2021 15:00:58 +0100
parents b812a5f2cef3
children c12d4e5f469b
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h	Mon Mar 08 14:41:29 2021 +0100
+++ b/OrthancServer/Sources/ServerIndex.h	Mon Mar 08 15:00:58 2021 +0100
@@ -153,15 +153,9 @@
                       bool hasPixelDataOffset,
                       uint64_t pixelDataOffset);
 
-    void LogChange(ChangeType changeType,
-                   const std::string& publicId);
-
     StoreStatus AddAttachment(const FileInfo& attachment,
                               const std::string& publicId);
 
-    void DeleteAttachment(const std::string& publicId,
-                          FileContentType type);
-
     void ReconstructInstance(const ParsedDicomFile& dicom);
 
 
@@ -388,6 +382,12 @@
         db_.ClearExportedResources();
       }
 
+      void DeleteAttachment(int64_t id,
+                            FileContentType attachment)
+      {
+        return db_.DeleteAttachment(id, attachment);
+      }
+      
       void DeleteMetadata(int64_t id,
                           MetadataType type)
       {
@@ -595,5 +595,11 @@
 
     void SetGlobalProperty(GlobalProperty property,
                            const std::string& value);
+
+    void DeleteAttachment(const std::string& publicId,
+                          FileContentType type);
+
+    void LogChange(ChangeType changeType,
+                   const std::string& publicId);
   };
 }