KGAPI2::People::UserDefined
#include <userdefined.h>
Public Member Functions | |
UserDefined () | |
UserDefined (const UserDefined &) | |
UserDefined (UserDefined &&) noexcept | |
~UserDefined () | |
QString | key () const |
FieldMetadata | metadata () const |
bool | operator!= (const UserDefined &) const |
UserDefined & | operator= (const UserDefined &) |
UserDefined & | operator= (UserDefined &&) noexcept |
bool | operator== (const UserDefined &) const |
void | setKey (const QString &value) |
void | setMetadata (const FieldMetadata &value) |
void | setValue (const QString &value) |
QJsonValue | toJSON () const |
QString | value () const |
Static Public Member Functions | |
static UserDefined | fromJSON (const QJsonObject &) |
static QList< UserDefined > | fromJSONArray (const QJsonArray &data) |
Detailed Description
Arbitrary user data that is populated by the end users.
- Since
- 5.23.0
Definition at line 33 of file userdefined.h.
Constructor & Destructor Documentation
◆ UserDefined()
|
explicit |
Constructs a new UserDefined.
Definition at line 49 of file userdefined.cpp.
◆ ~UserDefined()
|
default |
Destructor.
Member Function Documentation
◆ fromJSON()
|
staticnodiscard |
Definition at line 98 of file userdefined.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 112 of file userdefined.cpp.
◆ key()
|
nodiscard |
The end user specified key of the user defined data.
Definition at line 79 of file userdefined.cpp.
◆ metadata()
|
nodiscard |
Metadata about the user defined data.
Definition at line 88 of file userdefined.cpp.
◆ operator!=()
bool KGAPI2::People::UserDefined::operator!= | ( | const UserDefined & | other | ) | const |
Definition at line 65 of file userdefined.cpp.
◆ operator==()
bool KGAPI2::People::UserDefined::operator== | ( | const UserDefined & | other | ) | const |
Definition at line 60 of file userdefined.cpp.
◆ setKey()
void KGAPI2::People::UserDefined::setKey | ( | const QString & | value | ) |
Sets value of the key property.
Definition at line 84 of file userdefined.cpp.
◆ setMetadata()
void KGAPI2::People::UserDefined::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 93 of file userdefined.cpp.
◆ setValue()
void KGAPI2::People::UserDefined::setValue | ( | const QString & | value | ) |
Sets value of the value property.
Definition at line 75 of file userdefined.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 126 of file userdefined.cpp.
◆ value()
|
nodiscard |
The end user specified value of the user defined data.
Definition at line 70 of file userdefined.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.