KGAPI2::People::AgeRangeType
#include <agerangetype.h>
Public Types | |
enum class | AgeRange { AGE_RANGE_UNSPECIFIED , LESS_THAN_EIGHTEEN , EIGHTEEN_TO_TWENTY , TWENTY_ONE_OR_OLDER } |
Public Member Functions | |
AgeRangeType () | |
AgeRangeType (AgeRangeType &&) noexcept | |
AgeRangeType (const AgeRangeType &) | |
~AgeRangeType () | |
AgeRangeType::AgeRange | ageRange () const |
FieldMetadata | metadata () const |
bool | operator!= (const AgeRangeType &) const |
AgeRangeType & | operator= (AgeRangeType &&) noexcept |
AgeRangeType & | operator= (const AgeRangeType &) |
bool | operator== (const AgeRangeType &) const |
void | setAgeRange (AgeRangeType::AgeRange value) |
void | setMetadata (const FieldMetadata &value) |
QJsonValue | toJSON () const |
Static Public Member Functions | |
static AgeRangeType | fromJSON (const QJsonObject &obj) |
static QList< AgeRangeType > | fromJSONArray (const QJsonArray &data) |
Detailed Description
Member Enumeration Documentation
◆ AgeRange
|
strong |
Enumerator | |
---|---|
AGE_RANGE_UNSPECIFIED | Unspecified. |
LESS_THAN_EIGHTEEN | Younger than eighteen. |
EIGHTEEN_TO_TWENTY | Between eighteen and twenty. |
TWENTY_ONE_OR_OLDER | Twenty-one and older. |
Definition at line 34 of file agerangetype.h.
Constructor & Destructor Documentation
◆ AgeRangeType()
|
explicit |
Constructs a new AgeRangeType.
Definition at line 46 of file agerangetype.cpp.
◆ ~AgeRangeType()
|
default |
Destructor.
Member Function Documentation
◆ ageRange()
|
nodiscard |
The age range.
Definition at line 67 of file agerangetype.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 86 of file agerangetype.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 129 of file agerangetype.cpp.
◆ metadata()
|
nodiscard |
Metadata about the age range.
Definition at line 76 of file agerangetype.cpp.
◆ operator!=()
bool KGAPI2::People::AgeRangeType::operator!= | ( | const AgeRangeType & | other | ) | const |
Definition at line 62 of file agerangetype.cpp.
◆ operator==()
bool KGAPI2::People::AgeRangeType::operator== | ( | const AgeRangeType & | other | ) | const |
Definition at line 57 of file agerangetype.cpp.
◆ setAgeRange()
void KGAPI2::People::AgeRangeType::setAgeRange | ( | AgeRangeType::AgeRange | value | ) |
Sets value of the ageRange property.
Definition at line 72 of file agerangetype.cpp.
◆ setMetadata()
void KGAPI2::People::AgeRangeType::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 81 of file agerangetype.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 107 of file agerangetype.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.