KGAPI2::People::Occupation

Search for usage in LXR

KGAPI2::People::Occupation Class Reference

#include <occupation.h>

Public Member Functions

 Occupation ()
 
 Occupation (const Occupation &)
 
 Occupation (Occupation &&) noexcept
 
 ~Occupation ()
 
FieldMetadata metadata () const
 
bool operator!= (const Occupation &) const
 
Occupationoperator= (const Occupation &)
 
Occupationoperator= (Occupation &&) noexcept
 
bool operator== (const Occupation &) const
 
void setMetadata (const FieldMetadata &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
QString value () const
 

Static Public Member Functions

static Occupation fromJSON (const QJsonObject &)
 
static QList< OccupationfromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's occupation.

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

Definition at line 33 of file occupation.h.

Constructor & Destructor Documentation

◆ Occupation()

KGAPI2::People::Occupation::Occupation ( )
explicit

Constructs a new Occupation.

Definition at line 48 of file occupation.cpp.

◆ ~Occupation()

KGAPI2::People::Occupation::~Occupation ( )
default

Destructor.

Member Function Documentation

◆ fromJSON()

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

Definition at line 88 of file occupation.cpp.

◆ fromJSONArray()

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

Definition at line 101 of file occupation.cpp.

◆ metadata()

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

Metadata about the occupation.

Definition at line 78 of file occupation.cpp.

◆ operator!=()

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

Definition at line 64 of file occupation.cpp.

◆ operator==()

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

Definition at line 59 of file occupation.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 83 of file occupation.cpp.

◆ setValue()

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

Sets value of the value property.

Definition at line 74 of file occupation.cpp.

◆ toJSON()

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

Definition at line 115 of file occupation.cpp.

◆ value()

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

The occupation; for example, carpenter.

Definition at line 69 of file occupation.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 Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.