Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitk::IMimeTypeProvider Struct Referenceabstract

The IMimeTypeProvider service interface allows to query all registered mime types. More...

#include <mitkIMimeTypeProvider.h>

Inheritance diagram for mitk::IMimeTypeProvider:

Public Member Functions

virtual ~IMimeTypeProvider ()
 
virtual std::vector< MimeTypeGetMimeTypes () const =0
 
virtual std::vector< MimeTypeGetMimeTypesForFile (const std::string &filePath) const =0
 
virtual std::vector< MimeTypeGetMimeTypesForCategory (const std::string &category) const =0
 
virtual MimeType GetMimeTypeForName (const std::string &name) const =0
 
virtual std::vector< std::string > GetCategories () const =0
 Get a sorted and unique list of mime-type categories. More...
 

Detailed Description

The IMimeTypeProvider service interface allows to query all registered mime types.

Mime types are added to the system by registering a service object of type CustomMimeType and the registered mime types can be queried bei either using direct look-ups in the service registry or calling the methods of this service interface.

This service interface also allows to infer the mime type of a file on the file system. The heuristics for inferring the actual mime type is implementation specific.

Note
This is a core service
See also
CustomMimeType
CoreServices::GetMimeTypeProvider()

Definition at line 46 of file mitkIMimeTypeProvider.h.

Constructor & Destructor Documentation

◆ ~IMimeTypeProvider()

virtual mitk::IMimeTypeProvider::~IMimeTypeProvider ( )
virtual

Member Function Documentation

◆ GetCategories()

virtual std::vector<std::string> mitk::IMimeTypeProvider::GetCategories ( ) const
pure virtual

Get a sorted and unique list of mime-type categories.

Returns
A sorted, unique list of mime-type categories.

Implemented in mitk::MimeTypeProvider.

◆ GetMimeTypeForName()

virtual MimeType mitk::IMimeTypeProvider::GetMimeTypeForName ( const std::string &  name) const
pure virtual

Implemented in mitk::MimeTypeProvider.

◆ GetMimeTypes()

virtual std::vector<MimeType> mitk::IMimeTypeProvider::GetMimeTypes ( ) const
pure virtual

Implemented in mitk::MimeTypeProvider.

◆ GetMimeTypesForCategory()

virtual std::vector<MimeType> mitk::IMimeTypeProvider::GetMimeTypesForCategory ( const std::string &  category) const
pure virtual

Implemented in mitk::MimeTypeProvider.

◆ GetMimeTypesForFile()

virtual std::vector<MimeType> mitk::IMimeTypeProvider::GetMimeTypesForFile ( const std::string &  filePath) const
pure virtual

Implemented in mitk::MimeTypeProvider.


The documentation for this struct was generated from the following file: