KGAPI2::People::Location
#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 |
Location & | operator= (const Location &) |
Location & | operator= (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< Location > | fromJSONArray (const QJsonArray &data) |
Detailed Description
Constructor & Destructor Documentation
◆ Location()
|
explicit |
Constructs a new Location.
Definition at line 56 of file people/location.cpp.
◆ ~Location()
|
default |
Destructor.
Member Function Documentation
◆ buildingId()
|
nodiscard |
The building identifier.
Definition at line 95 of file people/location.cpp.
◆ current()
|
nodiscard |
Whether the location is the current location.
Definition at line 113 of file people/location.cpp.
◆ deskCode()
|
nodiscard |
The individual desk location.
Definition at line 77 of file people/location.cpp.
◆ floor()
|
nodiscard |
The floor name or number.
Definition at line 86 of file people/location.cpp.
◆ floorSection()
|
nodiscard |
The floor section in floor_name
.
Definition at line 140 of file people/location.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 150 of file people/location.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 169 of file people/location.cpp.
◆ metadata()
|
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()
|
nodiscard |
Definition at line 183 of file people/location.cpp.
◆ type()
|
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()
|
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:
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.