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

KDE's Doxygen guidelines are available online.