diff Core/Enumerations.cpp @ 1146:200fcac0deb4

optimization for access to attachments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Sep 2014 14:04:48 +0200
parents e494ceb8d763
children f5b0207967bc
line wrap: on
line diff
--- a/Core/Enumerations.cpp	Thu Sep 11 13:06:16 2014 +0200
+++ b/Core/Enumerations.cpp	Thu Sep 11 14:04:48 2014 +0200
@@ -549,4 +549,20 @@
     // The encoding was properly detected
     return true;
   }
+
+
+  const char* GetMimeType(FileContentType type)
+  {
+    switch (type)
+    {
+      case FileContentType_Dicom:
+        return "application/dicom";
+
+      case FileContentType_DicomAsJson:
+        return "application/json";
+
+      default:
+        return "application/octet-stream";
+    }
+  }
 }