digiKam
coredbconstants.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 : 2007-04-21
7  * Description : Structures for use in CoreDB
8  *
9  * Copyright (C) 2007-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2005 by Renchi Raju <renchi dot raju at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_CORE_DB_CONSTANTS_H
27 #define DIGIKAM_CORE_DB_CONSTANTS_H
28 
29 // Qt includes
30 
31 #include <QLatin1String>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 namespace AlbumRoot
41 {
42 
43 enum Type
44 {
45  // Keep values constant
49  Network = 3
50 };
51 
52 } // namespace AlbumRoot
53 
54 // ----------------------------------------------------------------------------------
55 
56 namespace DatabaseSearch
57 {
58 
59 enum Type
60 {
69 };
70 
72 {
75 };
76 
77 } // namespace DatabaseSearch
78 
79 // ----------------------------------------------------------------------------------
80 
81 namespace DatabaseItem
82 {
83 
84 enum Status
85 {
86  // Keep values constant
88  Visible = 1,
89  Hidden = 2,
90  Trashed = 3, // previously "Removed"
91  Obsolete = 4
92 };
93 
95 {
96  // Keep values constant
98  Image = 1,
99  Video = 2,
100  Audio = 3,
101  Other = 4
102 };
103 
104 } // namespace DatabaseItem
105 
106 // ----------------------------------------------------------------------------------
107 
108 namespace DatabaseRelation
109 {
110 
111 enum Type
112 {
117  Grouped = 2
118 };
119 
120 } // namespace DatabaseRelation
121 
122 // ----------------------------------------------------------------------------------
123 
124 namespace DatabaseComment
125 {
126 
127 enum Type
128 {
129  // Keep values constant
139  Comment = 1,
141  Headline = 2,
143  Title = 3
144  // Feel free to add here any more types that you need!
145 };
146 
147 } // namespace DatabaseComment
148 
149 // ----------------------------------------------------------------------------------
150 
151 class DIGIKAM_DATABASE_EXPORT InternalTagName
152 {
153 public:
154 
155  static QLatin1String scannedForFaces();
156  static QLatin1String needResolvingHistory();
157  static QLatin1String needTaggingHistoryGraph();
158 
159  static QLatin1String originalVersion();
160  static QLatin1String currentVersion();
161  static QLatin1String intermediateVersion();
162  static QLatin1String versionAlwaysVisible();
163 
164  static QLatin1String colorLabelNone();
165  static QLatin1String colorLabelRed();
166  static QLatin1String colorLabelOrange();
167  static QLatin1String colorLabelYellow();
168  static QLatin1String colorLabelGreen();
169  static QLatin1String colorLabelBlue();
170  static QLatin1String colorLabelMagenta();
171  static QLatin1String colorLabelGray();
172  static QLatin1String colorLabelBlack();
173  static QLatin1String colorLabelWhite();
174 
175  static QLatin1String pickLabelNone();
176  static QLatin1String pickLabelRejected();
177  static QLatin1String pickLabelPending();
178  static QLatin1String pickLabelAccepted();
179 };
180 
181 // ----------------------------------------------------------------------------------
182 
183 class DIGIKAM_DATABASE_EXPORT TagPropertyName
184 {
185 public:
186 
187  static QLatin1String person();
188  static QLatin1String unknownPerson();
189  static QLatin1String unconfirmedPerson();
190  static QLatin1String ignoredPerson();
191  static QLatin1String faceEngineName();
192  static QLatin1String tagKeyboardShortcut();
193  static QLatin1String faceEngineUuid();
194 };
195 
196 // ----------------------------------------------------------------------------------
197 
198 class DIGIKAM_DATABASE_EXPORT ImageTagPropertyName
199 {
200 public:
201 
202  static QLatin1String tagRegion();
203  static QLatin1String autodetectedFace();
204  static QLatin1String autodetectedPerson();
205  static QLatin1String ignoredFace();
206  static QLatin1String faceToTrain();
207 };
208 
209 } // namespace Digikam
210 
211 #endif // DIGIKAM_CORE_DB_CONSTANTS_H
Definition: coredbconstants.h:199
Definition: coredbconstants.h:152
Definition: coredbconstants.h:184
Type
Definition: coredbconstants.h:44
@ VolumeRemovable
Definition: coredbconstants.h:48
@ UndefinedType
Definition: coredbconstants.h:46
@ VolumeHardWired
Definition: coredbconstants.h:47
@ Network
Definition: coredbconstants.h:49
Type
Definition: coredbconstants.h:128
@ Title
Title: as with Dublin Core Title, Photoshop Title, IPTC Object Name.
Definition: coredbconstants.h:143
@ UndefinedType
UndefinedType: Shall never appear in the database.
Definition: coredbconstants.h:131
@ Headline
Headline: as with IPTC or Photoshop.
Definition: coredbconstants.h:141
@ Comment
Definition: coredbconstants.h:139
Category
Definition: coredbconstants.h:95
@ Audio
Definition: coredbconstants.h:100
@ Image
Definition: coredbconstants.h:98
@ UndefinedCategory
Definition: coredbconstants.h:97
@ Video
Definition: coredbconstants.h:99
@ Other
Definition: coredbconstants.h:101
Status
Definition: coredbconstants.h:85
@ Visible
Definition: coredbconstants.h:88
@ Trashed
Definition: coredbconstants.h:90
@ Obsolete
Definition: coredbconstants.h:91
@ Hidden
Definition: coredbconstants.h:89
@ UndefinedStatus
Definition: coredbconstants.h:87
Type
Definition: coredbconstants.h:112
@ DerivedFrom
Definition: coredbconstants.h:115
@ UndefinedType
Definition: coredbconstants.h:113
@ Grouped
Definition: coredbconstants.h:117
HaarSearchType
Definition: coredbconstants.h:72
@ HaarSketchSearch
Definition: coredbconstants.h:74
@ HaarImageSearch
Definition: coredbconstants.h:73
Type
Definition: coredbconstants.h:60
@ KeywordSearch
Definition: coredbconstants.h:62
@ UndefinedType
Definition: coredbconstants.h:61
@ AdvancedSearch
Definition: coredbconstants.h:63
@ LegacyUrlSearch
Definition: coredbconstants.h:64
@ TimeLineSearch
Definition: coredbconstants.h:65
@ HaarSearch
Definition: coredbconstants.h:66
@ MapSearch
Definition: coredbconstants.h:67
@ DuplicatesSearch
Definition: coredbconstants.h:68
Definition: datefolderview.cpp:43