KFileMetaData

writercollection.h
1/*
2 This file is part of the KFileMetaData project
3 SPDX-FileCopyrightText: 2016 Varun Joshi <varunj.1011@gmail.com>
4 SPDX-FileCopyrightText: 2016 Vishesh Handa <me@vhanda.in>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#ifndef _KFILEMETADTA_WRITERCOLLECTION_H
10#define _KFILEMETADTA_WRITERCOLLECTION_H
11
12#include <QList>
13
14#include <memory>
15
16#include "kfilemetadata_export.h"
17#include "writer.h"
18
19namespace KFileMetaData
20{
21class WriterCollectionPrivate;
22/**
23 * \class WriterCollection writercollection.h <KFileMetaData/WriterCollection>
24 *
25 * \brief The WriterCollection is a helper class which internally
26 * loads all the writer plugins.
27 *
28 * It can be used to fetch a certain
29 * subset of writer plugins based on a given MIME type.
30 *
31 * Once the appropriate plugins have been fetched, a WriteData
32 * should be created and passed to the plugin's write function.
33 */
34class KFILEMETADATA_EXPORT WriterCollection
35{
36public:
37 explicit WriterCollection();
38 virtual ~WriterCollection();
39
40 QList<Writer*> fetchWriters(const QString& mimetype) const;
41
42private:
43 const std::unique_ptr<WriterCollectionPrivate> d;
44};
45}
46
47#endif // _KFILEMETADTA_WRITERCOLLECTION_H
The WriterCollection is a helper class which internally loads all the writer plugins.
The KFileMetaData namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:09:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.