KFileMetaData 5.109.0
|
The ExtractorCollection is a helper class which internally loads all the extractor plugins. More...
#include <KFileMetaData/ExtractorCollection>
Public Member Functions | |
QList< Extractor * > | fetchExtractors (const QString &mimetype) const |
Fetch the extractors which can be used to extract data for the respective file with the given mimetype. | |
The ExtractorCollection is a helper class which internally loads all the extractor plugins.
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.
QList< Extractor * > KFileMetaData::ExtractorCollection::fetchExtractors | ( | const QString & | mimetype | ) | const |
Fetch the extractors which can be used to extract data for the respective file with the given mimetype.
If no match is found then the best matching plugins are returned, determined by mimetype inheritance.