KGAPI2::People::Relation
#include <relation.h>
Public Member Functions | |
| Relation () | |
| Relation (const Relation &) | |
| Relation (Relation &&) noexcept | |
| ~Relation () | |
| QString | formattedType () const |
| FieldMetadata | metadata () const |
| bool | operator!= (const Relation &) const |
| Relation & | operator= (const Relation &) |
| Relation & | operator= (Relation &&) noexcept |
| bool | operator== (const Relation &) const |
| QString | person () const |
| void | setMetadata (const FieldMetadata &value) |
| void | setPerson (const QString &value) |
| void | setType (const QString &value) |
| QJsonValue | toJSON () const |
| QString | type () const |
Static Public Member Functions | |
| static Relation | fromJSON (const QJsonObject &) |
| static QList< Relation > | fromJSONArray (const QJsonArray &data) |
Detailed Description
Constructor & Destructor Documentation
◆ Relation()
|
explicit |
Constructs a new Relation.
Definition at line 50 of file relation.cpp.
◆ ~Relation()
|
default |
Destructor.
Member Function Documentation
◆ formattedType()
|
nodiscard |
Output only.
The type of the relation translated and formatted in the viewer's account locale or the locale specified in the Accept-Language HTTP header.
Definition at line 89 of file relation.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 103 of file relation.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 118 of file relation.cpp.
◆ metadata()
|
nodiscard |
Metadata about the relation.
Definition at line 93 of file relation.cpp.
◆ operator!=()
| bool KGAPI2::People::Relation::operator!= | ( | const Relation & | other | ) | const |
Definition at line 66 of file relation.cpp.
◆ operator==()
| bool KGAPI2::People::Relation::operator== | ( | const Relation & | other | ) | const |
Definition at line 61 of file relation.cpp.
◆ person()
|
nodiscard |
The name of the other person this relation refers to.
Definition at line 80 of file relation.cpp.
◆ setMetadata()
| void KGAPI2::People::Relation::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 98 of file relation.cpp.
◆ setPerson()
| void KGAPI2::People::Relation::setPerson | ( | const QString & | value | ) |
Sets value of the person property.
Definition at line 85 of file relation.cpp.
◆ setType()
| void KGAPI2::People::Relation::setType | ( | const QString & | value | ) |
Sets value of the type property.
Definition at line 76 of file relation.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 132 of file relation.cpp.
◆ type()
|
nodiscard |
The person's relation to the other person.
The type can be custom or one of these predefined values: * spouse * child * mother * father * parent * brother * sister * friend * relative * domesticPartner * manager * assistant * referredBy * partner
Definition at line 71 of file relation.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:03:45 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.