digiKam
identity.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam
4  *
5  * Date : 2013-05-18
6  * Description : Wrapper class for face recognition
7  *
8  * Copyright (C) 2013 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
9  * Copyright (C) 2014-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_FACESENGINE_IDENTITY_H
25 #define DIGIKAM_FACESENGINE_IDENTITY_H
26 
27 // Qt includes
28 
29 #include <QMultiMap>
30 #include <QString>
31 #include <QExplicitlySharedDataPointer>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_EXPORT Identity
41 {
42 
43 public:
44 
60  Identity();
61  Identity(const Identity& other);
62  ~Identity();
63 
64  Identity& operator=(const Identity& other);
65 
66  bool isNull() const;
67  bool operator==(const Identity& other) const;
68 
72  int id() const;
73  void setId(int id);
74 
78  QString attribute(const QString& att) const;
79  void setAttribute(const QString& att,
80  const QString& val);
81 
85  QMultiMap<QString, QString> attributesMap() const;
86  void setAttributesMap(const QMultiMap<QString, QString>& attributes);
87 
88 private:
89 
90  class Private;
91  QExplicitlySharedDataPointer<Private> d;
92 };
93 
94 } // namespace Digikam
95 
96 #endif // DIGIKAM_FACESENGINE_IDENTITY_H
Definition: identity.h:41
Definition: datefolderview.cpp:43
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49