KFileMetaData::ExtractorCollection Class
class KFileMetaData::ExtractorCollectionThe ExtractorCollection is a helper class which internally loads all the extractor plugins. More...
Header: | #include <KFileMetaData/ExtractorCollection> |
CMake: | find_package(KF6 REQUIRED COMPONENTS FileMetaData) target_link_libraries(mytarget PRIVATE KF6::FileMetaData) |
Public Functions
ExtractorCollection() | |
QList<KFileMetaData::Extractor *> | fetchExtractors(const QString &mimetype) const |
Detailed Description
It can be used to fetch a certain subset of these plugins based on a given mimetype.
Once the appropriate plugins have been fetched, an ExtractionResult should be created and passed to the plugin's extract function.
Member Function Documentation
[explicit]
ExtractorCollection::ExtractorCollection()
QList<KFileMetaData::Extractor *> ExtractorCollection::fetchExtractors(const QString &mimetype) const
Fetch the extractors which can be used to extract data for the respective file with the given MIME type.
If no match is found then the best matching plugins are returned, determined by MIME type inheritance.
See also QMimeType::allAncestors.