KGAPI2::People::Membership
#include <membership.h>
Public Member Functions | |
Membership () | |
Membership (const Membership &) | |
Membership (const MembershipDefinition &definition) | |
Membership (Membership &&) noexcept | |
~Membership () | |
ContactGroupMembership | contactGroupMembership () const |
DomainMembership | domainMembership () const |
FieldMetadata | metadata () const |
bool | operator!= (const Membership &) const |
Membership & | operator= (const Membership &) |
Membership & | operator= (Membership &&) noexcept |
bool | operator== (const Membership &) const |
void | setContactGroupMembership (const ContactGroupMembership &value) |
void | setMetadata (const FieldMetadata &value) |
QJsonValue | toJSON () const |
Static Public Member Functions | |
static Membership | fromJSON (const QJsonObject &obj) |
static QList< Membership > | fromJSONArray (const QJsonArray &data) |
Detailed Description
A person's membership in a group.
Only contact group memberships can be modified.
- Since
- 5.23.0
Definition at line 35 of file membership.h.
Constructor & Destructor Documentation
◆ Membership() [1/2]
|
explicit |
Constructs a new Membership.
Definition at line 59 of file membership.cpp.
◆ Membership() [2/2]
KGAPI2::People::Membership::Membership | ( | const MembershipDefinition & | definition | ) |
Definition at line 64 of file membership.cpp.
◆ ~Membership()
|
default |
Destructor.
Member Function Documentation
◆ contactGroupMembership()
|
nodiscard |
The contact group membership.
Definition at line 92 of file membership.cpp.
◆ domainMembership()
|
nodiscard |
◆ fromJSON()
|
staticnodiscard |
Definition at line 111 of file membership.cpp.
◆ fromJSONArray()
|
staticnodiscard |
Definition at line 131 of file membership.cpp.
◆ metadata()
|
nodiscard |
Metadata about the membership.
Definition at line 101 of file membership.cpp.
◆ operator!=()
bool KGAPI2::People::Membership::operator!= | ( | const Membership & | other | ) | const |
Definition at line 83 of file membership.cpp.
◆ operator==()
bool KGAPI2::People::Membership::operator== | ( | const Membership & | other | ) | const |
Definition at line 78 of file membership.cpp.
◆ setContactGroupMembership()
void KGAPI2::People::Membership::setContactGroupMembership | ( | const ContactGroupMembership & | value | ) |
Sets value of the contactGroupMembership property.
Definition at line 97 of file membership.cpp.
◆ setMetadata()
void KGAPI2::People::Membership::setMetadata | ( | const FieldMetadata & | value | ) |
Sets value of the metadata property.
Definition at line 106 of file membership.cpp.
◆ toJSON()
|
nodiscard |
Definition at line 145 of file membership.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.