Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 // MITKIMIMETYPEPROVIDER_H
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
The IMimeTypeProvider service interface allows to query all registered mime types.
The MimeType class represens a registered mime-type. It is an immutable wrapper for mitk::CustomMimeT...
Definition: mitkMimeType.h:36