digiKam
Loading...
Searching...
No Matches
itemextendedproperties.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 : 2009-07-04
7 * Description : Access to extended properties of an item in the database
8 *
9 * SPDX-FileCopyrightText: 2009-2013 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10 * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QString>
21#include <QStringList>
22#include <QList>
23
24// Local includes
25
26#include "template.h"
27#include "metadatainfo.h"
28#include "digikam_export.h"
29
30namespace Digikam
31{
32
33class DIGIKAM_DATABASE_EXPORT ItemExtendedProperties
34{
35
36public:
37
38 explicit ItemExtendedProperties(qlonglong imageid);
39
44
55 QString intellectualGenre();
56 void setIntellectualGenre(const QString& intellectualGenre);
57 void removeIntellectualGenre();
58
67 QString jobId();
68 void setJobId(const QString& jobId);
69 void removeJobId();
70
76 QStringList scene();
77 void setScene(const QStringList& scene);
78 void removeScene();
79
89 QStringList subjectCode();
90 void setSubjectCode(const QStringList& subjectCode);
91 void removeSubjectCode();
92
96 double similarityTo(const qlonglong imageId);
97 void setSimilarityTo(const qlonglong imageId, const double value);
98 void removeSimilarityTo(const qlonglong imageId);
99
105 IptcCoreLocationInfo location();
106 void setLocation(const IptcCoreLocationInfo& location);
107 void removeLocation();
108
109protected:
110
111 QString readProperty(const QString& property);
112 void setProperty(const QString& property, const QString& value);
113 QStringList readFakeListProperty(const QString& property);
114 void setFakeListProperty(const QString& property, const QStringList& value);
115 void removeProperty(const QString& property);
116
117protected:
118
119 qlonglong m_id = 0;
120};
121
122} // namespace Digikam
Definition metadatainfo.h:31
Definition itemextendedproperties.h:34
qulonglong value
Definition itemviewutilities.cpp:585
Definition datefolderview.cpp:34