| 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 KFILEMETADATA_WRITER_P_H |
| 10 | #define KFILEMETADATA_WRITER_P_H |
| 11 | |
| 12 | #include "writerplugin.h" |
| 13 | |
| 14 | namespace KFileMetaData { |
| 15 | |
| 16 | class WriterPlugin; |
| 17 | |
| 18 | class WriterPrivate |
| 19 | { |
| 20 | public: |
| 21 | ~WriterPrivate() { |
| 22 | if (m_autoDeletePlugin == Writer::AutoDeletePlugin) { |
| 23 | delete m_plugin; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | WriterPlugin *m_plugin = nullptr; |
| 28 | |
| 29 | Writer::WriterPluginOwnership m_autoDeletePlugin = Writer::AutoDeletePlugin; |
| 30 | }; |
| 31 | |
| 32 | } |
| 33 | |
| 34 | #endif |
| 35 | |
| 36 | |