25 #ifndef DIGIKAM_FACE_TAGS_IFACE_H
26 #define DIGIKAM_FACE_TAGS_IFACE_H
51 UnconfirmedName = 1 << 1,
53 ConfirmedName = 1 << 3,
54 FaceForTraining = 1 << 4,
56 UnconfirmedTypes = UnknownName | UnconfirmedName,
57 NormalFaces = UnknownName | UnconfirmedName | IgnoredName | ConfirmedName,
58 AllTypes = UnknownName | UnconfirmedName | IgnoredName | ConfirmedName | FaceForTraining,
59 TypeFirst = UnknownName,
60 TypeLast = FaceForTraining
62 Q_DECLARE_FLAGS(TypeFlags,
Type)
73 qlonglong imageId()
const;
79 return (type() == InvalidFace);
84 return (type() == UnknownName);
89 return (type() == UnconfirmedName);
94 return (type() & UnconfirmedTypes);
99 return (type() == IgnoredName);
104 return (type() == ConfirmedName);
109 return (type() == FaceForTraining);
112 void setType(
Type type);
113 void setTagId(
int tagId);
121 static QStringList attributesForFlags(TypeFlags flags);
126 static QString attributeForType(
Type type);
132 static Type typeForId(
int tagId);
138 static Type typeForAttribute(
const QString& attribute,
int tagId = 0);
143 QString getAutodetectedPersonString()
const;
151 QVariant toVariant()
const;
170 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::FaceTagsIface::TypeFlags)
Definition: tagregion.h:47
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49
Type
Definition: gpsitemcontainer.h:45