File indexing completed on 2024-05-05 16:09:03

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 #ifndef KFILEMETADATA_WRITER_P_H
0010 #define KFILEMETADATA_WRITER_P_H
0011 
0012 #include "writerplugin.h"
0013 
0014 namespace KFileMetaData {
0015 
0016 class WriterPlugin;
0017 
0018 class WriterPrivate
0019 {
0020 public:
0021     ~WriterPrivate() {
0022         if (m_autoDeletePlugin == Writer::AutoDeletePlugin) {
0023             delete m_plugin;
0024         }
0025     }
0026 
0027     WriterPlugin *m_plugin = nullptr;
0028 
0029     Writer::WriterPluginOwnership m_autoDeletePlugin = Writer::AutoDeletePlugin;
0030 };
0031 
0032 }
0033 
0034 #endif
0035