• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

libs/libkexiv2/libkexiv2

  • sources
  • kde-4.14
  • kdegraphics
  • libs
  • libkexiv2
  • libkexiv2
kexiv2previews.h
Go to the documentation of this file.
1 
28 #ifndef KEXIV2PREVIEWS
29 #define KEXIV2PREVIEWS
30 
31 // Qt includes
32 
33 #include <QtCore/QByteArray>
34 #include <QtCore/QSize>
35 #include <QtCore/QString>
36 
37 // Local includes
38 
39 #include "libkexiv2_export.h"
40 
41 class QImage;
42 
43 namespace KExiv2Iface
44 {
45 
46 class KEXIV2_EXPORT KExiv2Previews
47 {
48 public:
49 
53  KExiv2Previews(const QString& filePath);
54 
58  KExiv2Previews(const QByteArray& imgData);
59  ~KExiv2Previews();
60 
62  QSize originalSize() const;
63 
65  QString originalMimeType() const;
66 
68  bool isEmpty();
69 
71  int count();
72  int size() { return count(); }
73 
81  int dataSize(int index = 0);
82  int width(int index = 0);
83  int height(int index = 0);
84  QString mimeType(int index = 0);
85  QString fileExtension(int index = 0);
86 
90  QByteArray data(int index = 0);
91 
96  QImage image(int index = 0);
97 
98 private:
99 
100  class Private;
101  Private* const d;
102 };
103 
104 } // namespace KExiv2Iface
105 
106 #endif // KEXIV2PREVIEWS
QByteArray
KExiv2Iface::KExiv2Previews
Definition: kexiv2previews.h:46
KEXIV2_EXPORT
#define KEXIV2_EXPORT
Definition: libkexiv2_export.h:39
QString
QSize
QImage
KExiv2Iface::KExiv2Previews::size
int size()
Definition: kexiv2previews.h:72
libkexiv2_export.h
===========================================================This file is part of the KDE project ...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libs/libkexiv2/libkexiv2

Skip menu "libs/libkexiv2/libkexiv2"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal