KGAPI2::People::Nickname
#include <nickname.h>
Public Types | |
enum class | Type { DEFAULT , MAIDEN_NAME , INITIALS , GPLUS , OTHER_NAME , ALTERNATE_NAME , SHORT_NAME } |
Public Member Functions | |
Nickname () | |
Nickname (const Nickname &) | |
Nickname (Nickname &&) noexcept | |
~Nickname () | |
FieldMetadata | metadata () const |
bool | operator!= (const Nickname &) const |
Nickname & | operator= (const Nickname &) |
Nickname & | operator= (Nickname &&) noexcept |
bool | operator== (const Nickname &) const |
void | setMetadata (const FieldMetadata &value) |
void | setType (Nickname::Type value) |
void | setValue (const QString &value) |
QJsonValue | toJSON () const |
Nickname::Type | type () const |
QString | value () const |
Static Public Member Functions | |
static Nickname | fromJSON (const QJsonObject &) |
static QList< Nickname > | fromJSONArray (const QJsonArray &data) |
Detailed Description
Member Enumeration Documentation
◆ Type
|
strong |
Definition at line 36 of file nickname.h.
Constructor & Destructor Documentation
◆ Nickname()
|
explicit |
Constructs a new Nickname.
Definition at line 49 of file nickname.cpp.
◆ ~Nickname()
|
default |
Destructor.
Member Function Documentation
◆ fromJSON()
|
staticnodiscard |
Definition at line 98 of file nickname.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 128 of file nickname.cpp.
◆ metadata()
|
nodiscard |
Metadata about the nickname.
Definition at line 88 of file nickname.cpp.
◆ operator!=()
bool KGAPI2::People::Nickname::operator!= | ( | const Nickname & | other | ) | const |
Definition at line 65 of file nickname.cpp.
◆ operator==()
bool KGAPI2::People::Nickname::operator== | ( | const Nickname & | other | ) | const |
Definition at line 60 of file nickname.cpp.
◆ setMetadata()
void KGAPI2::People::Nickname::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 93 of file nickname.cpp.
◆ setType()
void KGAPI2::People::Nickname::setType | ( | Nickname::Type | value | ) |
Sets value of the type property.
Definition at line 84 of file nickname.cpp.
◆ setValue()
void KGAPI2::People::Nickname::setValue | ( | const QString & | value | ) |
Sets value of the value property.
Definition at line 75 of file nickname.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 142 of file nickname.cpp.
◆ type()
|
nodiscard |
The type of the nickname.
Definition at line 79 of file nickname.cpp.
◆ value()
|
nodiscard |
The nickname.
Definition at line 70 of file nickname.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.