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 */
27class KFILEMETADATA_EXPORT Writer
28{
29 enum WriterPluginOwnership {
30 AutoDeletePlugin,
31 DoNotDeletePlugin,
32 };
33
34public:
35 Writer(Writer&&);
36 virtual ~Writer();
37
38 void write(const WriteData& data);
39 QStringList mimetypes() const;
40
41private:
42 KFILEMETADATA_NO_EXPORT Writer();
43
44 Writer(const Writer&) = delete;
45 void operator =(const Writer&) = delete;
46
47 KFILEMETADATA_NO_EXPORT void setAutoDeletePlugin(WriterPluginOwnership autoDelete);
48
49 std::unique_ptr<WriterPrivate> d;
50 friend class WriterPrivate;
51 friend class WriterCollectionPrivate;
52};
53}
54
55#endif // KFILEMETADTA_WRITER_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:44:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.