KGAPI2::People::Gender
#include <gender.h>
Public Member Functions | |
Gender () | |
Gender (const Gender &) | |
Gender (Gender &&) noexcept | |
~Gender () | |
QString | addressMeAs () const |
QString | formattedValue () const |
FieldMetadata | metadata () const |
bool | operator!= (const Gender &) const |
Gender & | operator= (const Gender &) |
Gender & | operator= (Gender &&) noexcept |
bool | operator== (const Gender &) const |
void | setAddressMeAs (const QString &value) |
void | setMetadata (const FieldMetadata &value) |
void | setValue (const QString &value) |
QJsonValue | toJSON () const |
QString | value () const |
Static Public Member Functions | |
static Gender | fromJSON (const QJsonObject &) |
static QList< Gender > | fromJSONArray (const QJsonArray &data) |
Detailed Description
A person's gender.
- Since
- 5.23.0
Constructor & Destructor Documentation
◆ Gender()
|
explicit |
Constructs a new Gender.
Definition at line 50 of file gender.cpp.
◆ ~Gender()
|
default |
Destructor.
Member Function Documentation
◆ addressMeAs()
|
nodiscard |
Free form text field for pronouns that should be used to address the person.
Common values are: * he
/him
* she
/her
* they
/them
Definition at line 93 of file gender.cpp.
◆ formattedValue()
|
nodiscard |
Output only.
The value of the gender translated and formatted in the viewer's account locale or the Accept-Language
HTTP header locale. Unspecified or custom value are not localized.
Definition at line 80 of file gender.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 103 of file gender.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 118 of file gender.cpp.
◆ metadata()
|
nodiscard |
Metadata about the gender.
Definition at line 71 of file gender.cpp.
◆ operator!=()
bool KGAPI2::People::Gender::operator!= | ( | const Gender & | other | ) | const |
Definition at line 66 of file gender.cpp.
◆ operator==()
bool KGAPI2::People::Gender::operator== | ( | const Gender & | other | ) | const |
Definition at line 61 of file gender.cpp.
◆ setAddressMeAs()
void KGAPI2::People::Gender::setAddressMeAs | ( | const QString & | value | ) |
Sets value of the addressMeAs property.
Definition at line 98 of file gender.cpp.
◆ setMetadata()
void KGAPI2::People::Gender::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 76 of file gender.cpp.
◆ setValue()
void KGAPI2::People::Gender::setValue | ( | const QString & | value | ) |
Sets value of the value property.
Definition at line 89 of file gender.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 132 of file gender.cpp.
◆ value()
|
nodiscard |
The gender for the person.
The gender can be custom or one of these predefined values: * male
* female
* unspecified
Definition at line 84 of file gender.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.