Kgapi
contactgroup.cpp
37 return formattedName == other.formattedName && memberCount == other.memberCount && etag == other.etag && groupType == other.groupType
38 && clientData == other.clientData && name == other.name && metadata == other.metadata && resourceName == other.resourceName
186 // Output only -> PeopleUtils::addValueToJsonObjectIfValid(obj, "formattedName", d->formattedName);
192 PeopleUtils::addValueToJsonObjectIfValid(obj, "groupType", QStringLiteral("GROUP_TYPE_UNSPECIFIED"));
195 PeopleUtils::addValueToJsonObjectIfValid(obj, "groupType", QStringLiteral("USER_CONTACT_GROUP"));
198 PeopleUtils::addValueToJsonObjectIfValid(obj, "groupType", QStringLiteral("SYSTEM_CONTACT_GROUP"));
203 std::transform(d->clientData.cbegin(), d->clientData.cend(), std::back_inserter(arr), [](const auto &val) {
209 // Output only -> PeopleUtils::addValueToJsonObjectIfValid(obj, "metadata", d->metadata.toJSON());
214 std::transform(d->memberResourceNames.cbegin(), d->memberResourceNames.cend(), std::back_inserter(arr), [](const auto &val) {
The metadata about a contact group.
Definition contactgroupmetadata.h:28
QString resourceName() const
The resource name for the contact group, assigned by the server.
Definition contactgroup.cpp:134
void setClientData(const QList< GroupClientData > &value)
Sets value of the clientData property.
Definition contactgroup.cpp:101
void removeGroupClientData(const GroupClientData &value)
Removes the given value from the list of clientData if it exists.
Definition contactgroup.cpp:111
QString name() const
The contact group name set by the group owner or a system provided name for system groups.
Definition contactgroup.cpp:121
void setResourceName(const QString &value)
Sets value of the resourceName property.
Definition contactgroup.cpp:139
void addGroupClientData(const GroupClientData &value)
Appends the given value to the list of clientData.
Definition contactgroup.cpp:106
Arbitrary client data that is populated by clients.
Definition groupclientdata.h:33
bool isEmpty() const const
QJsonValue value(QLatin1StringView key) const const
QJsonArray toArray() const const
int toInt(int defaultValue) const const
QJsonObject toObject() const const
QString toString() const const
const_iterator cbegin() const const
const_iterator cend() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.