KGAPI2::People::Biography
#include <biography.h>
Public Types | |
enum class | ContentType { CONTENT_TYPE_UNSPECIFIED , TEXT_PLAIN , TEXT_HTML } |
Public Member Functions | |
Biography () | |
Biography (Biography &&) noexcept | |
Biography (const Biography &) | |
~Biography () | |
Biography::ContentType | contentType () const |
FieldMetadata | metadata () const |
bool | operator!= (const Biography &) const |
Biography & | operator= (Biography &&) noexcept |
Biography & | operator= (const Biography &) |
bool | operator== (const Biography &) const |
void | setContentType (Biography::ContentType value) |
void | setMetadata (const FieldMetadata &value) |
void | setValue (const QString &value) |
QJsonValue | toJSON () const |
QString | value () const |
Static Public Member Functions | |
static Biography | fromJSON (const QJsonObject &obj) |
static QList< Biography > | fromJSONArray (const QJsonArray &data) |
Detailed Description
Member Enumeration Documentation
◆ ContentType
|
strong |
Enumerator | |
---|---|
CONTENT_TYPE_UNSPECIFIED | Unspecified. |
TEXT_PLAIN | Plain text. |
TEXT_HTML | HTML text. |
Definition at line 36 of file biography.h.
Constructor & Destructor Documentation
◆ Biography()
|
explicit |
Constructs a new Biography.
Definition at line 49 of file biography.cpp.
◆ ~Biography()
|
default |
Destructor.
Member Function Documentation
◆ contentType()
|
nodiscard |
The content type of the biography.
Definition at line 79 of file biography.cpp.
◆ fromJSON()
|
staticnodiscard |
Definition at line 98 of file biography.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 121 of file biography.cpp.
◆ metadata()
|
nodiscard |
Metadata about the biography.
Definition at line 70 of file biography.cpp.
◆ operator!=()
bool KGAPI2::People::Biography::operator!= | ( | const Biography & | other | ) | const |
Definition at line 65 of file biography.cpp.
◆ operator==()
bool KGAPI2::People::Biography::operator== | ( | const Biography & | other | ) | const |
Definition at line 60 of file biography.cpp.
◆ setContentType()
void KGAPI2::People::Biography::setContentType | ( | Biography::ContentType | value | ) |
Sets value of the contentType property.
Definition at line 84 of file biography.cpp.
◆ setMetadata()
void KGAPI2::People::Biography::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 75 of file biography.cpp.
◆ setValue()
void KGAPI2::People::Biography::setValue | ( | const QString & | value | ) |
Sets value of the value property.
Definition at line 93 of file biography.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 135 of file biography.cpp.
◆ value()
|
nodiscard |
The short biography.
Definition at line 88 of file biography.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.