Warning, file /frameworks/kfilemetadata/src/writer.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the KFileMetaData project 0003 SPDX-FileCopyrightText: 2016 Varun Joshi <varunj.1011@gmail.com> 0004 SPDX-FileCopyrightText: 2016 Vishesh Handa <me@vhanda.in> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "writer.h" 0010 #include "writer_p.h" 0011 #include "writerplugin.h" 0012 0013 using namespace KFileMetaData; 0014 0015 Writer::Writer() 0016 : d(new WriterPrivate) 0017 { 0018 } 0019 0020 Writer::~Writer() = default; 0021 0022 Writer::Writer(Writer&& other) 0023 { 0024 d = std::move(other.d); 0025 } 0026 0027 0028 void Writer::write(const WriteData& data) 0029 { 0030 d->m_plugin->write(data); 0031 } 0032 0033 QStringList Writer::mimetypes() const 0034 { 0035 return d->m_plugin->writeMimetypes(); 0036 } 0037 0038 void Writer::setAutoDeletePlugin(WriterPluginOwnership autoDelete) 0039 { 0040 d->m_autoDeletePlugin = autoDelete; 0041 }