13 #ifndef mitkMimeTypeProvider_h
14 #define mitkMimeTypeProvider_h
122 typedef std::map<std::string, std::set<MimeType>> MapType;
123 MapType m_NameToMimeTypes;
125 std::map<std::string, MimeType> m_NameToMimeType;
Implementation of IMimeTypeProvider that tracks MIME type services.
std::vector< MimeType > GetMimeTypesForCategory(const std::string &category) const override
Get all MIME types belonging to the given category.
void Start()
Start tracking MIME type services.
void Stop()
Stop tracking MIME type services.
std::vector< MimeType > GetMimeTypes() const override
Get all currently registered MIME types (highest-ranked per name).
std::vector< MimeType > GetMimeTypesForFile(const std::string &filePath) const override
Get all MIME types that match the given file path.
~MimeTypeProvider() override
std::vector< std::string > GetCategories() const override
Get all unique MIME type categories.
MimeType GetMimeTypeForName(const std::string &name) const override
Get the highest-ranked MIME type with the given name.
Immutable, value-type wrapper for a registered mime-type.
bool IsValid() const
Check whether this MimeType object is valid (has a non-empty name).
Find image slices visible on a given plane.
Service interface for querying all registered mime-types.
Custom traits for tracking MimeType objects via CppMicroServices ServiceTracker.
static void Dispose(TrackedType &)
static TrackedType DefaultValue()
static bool IsValid(const TrackedType &t)
MimeType TrackedType
The tracked object type.