KFileMetaData

writerplugin.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_WRITERPLUGIN_H
10#define _KFILEMETADTA_WRITERPLUGIN_H
11
12#include "kfilemetadata_export.h"
13#include <QStringList>
14
15#include "writedata.h"
16
17namespace KFileMetaData
18{
19
20/**
21 * \class WriterPlugin writerplugin.h <KFileMetaData/WriterPlugin>
22 */
23class KFILEMETADATA_EXPORT WriterPlugin : public QObject
24{
25 Q_OBJECT
26public:
27 explicit WriterPlugin(QObject* parent);
28 ~WriterPlugin() override;
29
30 virtual QStringList writeMimetypes() const = 0;
31
32 virtual void write(const WriteData& data) = 0;
33};
34}
35
36Q_DECLARE_INTERFACE(KFileMetaData::WriterPlugin, "org.kde.kf5.kfilemetadata.WriterPlugin")
37#endif // _KFILEMETADTA_WRITERPLUGIN_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.