KFileMetaData

embeddedimagedata.h
1 /*
2  EmbeddedImageData extracts binary data of cover art files.
3  SPDX-FileCopyrightText: 2018 Alexander Stippich <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #ifndef KFILEMETADATA_EMBEDDEDIMAGEDATA_H
9 #define KFILEMETADATA_EMBEDDEDIMAGEDATA_H
10 
11 #include "kfilemetadata_export.h"
12 #include <QByteArray>
13 #include <QFlags>
14 #include <QMap>
15 #include <memory>
16 
17 namespace KFileMetaData {
18 
29 class KFILEMETADATA_EXPORT EmbeddedImageData {
30 public:
32  virtual ~EmbeddedImageData();
36  enum ImageType {
37  FrontCover = 0x01,
38  AllImages = FrontCover
39  };
43  Q_DECLARE_FLAGS(ImageTypes, ImageType)
44 
45 
49  QMap<ImageType, QByteArray> imageData(const QString &fileUrl, const EmbeddedImageData::ImageTypes types = FrontCover) const;
50 
56  QStringList mimeTypes() const;
57 
64  void writeImageData(const QString &fileUrl, QMap<ImageType, QByteArray> &imageData);
65 
66 private:
67  class Private;
68  std::unique_ptr<Private> d;
69  EmbeddedImageData& operator=(const EmbeddedImageData&);
70 };
71 
72 }
73 
74 #endif // KFILEMETADATA_EMBEDDEDIMAGEDATA_H
The EmbeddedImageData is a class which extracts and writes the images stored in the metadata tags of ...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:54:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.