Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkIMimeTypeProvider.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkIMimeTypeProvider_h
14 #define mitkIMimeTypeProvider_h
15 
16 #include <MitkCoreExports.h>
17 
18 #include <mitkMimeType.h>
19 
20 #include <mitkServiceInterface.h>
21 #include <usServiceReference.h>
22 
23 #include <vector>
24 
25 namespace mitk
26 {
47  {
48  virtual ~IMimeTypeProvider();
49 
50  virtual std::vector<MimeType> GetMimeTypes() const = 0;
51 
52  virtual std::vector<MimeType> GetMimeTypesForFile(const std::string &filePath) const = 0;
53 
54  virtual std::vector<MimeType> GetMimeTypesForCategory(const std::string &category) const = 0;
55 
56  virtual MimeType GetMimeTypeForName(const std::string &name) const = 0;
57 
62  virtual std::vector<std::string> GetCategories() const = 0;
63  };
64 }
65 
66 MITK_DECLARE_SERVICE_INTERFACE(mitk::IMimeTypeProvider, "org.mitk.IMimeTypeProvider")
67 
68 #endif
#define MITKCORE_EXPORT
The MimeType class represents a registered mime-type. It is an immutable wrapper for mitk::CustomMime...
Definition: mitkMimeType.h:37
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Find image slices visible on a given plane.
The IMimeTypeProvider service interface allows to query all registered mime types.
virtual MimeType GetMimeTypeForName(const std::string &name) const =0
virtual std::vector< std::string > GetCategories() const =0
Get a sorted and unique list of mime-type categories.
virtual std::vector< MimeType > GetMimeTypesForCategory(const std::string &category) const =0
virtual std::vector< MimeType > GetMimeTypes() const =0
virtual std::vector< MimeType > GetMimeTypesForFile(const std::string &filePath) const =0