KGAPI2::People::Event
#include <event.h>
Public Member Functions | |
Event () | |
Event (const Event &) | |
Event (Event &&) noexcept | |
~Event () | |
QDate | date () const |
QString | formattedType () const |
FieldMetadata | metadata () const |
bool | operator!= (const Event &) const |
Event & | operator= (const Event &) |
Event & | operator= (Event &&) noexcept |
bool | operator== (const Event &) const |
void | setDate (const QDate &value) |
void | setMetadata (const FieldMetadata &value) |
void | setType (const QString &value) |
QJsonValue | toJSON () const |
QString | type () const |
Static Public Member Functions | |
static Event | fromJSON (const QJsonObject &obj) |
static QList< Event > | fromJSONArray (const QJsonArray &data) |
Detailed Description
Constructor & Destructor Documentation
◆ Event()
|
explicit |
Constructs a new Event.
Definition at line 50 of file people/event.cpp.
◆ ~Event()
|
default |
Destructor.
Member Function Documentation
◆ date()
|
nodiscard |
The date of the event.
Definition at line 80 of file people/event.cpp.
◆ formattedType()
|
nodiscard |
Output only.
The type of the event translated and formatted in the viewer's account locale or the Accept-Language
HTTP header locale.
Definition at line 98 of file people/event.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 103 of file people/event.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 124 of file people/event.cpp.
◆ metadata()
|
nodiscard |
Metadata about the event.
Definition at line 71 of file people/event.cpp.
◆ operator!=()
bool KGAPI2::People::Event::operator!= | ( | const Event & | other | ) | const |
Definition at line 66 of file people/event.cpp.
◆ operator==()
bool KGAPI2::People::Event::operator== | ( | const Event & | other | ) | const |
Definition at line 61 of file people/event.cpp.
◆ setDate()
void KGAPI2::People::Event::setDate | ( | const QDate & | value | ) |
Sets value of the date property.
Definition at line 85 of file people/event.cpp.
◆ setMetadata()
void KGAPI2::People::Event::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 76 of file people/event.cpp.
◆ setType()
void KGAPI2::People::Event::setType | ( | const QString & | value | ) |
Sets value of the type property.
Definition at line 94 of file people/event.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 138 of file people/event.cpp.
◆ type()
|
nodiscard |
The type of the event.
The type can be custom or one of these predefined values: * anniversary
* other
Definition at line 89 of file people/event.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.