digiKam
galleryelement.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2006-04-04
7  * Description : a tool to generate HTML image galleries
8  *
9  * Copyright (C) 2006-2010 by Aurelien Gateau <aurelien dot gateau at free dot fr>
10  * Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_GALLERY_ELEMENT_H
25 #define DIGIKAM_GALLERY_ELEMENT_H
26 
27 // Qt includes
28 
29 #include <QSize>
30 #include <QString>
31 
32 // Local includes
33 
34 #include "dmetadata.h"
35 #include "dinfointerface.h"
36 
37 using namespace Digikam;
38 
40 {
41 
42 class XMLWriter;
43 
49 {
50 public:
51 
52  explicit GalleryElement(const DInfoInterface::DInfoMap& info);
54  ~GalleryElement();
55 
56  void appendToXML(XMLWriter& xmlWriter, bool copyOriginalImage) const;
57 
58  void appendImageElementToXML(XMLWriter& xmlWriter, const QString& elementName,
59  const QString& fileName, const QSize& size) const;
60 
61 public:
62 
63  bool m_valid;
64  QString m_title;
65  QString m_description;
67  QDateTime m_time;
68 
69  QString m_path;
70 
73  QString m_fullFileName;
74  QSize m_fullSize;
77 
78  // Exif Metadata
79  QString m_exifImageMake;
80  QString m_exifItemModel;
94 
95  // GPS Metadata
99 };
100 
101 } // namespace DigikamGenericHtmlGalleryPlugin
102 
103 #endif // DIGIKAM_GALLERY_ELEMENT_H
QString m_thumbnailFileName
Definition: galleryelement.h:71
QString m_exifGPSAltitude
Definition: galleryelement.h:98
QDateTime m_time
Definition: galleryelement.h:67
QString m_title
Definition: galleryelement.h:64
QString m_exifPhotoShutterSpeedValue
Definition: galleryelement.h:91
QString m_exifImageXResolution
Definition: galleryelement.h:82
QString m_exifPhotoExposureTime
Definition: galleryelement.h:87
QString m_path
Definition: galleryelement.h:69
QSize m_thumbnailSize
Definition: galleryelement.h:72
QString m_exifPhotoISOSpeedRatings
Definition: galleryelement.h:90
QString m_exifImageMake
Definition: galleryelement.h:79
QString m_exifImageOrientation
Definition: galleryelement.h:81
QString m_exifItemModel
Definition: galleryelement.h:80
QString m_exifImageDateTime
Definition: galleryelement.h:85
QSize m_originalSize
Definition: galleryelement.h:76
bool m_valid
Definition: galleryelement.h:63
QString m_exifImageYResolution
Definition: galleryelement.h:83
QString m_description
Definition: galleryelement.h:65
QString m_exifPhotoApertureValue
Definition: galleryelement.h:92
QString m_exifGPSLongitude
Definition: galleryelement.h:97
QString m_exifGPSLatitude
Definition: galleryelement.h:96
QSize m_fullSize
Definition: galleryelement.h:74
QString m_exifPhotoExposureProgram
Definition: galleryelement.h:89
DMetadata::ImageOrientation m_orientation
Definition: galleryelement.h:66
QString m_exifImageYCbCrPositioning
Definition: galleryelement.h:86
QString m_fullFileName
Definition: galleryelement.h:73
QString m_exifPhotoFocalLength
Definition: galleryelement.h:93
QString m_exifPhotoFNumber
Definition: galleryelement.h:88
QString m_exifImageResolutionUnit
Definition: galleryelement.h:84
QString m_originalFileName
Definition: galleryelement.h:75
Definition: galleryxmlutils.h:96
QMap< QString, QVariant > DInfoMap
Map of properties name and value.
Definition: dinfointerface.h:62
ImageOrientation
Definition: metaengine.h:96
Definition: galleryconfig.cpp:30
Definition: datefolderview.cpp:43