|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Service interface for querying all registered mime-types. More...
#include <mitkIMimeTypeProvider.h>

Public Member Functions | |
| virtual | ~IMimeTypeProvider () |
| virtual std::vector< MimeType > | GetMimeTypes () const =0 |
| Get all registered mime-types. More... | |
| virtual std::vector< MimeType > | GetMimeTypesForFile (const std::string &filePath) const =0 |
| Get all mime-types that apply to the given file path. More... | |
| virtual std::vector< MimeType > | GetMimeTypesForCategory (const std::string &category) const =0 |
| Get all mime-types in a specific category. More... | |
| virtual MimeType | GetMimeTypeForName (const std::string &name) const =0 |
| Get the mime-type registered under the given name. More... | |
| virtual std::vector< std::string > | GetCategories () const =0 |
| Get a sorted and unique list of all registered mime-type categories. More... | |
Service interface for querying all registered mime-types.
Mime-types are added to the system by registering service objects of type CustomMimeType. The registered mime-types can be queried either through direct look-ups in the service registry or by calling the methods of this service interface.
This service interface also allows inferring the mime-type of a file on the file system. The heuristics for inferring the actual mime-type is implementation specific.
Definition at line 49 of file mitkIMimeTypeProvider.h.
|
virtual |
|
pure virtual |
Get a sorted and unique list of all registered mime-type categories.
Implemented in mitk::MimeTypeProvider.
|
pure virtual |
Get the mime-type registered under the given name.
| [in] | name | The unique mime-type name (e.g. "application/vnd.mitk.image.nrrd"). |
Implemented in mitk::MimeTypeProvider.
|
pure virtual |
Get all registered mime-types.
Implemented in mitk::MimeTypeProvider.
|
pure virtual |
Get all mime-types in a specific category.
| [in] | category | The category string (e.g. "Images", "Surfaces"). |
Implemented in mitk::MimeTypeProvider.
|
pure virtual |
Get all mime-types that apply to the given file path.
| [in] | filePath | The absolute file path to match against. |
Implemented in mitk::MimeTypeProvider.