Medical Imaging Interaction Toolkit  2026.06.00
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 {
50  {
51  virtual ~IMimeTypeProvider();
52 
57  virtual std::vector<MimeType> GetMimeTypes() const = 0;
58 
64  virtual std::vector<MimeType> GetMimeTypesForFile(const std::string &filePath) const = 0;
65 
71  virtual std::vector<MimeType> GetMimeTypesForCategory(const std::string &category) const = 0;
72 
78  virtual MimeType GetMimeTypeForName(const std::string &name) const = 0;
79 
84  virtual std::vector<std::string> GetCategories() const = 0;
85  };
86 }
87 
88 MITK_DECLARE_SERVICE_INTERFACE(mitk::IMimeTypeProvider, "org.mitk.IMimeTypeProvider")
89 
90 #endif
#define MITKCORE_EXPORT
Immutable, value-type wrapper for a registered mime-type.
Definition: mitkMimeType.h:45
Provides the MITK_DECLARE_SERVICE_INTERFACE macro for registering C++ interfaces with both the CppMic...
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Declare a C++ interface for use with CppMicroServices (Qt not available).
Find image slices visible on a given plane.
Service interface for querying all registered mime-types.
virtual MimeType GetMimeTypeForName(const std::string &name) const =0
Get the mime-type registered under the given name.
virtual std::vector< std::string > GetCategories() const =0
Get a sorted and unique list of all registered mime-type categories.
virtual std::vector< MimeType > GetMimeTypesForCategory(const std::string &category) const =0
Get all mime-types in a specific category.
virtual std::vector< MimeType > GetMimeTypes() const =0
Get all registered mime-types.
virtual std::vector< MimeType > GetMimeTypesForFile(const std::string &filePath) const =0
Get all mime-types that apply to the given file path.