12#include "fieldmetadata.h"
13#include "peopleservice.h"
22namespace KGAPI2::People
27 explicit Private() =
default;
28 Private(
const Private &) =
default;
29 Private(Private &&) noexcept = delete;
30 Private &operator=(const Private &) = delete;
31 Private &operator=(Private &&) noexcept = delete;
34 bool operator==(const Private &other)
const
36 return metadata == other.metadata && value == other.value;
39 bool operator!=(
const Private &other)
const
41 return !(*
this == other);
44 FieldMetadata metadata{};
59bool Skill::operator==(const
Skill &other)
const
61 return *d == *other.d;
64bool Skill::operator!=(
const Skill &other)
const
66 return !(*
this == other);
95 skill.
setValue(obj.
value(QStringLiteral(
"value")).toString());
105 for(
const auto &skill : data) {
106 if(skill.isObject()) {
107 const auto objectifiedSkill = skill.toObject();
108 skills.
append(fromJSON(objectifiedSkill));
120 PeopleUtils::addValueToJsonObjectIfValid(obj,
"value", d->value);
A skill that the person has.
Skill()
Constructs a new Skill.
void setMetadata(const FieldMetadata &value)
Sets value of the metadata property.
void setValue(const QString &value)
Sets value of the value property.
FieldMetadata metadata() const
Metadata about the skill.
QString value() const
The skill; for example, underwater basket weaving.
bool isEmpty() const const
QJsonValue value(QLatin1StringView key) const const
QJsonObject toObject() const const
void append(QList< T > &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:41 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.