diff OrthancServer/Sources/ServerEnumerations.h @ 5061:e95fadefeb72

new MaximumStorageMode configuration
author Alain Mazy <am@osimis.io>
date Tue, 09 Aug 2022 17:57:38 +0200
parents d4e5ca0c9307
children 9770d537880d 0ea402b4d901
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerEnumerations.h	Mon Aug 08 12:42:48 2022 +0200
+++ b/OrthancServer/Sources/ServerEnumerations.h	Tue Aug 09 17:57:38 2022 +0200
@@ -49,7 +49,14 @@
     StoreStatus_Success,
     StoreStatus_AlreadyStored,
     StoreStatus_Failure,
-    StoreStatus_FilteredOut     // Removed by NewInstanceFilter or ReceivedInstanceCallback
+    StoreStatus_FilteredOut,     // Removed by NewInstanceFilter or ReceivedInstanceCallback
+    StoreStatus_StorageFull      // new in Orthanc 1.11.2
+  };
+
+  enum MaxStorageMode
+  {
+    MaxStorageMode_Recycle,
+    MaxStorageMode_Reject
   };
 
   enum DicomTagType
@@ -217,6 +224,8 @@
 
   FindStorageAccessMode StringToFindStorageAccessMode(const std::string& str);
 
+  MaxStorageMode StringToMaxStorageMode(const std::string& str);
+  
   bool IsStorageAccessAllowedForAnswers(FindStorageAccessMode mode);
 
   bool IsStorageAccessAllowedForLookup(FindStorageAccessMode mode);