KGAPI2::People::ClientData
#include <clientdata.h>
Public Member Functions | |
| ClientData () | |
| ClientData (ClientData &&) noexcept | |
| ClientData (const ClientData &) | |
| ~ClientData () | |
| QString | key () const |
| FieldMetadata | metadata () const |
| bool | operator!= (const ClientData &) const |
| ClientData & | operator= (ClientData &&) noexcept |
| ClientData & | operator= (const ClientData &) |
| bool | operator== (const ClientData &) 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 ClientData | fromJSON (const QJsonObject &obj) |
| static QList< ClientData > | fromJSONArray (const QJsonArray &data) |
Detailed Description
Arbitrary client data that is populated by clients.
Duplicate keys and values are allowed.
- Since
- 5.23.0
Definition at line 34 of file clientdata.h.
Constructor & Destructor Documentation
◆ ClientData()
|
explicit |
Constructs a new ClientData.
Definition at line 49 of file clientdata.cpp.
◆ ~ClientData()
|
default |
Destructor.
Member Function Documentation
◆ fromJSON()
|
staticnodiscard |
Definition at line 98 of file clientdata.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 112 of file clientdata.cpp.
◆ key()
|
nodiscard |
The client specified key of the client data.
Definition at line 79 of file clientdata.cpp.
◆ metadata()
|
nodiscard |
Metadata about the client data.
Definition at line 70 of file clientdata.cpp.
◆ operator!=()
| bool KGAPI2::People::ClientData::operator!= | ( | const ClientData & | other | ) | const |
Definition at line 65 of file clientdata.cpp.
◆ operator==()
| bool KGAPI2::People::ClientData::operator== | ( | const ClientData & | other | ) | const |
Definition at line 60 of file clientdata.cpp.
◆ setKey()
| void KGAPI2::People::ClientData::setKey | ( | const QString & | value | ) |
Sets value of the key property.
Definition at line 84 of file clientdata.cpp.
◆ setMetadata()
| void KGAPI2::People::ClientData::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 75 of file clientdata.cpp.
◆ setValue()
| void KGAPI2::People::ClientData::setValue | ( | const QString & | value | ) |
Sets value of the value property.
Definition at line 93 of file clientdata.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 126 of file clientdata.cpp.
◆ value()
|
nodiscard |
The client specified value of the client data.
Definition at line 88 of file clientdata.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:03:45 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.