Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
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
{
46
struct
MITKCORE_EXPORT
IMimeTypeProvider
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
mitkServiceInterface.h
mitkMimeType.h
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
MitkCoreExports.h
usServiceReference.h
mitk::IMimeTypeProvider
The IMimeTypeProvider service interface allows to query all registered mime types.
Definition:
mitkIMimeTypeProvider.h:46
MITK_DECLARE_SERVICE_INTERFACE
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Definition:
mitkServiceInterface.h:26
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::MimeType
The MimeType class represents a registered mime-type. It is an immutable wrapper for mitk::CustomMime...
Definition:
mitkMimeType.h:36
src
MITK
Modules
Core
include
mitkIMimeTypeProvider.h
Generated on Mon Dec 23 2024 02:13:19 for Medical Imaging Interaction Toolkit by
1.8.17