KFileMetaData

writer.cpp
1 /*
2  This file is part of the KFileMetaData project
3  SPDX-FileCopyrightText: 2016 Varun Joshi <[email protected]>
4  SPDX-FileCopyrightText: 2016 Vishesh Handa <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 
9 #include "writer.h"
10 #include "writer_p.h"
11 #include "writerplugin.h"
12 
13 using namespace KFileMetaData;
14 
15 Writer::Writer()
16  : d(new WriterPrivate)
17 {
18 }
19 
20 Writer::~Writer() = default;
21 
22 Writer::Writer(Writer&& other)
23 {
24  d = std::move(other.d);
25 }
26 
27 
28 void Writer::write(const WriteData& data)
29 {
30  d->m_plugin->write(data);
31 }
32 
33 QStringList Writer::mimetypes() const
34 {
35  return d->m_plugin->writeMimetypes();
36 }
37 
38 void Writer::setAutoDeletePlugin(WriterPluginOwnership autoDelete)
39 {
40  d->m_autoDeletePlugin = autoDelete;
41 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 26 2022 03:46:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.