/* This file is part of the KFileMetaData project SPDX-FileCopyrightText: 2016 Varun Joshi SPDX-FileCopyrightText: 2016 Vishesh Handa SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef _KFILEMETADTA_WRITERCOLLECTION_H #define _KFILEMETADTA_WRITERCOLLECTION_H #include #include #include "kfilemetadata_export.h" #include "writer.h" namespace KFileMetaData { class WriterCollectionPrivate; /** * \class WriterCollection writercollection.h * * \brief The WriterCollection is a helper class which internally * loads all the writer plugins. * * It can be used to fetch a certain * subset of writer plugins based on a given MIME type. * * Once the appropriate plugins have been fetched, a WriteData * should be created and passed to the plugin's write function. */ class KFILEMETADATA_EXPORT WriterCollection { public: explicit WriterCollection(); virtual ~WriterCollection(); QList fetchWriters(const QString& mimetype) const; private: const std::unique_ptr d; }; } #endif // _KFILEMETADTA_WRITERCOLLECTION_H