KFileMetaData

writer.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_WRITER_H
10 #define KFILEMETADTA_WRITER_H
11 
12 #include "kfilemetadata_export.h"
13 #include <QStringList>
14 
15 namespace KFileMetaData
16 {
17 
18 class WriteData;
19 class WriterCollection;
20 
24 class KFILEMETADATA_EXPORT Writer
25 {
26  class WriterPrivate;
27 
28  enum WriterPluginOwnership {
29  AutoDeletePlugin,
30  DoNotDeletePlugin,
31  };
32 
33 public:
34  Writer(Writer&&);
35  virtual ~Writer();
36 
37  void write(const WriteData& data);
38  QStringList mimetypes() const;
39 
40 private:
41  Writer();
42  Writer(const Writer&);
43 
44  void operator =(const Writer&);
45 
46  void setAutoDeletePlugin(WriterPluginOwnership autoDelete);
47 
48  WriterPrivate *d;
49  friend class WriterCollection;
50 };
51 }
52 
53 #endif // KFILEMETADTA_WRITER_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 22:54:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.