KGAPI2::People::Birthday
#include <birthday.h>
Public Member Functions | |
Birthday () | |
Birthday (Birthday &&) noexcept | |
Birthday (const Birthday &) | |
~Birthday () | |
QDate | date () const |
FieldMetadata | metadata () const |
bool | operator!= (const Birthday &) const |
Birthday & | operator= (Birthday &&) noexcept |
Birthday & | operator= (const Birthday &) |
bool | operator== (const Birthday &) const |
void | setDate (const QDate &value) |
void | setMetadata (const FieldMetadata &value) |
void | setText (const QString &value) |
QString | text () const |
QJsonValue | toJSON () const |
Static Public Member Functions | |
static Birthday | fromJSON (const QJsonObject &obj) |
static QList< Birthday > | fromJSONArray (const QJsonArray &data) |
Detailed Description
A person's birthday.
At least one of the date
and text
fields are specified. The date
and text
fields typically represent the same date, but are not guaranteed to.
- Since
- 5.23.0
Definition at line 36 of file birthday.h.
Constructor & Destructor Documentation
◆ Birthday()
|
explicit |
Constructs a new Birthday.
Definition at line 48 of file birthday.cpp.
◆ ~Birthday()
|
default |
Destructor.
Member Function Documentation
◆ date()
|
nodiscard |
The date of the birthday.
Definition at line 87 of file birthday.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 97 of file birthday.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 116 of file birthday.cpp.
◆ metadata()
|
nodiscard |
Metadata about the birthday.
Definition at line 78 of file birthday.cpp.
◆ operator!=()
bool KGAPI2::People::Birthday::operator!= | ( | const Birthday & | other | ) | const |
Definition at line 64 of file birthday.cpp.
◆ operator==()
bool KGAPI2::People::Birthday::operator== | ( | const Birthday & | other | ) | const |
Definition at line 59 of file birthday.cpp.
◆ setDate()
void KGAPI2::People::Birthday::setDate | ( | const QDate & | value | ) |
Sets value of the date property.
Definition at line 92 of file birthday.cpp.
◆ setMetadata()
void KGAPI2::People::Birthday::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 83 of file birthday.cpp.
◆ setText()
void KGAPI2::People::Birthday::setText | ( | const QString & | value | ) |
Sets value of the text property.
Definition at line 74 of file birthday.cpp.
◆ text()
|
nodiscard |
A free-form string representing the user's birthday.
Definition at line 69 of file birthday.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 131 of file birthday.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.