KFileMetaData 5.109.0
extractorcollection.h
1/*
2 SPDX-FileCopyrightText: 2012 Vishesh Handa <me@vhanda.in>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef _KFILEMETADATA_EXTRACTORCOLLECTION_H
8#define _KFILEMETADATA_EXTRACTORCOLLECTION_H
9
10#include "extractor.h"
11#include "kfilemetadata_export.h"
12
13#include <memory>
14
15namespace KFileMetaData
16{
17class ExtractorCollectionPrivate;
30class KFILEMETADATA_EXPORT ExtractorCollection
31{
32public:
33 explicit ExtractorCollection();
34 virtual ~ExtractorCollection();
35
45 QList<Extractor*> fetchExtractors(const QString& mimetype) const;
46
47private:
48 friend class ExtractorCollectionTest;
49 QList<Extractor*> allExtractors();
50 const std::unique_ptr<ExtractorCollectionPrivate> d;
51};
52}
53
54#endif
The ExtractorCollection is a helper class which internally loads all the extractor plugins.
Definition extractorcollection.h:31
QList< Extractor * > fetchExtractors(const QString &mimetype) const
Fetch the extractors which can be used to extract data for the respective file with the given mimetyp...