KFileMetaData

writerplugin.h
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 #ifndef _KFILEMETADTA_WRITERPLUGIN_H
10 #define _KFILEMETADTA_WRITERPLUGIN_H
11 
12 #include "kfilemetadata_export.h"
13 #include <QStringList>
14 
15 #include "writedata.h"
16 
17 namespace KFileMetaData
18 {
19 
20 /**
21  * \class WriterPlugin writerplugin.h <KFileMetaData/WriterPlugin>
22  */
23 class KFILEMETADATA_EXPORT WriterPlugin : public QObject
24 {
25  Q_OBJECT
26 public:
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 
36 Q_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-2022 The KDE developers.
Generated on Fri May 27 2022 03:47:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.