KExiv2

kexiv2previews.h
Go to the documentation of this file.
1 
28 #ifndef KEXIV2PREVIEWS
29 #define KEXIV2PREVIEWS
30 
31 // Qt includes
32 
33 #include <QByteArray>
34 #include <QSize>
35 #include <QString>
36 
37 // Local includes
38 
39 #include "libkexiv2_export.h"
40 
41 class QImage;
42 
43 namespace KExiv2Iface
44 {
45 
51 class LIBKEXIV2_EXPORT KExiv2Previews
52 {
53 public:
54 
58  KExiv2Previews(const QString& filePath);
59 
63  KExiv2Previews(const QByteArray& imgData);
64  ~KExiv2Previews();
65 
67  QSize originalSize() const;
68 
70  QString originalMimeType() const;
71 
73  bool isEmpty();
74 
76  int count();
77  int size() { return count(); }
78 
86  int dataSize(int index = 0);
87  int width(int index = 0);
88  int height(int index = 0);
89  QString mimeType(int index = 0);
90  QString fileExtension(int index = 0);
91 
95  QByteArray data(int index = 0);
96 
101  QImage image(int index = 0);
102 
103 private:
104 
105  class Private;
106  Private* const d;
107 };
108 
109 } // namespace KExiv2Iface
110 
111 #endif // KEXIV2PREVIEWS
KExiv2Iface.
Definition: kexiv2.cpp:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Nov 26 2020 22:35:13 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.