digiKam
disjointmetadatadatafields.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 : 2015-08-17
7  * Description : Helper class for Image Description Editor Tab
8  *
9  * Copyright (C) 2015 by Veaceslav Munteanu <veaceslav dot munteanu90 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_DISJOINT_METADATA_DATA_FIELDS_H
25 #define DIGIKAM_DISJOINT_METADATA_DATA_FIELDS_H
26 
27 #include "disjointmetadata.h"
28 
29 // Qt includes
30 
31 #include <QMap>
32 #include <QList>
33 #include <QDateTime>
34 #include <QStringList>
35 
36 // Local includes
37 
38 #include "captionvalues.h"
39 #include "template.h"
40 
41 namespace Digikam
42 {
43 
49 {
50 
51 public:
52 
58  enum Status
59  {
63  };
64 
65 public:
66 
68  : dateTimeChanged (false),
69  titlesChanged (false),
70  commentsChanged (false),
71  pickLabelChanged (false),
72  colorLabelChanged (false),
73  ratingChanged (false),
74  templateChanged (false),
75  tagsChanged (false),
76  withoutTags (false),
77  pickLabel (-1),
78  highestPickLabel (-1),
79  colorLabel (-1),
80  highestColorLabel (-1),
81  rating (-1),
82  highestRating (-1),
83  count (0),
91  invalid (false)
92  {
93  }
94 
104 
109  int rating;
111  int count;
112 
113  QDateTime dateTime;
114  QDateTime lastDateTime;
115 
118 
120 
121  QMap<int, Status> tags;
122 
123  QStringList tagList;
124 
132 
134  bool invalid;
135 };
136 
137 } // namespace Digikam
138 
139 #endif // DIGIKAM_DISJOINT_METADATA_DATA_FIELDS_H
Definition: captionvalues.h:69
Definition: disjointmetadatadatafields.h:49
bool withoutTags
Definition: disjointmetadatadatafields.h:103
int highestPickLabel
Definition: disjointmetadatadatafields.h:106
bool tagsChanged
Definition: disjointmetadatadatafields.h:102
bool pickLabelChanged
Definition: disjointmetadatadatafields.h:98
bool ratingChanged
Definition: disjointmetadatadatafields.h:100
QMap< int, Status > tags
Definition: disjointmetadatadatafields.h:121
CaptionsMap comments
Definition: disjointmetadatadatafields.h:117
Status templateStatus
Definition: disjointmetadatadatafields.h:131
Status titlesStatus
Definition: disjointmetadatadatafields.h:126
Status ratingStatus
Definition: disjointmetadatadatafields.h:130
int rating
Definition: disjointmetadatadatafields.h:109
QList< int > tagIds
Definition: disjointmetadatadatafields.h:133
Status pickLabelStatus
Definition: disjointmetadatadatafields.h:128
QStringList tagList
Definition: disjointmetadatadatafields.h:123
QDateTime dateTime
Definition: disjointmetadatadatafields.h:113
int pickLabel
Definition: disjointmetadatadatafields.h:105
DisjointMetadataDataFields()
Definition: disjointmetadatadatafields.h:67
int colorLabel
Definition: disjointmetadatadatafields.h:107
CaptionsMap titles
Definition: disjointmetadatadatafields.h:116
QDateTime lastDateTime
Definition: disjointmetadatadatafields.h:114
Status
Definition: disjointmetadatadatafields.h:59
@ MetadataDisjoint
No common value is available. For rating and dates, the interval is available.
Definition: disjointmetadatadatafields.h:62
@ MetadataInvalid
Not yet filled with any value.
Definition: disjointmetadatadatafields.h:60
@ MetadataAvailable
Only one data set has been added, or a common value is available.
Definition: disjointmetadatadatafields.h:61
bool colorLabelChanged
Definition: disjointmetadatadatafields.h:99
bool invalid
Definition: disjointmetadatadatafields.h:134
Template metadataTemplate
Definition: disjointmetadatadatafields.h:119
int highestRating
Definition: disjointmetadatadatafields.h:110
bool commentsChanged
Definition: disjointmetadatadatafields.h:97
int highestColorLabel
Definition: disjointmetadatadatafields.h:108
bool templateChanged
Definition: disjointmetadatadatafields.h:101
int count
Definition: disjointmetadatadatafields.h:111
Status colorLabelStatus
Definition: disjointmetadatadatafields.h:129
Status commentsStatus
Definition: disjointmetadatadatafields.h:127
Status dateTimeStatus
Definition: disjointmetadatadatafields.h:125
bool titlesChanged
Definition: disjointmetadatadatafields.h:96
bool dateTimeChanged
Definition: disjointmetadatadatafields.h:95
Definition: template.h:46
Definition: datefolderview.cpp:43