diff Core/Enumerations.cpp @ 2976:cb5d75143da0

Asynchronous generation of ZIP archives and DICOM medias
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Dec 2018 12:23:46 +0100
parents d924f9bb61cc
children db8f360fcb41
line wrap: on
line diff
--- a/Core/Enumerations.cpp	Thu Dec 06 10:10:58 2018 +0100
+++ b/Core/Enumerations.cpp	Thu Dec 06 12:23:46 2018 +0100
@@ -54,6 +54,7 @@
   static const char* const MIME_PLAIN_TEXT = "text/plain";
   static const char* const MIME_WEB_ASSEMBLY = "application/wasm";
   static const char* const MIME_XML_2 = "text/xml";
+  static const char* const MIME_ZIP = "application/zip";
 
   // This function is autogenerated by the script
   // "Resources/GenerateErrorCodes.py"
@@ -1084,6 +1085,9 @@
       case MimeType_Gif:
         return MIME_GIF;
                 
+      case MimeType_Zip:
+        return MIME_ZIP;
+                
       default:
         throw OrthancException(ErrorCode_ParameterOutOfRange);
     }
@@ -1672,6 +1676,10 @@
     {
       return MimeType_Gif;
     }
+    else if (mime == MIME_ZIP)
+    {
+      return MimeType_Zip;
+    }
     else
     {
       throw OrthancException(ErrorCode_ParameterOutOfRange);