digiKam
photoinfocontainer.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-21
7  * Description : photo information container
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * 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_PHOTO_INFO_CONTAINER_H
25 #define DIGIKAM_PHOTO_INFO_CONTAINER_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QDateTime>
31 #include <QDebug>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_EXPORT PhotoInfoContainer
41 {
42 
43 public:
44 
45  PhotoInfoContainer() = default;
47  ~PhotoInfoContainer() = default;
48 
51 
52  bool isEmpty() const;
53  bool isNull() const;
54 
55  bool operator==(const PhotoInfoContainer& t) const;
56 
57 public:
58 
59  QString make;
60  QString model;
61  QString lens;
62  QString exposureTime;
63  QString exposureMode;
64  QString exposureProgram;
65  QString aperture;
66  QString focalLength;
67  QString focalLength35mm;
68  QString sensitivity;
69  QString flash;
70  QString whiteBalance;
71 
72  QDateTime dateTime;
73 
74  bool hasCoordinates = false;
75 };
76 
77 DIGIKAM_EXPORT QDataStream& operator<<(QDataStream& ds, const PhotoInfoContainer& info);
78 DIGIKAM_EXPORT QDataStream& operator>>(QDataStream& ds, PhotoInfoContainer& info);
79 
81 DIGIKAM_EXPORT QDebug operator<<(QDebug dbg, const PhotoInfoContainer& t);
82 
83 } // namespace Digikam
84 
85 #endif // DIGIKAM_PHOTO_INFO_CONTAINER_H
Definition: photoinfocontainer.h:41
QString aperture
Definition: photoinfocontainer.h:65
PhotoInfoContainer(const PhotoInfoContainer &)=default
PhotoInfoContainer & operator=(const PhotoInfoContainer &)=default
QString sensitivity
Definition: photoinfocontainer.h:68
QString flash
Definition: photoinfocontainer.h:69
QString exposureTime
Definition: photoinfocontainer.h:62
QString exposureProgram
Definition: photoinfocontainer.h:64
QString whiteBalance
Definition: photoinfocontainer.h:70
QString focalLength35mm
Definition: photoinfocontainer.h:67
QDateTime dateTime
Definition: photoinfocontainer.h:72
QString make
Definition: photoinfocontainer.h:59
QString focalLength
Definition: photoinfocontainer.h:66
QString lens
Definition: photoinfocontainer.h:61
QString exposureMode
Definition: photoinfocontainer.h:63
PhotoInfoContainer & operator=(PhotoInfoContainer &&)=default
QString model
Definition: photoinfocontainer.h:60
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863
QDataStream & operator>>(QDataStream &ds, PhotoInfoContainer &info)
Definition: photoinfocontainer.cpp:117
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49