Kgapi
personmetadata.cpp
36 return linkedPeopleResourceNames == other.linkedPeopleResourceNames && objectType == other.objectType
37 && previousResourceNames == other.previousResourceNames && deleted == other.deleted && sources == other.sources;
123 for(const auto &jsonPrevResName : obj.value(QStringLiteral("previousResourceNames")).toArray()) {
127 for(const auto &jsonLinkedPeopleResName : obj.value(QStringLiteral("linkedPeopleResourceNames")).toArray()) {
146 std::transform(d->linkedPeopleResourceNames.cbegin(), d->linkedPeopleResourceNames.cend(), std::back_inserter(arr), [](const auto &val) {
155 PeopleUtils::addValueToJsonObjectIfValid(obj, "objectType", QStringLiteral("OBJECT_TYPE_UNSPECIFIED"));
167 std::transform(d->previousResourceNames.cbegin(), d->previousResourceNames.cend(), std::back_inserter(arr), [](const auto &val) {
176 std::transform(d->sources.cbegin(), d->sources.cend(), std::back_inserter(arr), [](const auto &val) {
void addSource(const Source &value)
Appends the given value to the list of sources.
Definition personmetadata.cpp:99
void removeSource(const Source &value)
Removes the given value from the list of sources if it exists.
Definition personmetadata.cpp:104
void setSources(const QList< Source > &value)
Sets value of the sources property.
Definition personmetadata.cpp:94
bool isEmpty() const const
bool isEmpty() const const
QJsonValue value(QLatin1StringView key) const const
bool toBool(bool defaultValue) const const
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
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.