KFileMetaData

writer.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_WRITER_H
10#define KFILEMETADTA_WRITER_H
11
12#include "kfilemetadata_export.h"
13#include <QStringList>
14
15#include <memory>
16
17namespace KFileMetaData
18{
19
20class WriteData;
21class WriterCollection;
22class WriterPrivate;
23
24/**
25 * \class Writer writer.h <KFileMetaData/Writer>
26 *
27 * \brief The Writer class is used to write data to a file.
28 */
29class KFILEMETADATA_EXPORT Writer
30{
31 enum WriterPluginOwnership {
32 AutoDeletePlugin,
33 DoNotDeletePlugin,
34 };
35
36public:
37 Writer(Writer&&);
38 virtual ~Writer();
39
40 void write(const WriteData& data);
41 QStringList mimetypes() const;
42
43private:
44 KFILEMETADATA_NO_EXPORT Writer();
45
46 Writer(const Writer&) = delete;
47 void operator =(const Writer&) = delete;
48
49 KFILEMETADATA_NO_EXPORT void setAutoDeletePlugin(WriterPluginOwnership autoDelete);
50
51 std::unique_ptr<WriterPrivate> d;
52 friend class WriterPrivate;
53 friend class WriterCollectionPrivate;
54};
55}
56
57#endif // KFILEMETADTA_WRITER_H
The WriteData class stores all the data to be written to a file.
Definition writedata.h:30
The Writer class is used to write data to a file.
Definition writer.h:30
The KFileMetaData namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:48:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.