digiKam
Digikam::Identity Class Reference

Public Member Functions

QString attribute (const QString &att) const
 
QMultiMap< QString, QString > attributesMap () const
 
int id () const
 
 Identity ()
 
 Identity (const Identity &other)
 
bool isNull () const
 
Identityoperator= (const Identity &other)
 
bool operator== (const Identity &other) const
 
void setAttribute (const QString &att, const QString &val)
 
void setAttributesMap (const QMultiMap< QString, QString > &attributes)
 
void setId (int id)
 
 ~Identity ()
 

Constructor & Destructor Documentation

◆ Identity() [1/2]

Digikam::Identity::Identity ( )

Wraps a face recognition Identity. An identity refers to a natural person. There is an internal id which is used the FacesEngine storage, and a number of attributes which map the identity to the outside. Prespecified attributes: "fullName" The full name as on the ID card, e.g. "Peter Brown" "name" The person's name without further specification, e.g. "Peter" or "Dad" "uuid" A UUID that is assigned to each new identity at creation.

For fullName and name, multiple values are allowed.

Attributes can be used to map an identity to other fields and services where natural persons play a role.

◆ Identity() [2/2]

Digikam::Identity::Identity ( const Identity other)

◆ ~Identity()

Digikam::Identity::~Identity ( )

Member Function Documentation

◆ attribute()

QString Digikam::Identity::attribute ( const QString &  att) const

Attribute value accessor.

◆ attributesMap()

QMultiMap< QString, QString > Digikam::Identity::attributesMap ( ) const

Attributes map accessor.

Referenced by Digikam::FaceDb::updateIdentity().

◆ id()

◆ isNull()

◆ operator=()

Identity & Digikam::Identity::operator= ( const Identity other)

◆ operator==()

bool Digikam::Identity::operator== ( const Identity other) const

◆ setAttribute()

void Digikam::Identity::setAttribute ( const QString &  att,
const QString &  val 
)

◆ setAttributesMap()

void Digikam::Identity::setAttributesMap ( const QMultiMap< QString, QString > &  attributes)

◆ setId()


The documentation for this class was generated from the following files: