akonadi
entity.h
Definition entity_p.h:40
void removeAttribute(const QByteArray &name)
Removes and deletes the attribute of the given type name.
Definition entity.cpp:142
Entity & operator=(const Entity &other)
Assigns the other to this entity and returns a reference to this entity.
Definition entity.cpp:113
Collection parentCollection() const
Returns the parent collection of this object.
Definition entity.cpp:185
Attribute::List attributes() const
Returns a list of all attributes of the entity.
Definition entity.cpp:153
T * attribute(CreateOption option)
Returns the attribute of the requested type.
Definition entity.h:215
void removeAttribute()
Removes and deletes the attribute of the requested type.
Definition entity.h:255
bool hasAttribute(const QByteArray &name) const
Returns true if the entity has an attribute of the given type name, false otherwise.
Definition entity.cpp:148
T * attribute() const
Returns the attribute of the requested type or 0 if it is not available.
Definition entity.h:237
bool operator==(const Entity &other) const
Returns whether the entity's id equals the id of the other entity.
Definition entity.cpp:102
void setParentCollection(const Collection &parent)
Set the parent collection of this object.
Definition entity.cpp:194
bool operator!=(const Entity &other) const
Returns whether the entity's id does not equal the id of the other entity.
Definition entity.cpp:108
void setRemoteRevision(const QString &revision)
Sets the remote revision of the entity.
Definition entity.cpp:87
bool hasAttribute() const
Returns whether the entity has an attribute of the requested type.
Definition entity.h:264
Attribute * attribute(const QByteArray &name) const
Returns the attribute of the given type name if available, 0 otherwise.
Definition entity.cpp:167
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.