KFileMetaData::ExtractorCollection

Search for usage in LXR

KFileMetaData::ExtractorCollection Class Reference

#include <KFileMetaData/ExtractorCollection>

Public Member Functions

QList< Extractor * > fetchExtractors (const QString &mimetype) const
 

Detailed Description

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.

Author
Vishesh Handa me@vh.nosp@m.anda.nosp@m..in

Definition at line 32 of file extractorcollection.h.

Constructor & Destructor Documentation

◆ ExtractorCollection()

ExtractorCollection::ExtractorCollection ( )
explicit

Definition at line 34 of file extractorcollection.cpp.

Member Function Documentation

◆ fetchExtractors()

QList< 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

Definition at line 150 of file extractorcollection.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:59:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.