Pages
API Documentation
On this page

KFileMetaData::ExtractorCollection Class

The 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)

List of all members, including inherited members

Public Functions

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

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.