Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKIMIMETYPEPROVIDER_H
18 #define MITKIMIMETYPEPROVIDER_H
19 
20 #include <MitkCoreExports.h>
21 
22 #include <mitkMimeType.h>
23 
24 #include <mitkServiceInterface.h>
25 #include <usServiceReference.h>
26 
27 #include <vector>
28 
29 namespace mitk
30 {
51  {
52  virtual ~IMimeTypeProvider();
53 
54  virtual std::vector<MimeType> GetMimeTypes() const = 0;
55 
56  virtual std::vector<MimeType> GetMimeTypesForFile(const std::string &filePath) const = 0;
57 
58  virtual std::vector<MimeType> GetMimeTypesForCategory(const std::string &category) const = 0;
59 
60  virtual MimeType GetMimeTypeForName(const std::string &name) const = 0;
61 
66  virtual std::vector<std::string> GetCategories() const = 0;
67  };
68 }
69 
70 MITK_DECLARE_SERVICE_INTERFACE(mitk::IMimeTypeProvider, "org.mitk.IMimeTypeProvider")
71 
72 #endif // MITKIMIMETYPEPROVIDER_H
#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:45
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")