KGAPI2::People::Gender

Search for usage in LXR

#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
 
Genderoperator= (const Gender &)
 
Genderoperator= (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< GenderfromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's gender.

See also
https://developers.google.com/people/api/rest/v1/people#gender
Since
5.23.0

Definition at line 33 of file gender.h.

Constructor & Destructor Documentation

◆ Gender()

KGAPI2::People::Gender::Gender ( )
explicit

Constructs a new Gender.

Definition at line 50 of file gender.cpp.

◆ ~Gender()

KGAPI2::People::Gender::~Gender ( )
default

Destructor.

Member Function Documentation

◆ addressMeAs()

QString KGAPI2::People::Gender::addressMeAs ( ) const
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()

QString KGAPI2::People::Gender::formattedValue ( ) const
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()

Gender KGAPI2::People::Gender::fromJSON ( const QJsonObject & obj)
staticnodiscard

Definition at line 103 of file gender.cpp.

◆ fromJSONArray()

QList< Gender > KGAPI2::People::Gender::fromJSONArray ( const QJsonArray & data)
staticnodiscard

Definition at line 118 of file gender.cpp.

◆ metadata()

FieldMetadata KGAPI2::People::Gender::metadata ( ) const
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()

QJsonValue KGAPI2::People::Gender::toJSON ( ) const
nodiscard

Definition at line 132 of file gender.cpp.

◆ value()

QString KGAPI2::People::Gender::value ( ) const
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:
This file is part of the KDE documentation.
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.