KGAPI2::People::RelationshipStatus

Search for usage in LXR

KGAPI2::People::RelationshipStatus Class Reference

#include <relationshipstatus.h>

Public Member Functions

 RelationshipStatus ()
 
 RelationshipStatus (const RelationshipStatus &)
 
 RelationshipStatus (RelationshipStatus &&) noexcept
 
 ~RelationshipStatus ()
 
QString formattedValue () const
 
FieldMetadata metadata () const
 
bool operator!= (const RelationshipStatus &) const
 
RelationshipStatusoperator= (const RelationshipStatus &)
 
RelationshipStatusoperator= (RelationshipStatus &&) noexcept
 
bool operator== (const RelationshipStatus &) const
 
void setMetadata (const FieldMetadata &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
QString value () const
 

Static Public Member Functions

static RelationshipStatus fromJSON (const QJsonObject &)
 

Detailed Description

DEPRECATED: No data will be returned A person's relationship status.

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

Definition at line 31 of file relationshipstatus.h.

Constructor & Destructor Documentation

◆ RelationshipStatus()

KGAPI2::People::RelationshipStatus::RelationshipStatus ( )
explicit

Constructs a new RelationshipStatus.

Definition at line 48 of file relationshipstatus.cpp.

◆ ~RelationshipStatus()

KGAPI2::People::RelationshipStatus::~RelationshipStatus ( )
default

Destructor.

Member Function Documentation

◆ formattedValue()

QString KGAPI2::People::RelationshipStatus::formattedValue ( ) const
nodiscard

Output only.

The value of the relationship status translated and formatted in the viewer's account locale or the Accept-Language HTTP header locale.

Definition at line 78 of file relationshipstatus.cpp.

◆ fromJSON()

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

Definition at line 92 of file relationshipstatus.cpp.

◆ metadata()

FieldMetadata KGAPI2::People::RelationshipStatus::metadata ( ) const
nodiscard

Metadata about the relationship status.

Definition at line 82 of file relationshipstatus.cpp.

◆ operator!=()

bool KGAPI2::People::RelationshipStatus::operator!= ( const RelationshipStatus & other) const

Definition at line 64 of file relationshipstatus.cpp.

◆ operator==()

bool KGAPI2::People::RelationshipStatus::operator== ( const RelationshipStatus & other) const

Definition at line 59 of file relationshipstatus.cpp.

◆ setMetadata()

void KGAPI2::People::RelationshipStatus::setMetadata ( const FieldMetadata & value)

Sets value of the metadata property.

Definition at line 87 of file relationshipstatus.cpp.

◆ setValue()

void KGAPI2::People::RelationshipStatus::setValue ( const QString & value)

Sets value of the value property.

Definition at line 74 of file relationshipstatus.cpp.

◆ toJSON()

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

Definition at line 98 of file relationshipstatus.cpp.

◆ value()

QString KGAPI2::People::RelationshipStatus::value ( ) const
nodiscard

The relationship status.

The value can be custom or one of these predefined values: * single * inARelationship * engaged * married * itsComplicated * openRelationship * widowed * inDomesticPartnership * inCivilUnion

Definition at line 69 of file relationshipstatus.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.