1 // vim: set tabstop=4 shiftwidth=4 noexpandtab
3 Gwenview: an image viewer
4 Copyright 2007 Aurélien Gâteau <aurelien.gateau@free.fr>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 #include <lib/orientation.h>
26 #include <lib/gwenviewlib_export.h>
33 namespace Exiv2
{ class Image
; }
38 class GWENVIEWLIB_EXPORT JpegContent
{
43 Orientation
orientation() const;
44 void resetOrientation();
46 int dotsPerMeterX() const;
47 int dotsPerMeterY() const;
51 QString
comment() const;
52 void setComment(const QString
&);
54 void transform(Orientation
);
56 QImage
thumbnail() const;
57 void setThumbnail(const QImage
&);
59 bool load(const QString
& file
);
60 bool loadFromData(const QByteArray
& rawData
);
62 * Use this version of loadFromData if you already have an Exiv2::Image*
64 bool loadFromData(const QByteArray
& rawData
, Exiv2::Image
*);
65 bool save(const QString
& file
);
66 bool save(QIODevice
*);
68 QByteArray
rawData() const;
70 QString
errorString() const;
76 JpegContent(const JpegContent
&);
77 void operator=(const JpegContent
&);
78 void applyPendingTransformation();
79 int dotsPerMeter(const QString
& keyName
) const;
86 #endif /* JPEGCONTENT_H */