diff Sources/Autogenerated/orthanc.pyi @ 212:2db6c1f6417f

documented orthanc.RegisterStorageArea()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 Jul 2024 14:39:25 +0200
parents d7acfccc0d0b
children f8dc8dd2da76
line wrap: on
line diff
--- a/Sources/Autogenerated/orthanc.pyi	Wed Jul 03 14:21:01 2024 +0200
+++ b/Sources/Autogenerated/orthanc.pyi	Wed Jul 03 14:39:25 2024 +0200
@@ -2300,6 +2300,30 @@
     """
     ...
 
+class StorageCreateCallback(typing.Protocol):
+    def __call__(self, uuid: str, content_type: ContentType, data: bytes) -> None:
+        ...
+
+class StorageReadCallback(typing.Protocol):
+    def __call__(self, uuid: str, content_type: ContentType) -> bytes:
+        ...
+
+class StorageRemoveCallback(typing.Protocol):
+    def __call__(self, uuid: str, content_type: ContentType) -> None:
+        ...
+
+# Register a custom storage area
+def RegisterStorageArea(create: StorageCreateCallback, read: StorageReadCallback, remove: StorageRemoveCallback) -> None:
+    """
+    Register a custom storage area.
+
+    Args:
+      create (StorageCreateCallback): The callback function to store a file on the custom storage area.
+      read (StorageReadCallback): The callback function to read a file from the custom storage area.
+      remove (StorageRemoveCallback): The callback function to remove a file from the custom storage area.
+    """
+    ...
+
 class WorklistCallback(typing.Protocol):
     def __call__(self, answers: WorklistAnswers, query: WorklistQuery, issuer_aet: str, called_aet: str) -> None:
         ...