KGAPI2::People::Location

Search for usage in LXR

KGAPI2::People::Location Class Reference

#include <location.h>

Public Member Functions

 Location ()
 
 Location (const Location &)
 
 Location (Location &&) noexcept
 
 ~Location ()
 
QString buildingId () const
 
bool current () const
 
QString deskCode () const
 
QString floor () const
 
QString floorSection () const
 
FieldMetadata metadata () const
 
bool operator!= (const Location &) const
 
Locationoperator= (const Location &)
 
Locationoperator= (Location &&) noexcept
 
bool operator== (const Location &) const
 
void setBuildingId (const QString &value)
 
void setCurrent (bool value)
 
void setDeskCode (const QString &value)
 
void setFloor (const QString &value)
 
void setFloorSection (const QString &value)
 
void setMetadata (const FieldMetadata &value)
 
void setType (const QString &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
QString type () const
 
QString value () const
 

Static Public Member Functions

static Location fromJSON (const QJsonObject &)
 
static QList< LocationfromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's location.

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

Definition at line 33 of file people/location.h.

Constructor & Destructor Documentation

◆ Location()

KGAPI2::People::Location::Location ( )
explicit

Constructs a new Location.

Definition at line 56 of file people/location.cpp.

◆ ~Location()

KGAPI2::People::Location::~Location ( )
default

Destructor.

Member Function Documentation

◆ buildingId()

QString KGAPI2::People::Location::buildingId ( ) const
nodiscard

The building identifier.

Definition at line 95 of file people/location.cpp.

◆ current()

bool KGAPI2::People::Location::current ( ) const
nodiscard

Whether the location is the current location.

Definition at line 113 of file people/location.cpp.

◆ deskCode()

QString KGAPI2::People::Location::deskCode ( ) const
nodiscard

The individual desk location.

Definition at line 77 of file people/location.cpp.

◆ floor()

QString KGAPI2::People::Location::floor ( ) const
nodiscard

The floor name or number.

Definition at line 86 of file people/location.cpp.

◆ floorSection()

QString KGAPI2::People::Location::floorSection ( ) const
nodiscard

The floor section in floor_name.

Definition at line 140 of file people/location.cpp.

◆ fromJSON()

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

Definition at line 150 of file people/location.cpp.

◆ fromJSONArray()

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

Definition at line 169 of file people/location.cpp.

◆ metadata()

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

Metadata about the location.

Definition at line 131 of file people/location.cpp.

◆ operator!=()

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

Definition at line 72 of file people/location.cpp.

◆ operator==()

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

Definition at line 67 of file people/location.cpp.

◆ setBuildingId()

void KGAPI2::People::Location::setBuildingId ( const QString & value)

Sets value of the buildingId property.

Definition at line 100 of file people/location.cpp.

◆ setCurrent()

void KGAPI2::People::Location::setCurrent ( bool value)

Sets value of the current property.

Definition at line 118 of file people/location.cpp.

◆ setDeskCode()

void KGAPI2::People::Location::setDeskCode ( const QString & value)

Sets value of the deskCode property.

Definition at line 82 of file people/location.cpp.

◆ setFloor()

void KGAPI2::People::Location::setFloor ( const QString & value)

Sets value of the floor property.

Definition at line 91 of file people/location.cpp.

◆ setFloorSection()

void KGAPI2::People::Location::setFloorSection ( const QString & value)

Sets value of the floorSection property.

Definition at line 145 of file people/location.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 136 of file people/location.cpp.

◆ setType()

void KGAPI2::People::Location::setType ( const QString & value)

Sets value of the type property.

Definition at line 109 of file people/location.cpp.

◆ setValue()

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

Sets value of the value property.

Definition at line 127 of file people/location.cpp.

◆ toJSON()

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

Definition at line 183 of file people/location.cpp.

◆ type()

QString KGAPI2::People::Location::type ( ) const
nodiscard

The type of the location.

The type can be custom or one of these predefined values: * desk * grewUp

Definition at line 104 of file people/location.cpp.

◆ value()

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

The free-form value of the location.

Definition at line 122 of file people/location.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.