Akonadi::EntityDeletedAttribute
#include <entitydeletedattribute.h>
Public Member Functions | |
EntityDeletedAttribute () | |
~EntityDeletedAttribute () override | |
EntityDeletedAttribute * | clone () const override |
void | deserialize (const QByteArray &data) override |
Collection | restoreCollection () const |
QString | restoreResource () const |
QByteArray | serialized () const override |
void | setRestoreCollection (const Collection &col) |
QByteArray | type () const override |
Public Member Functions inherited from Akonadi::Attribute | |
virtual | ~Attribute () |
Additional Inherited Members | |
Public Types inherited from Akonadi::Attribute | |
using | List = QList<Attribute *> |
Protected Member Functions inherited from Akonadi::Attribute | |
Attribute (const Attribute &)=default | |
Detailed Description
An Attribute that marks that an entity was marked as deleted.
This class represents the attribute of all hidden items. The hidden items shouldn't be displayed in UI applications (unless in some kind of "debug" mode).
Example:
- See also
- Akonadi::Attribute
- Since
- 4.8
Definition at line 34 of file entitydeletedattribute.h.
Constructor & Destructor Documentation
◆ EntityDeletedAttribute()
|
explicit |
Creates a new entity deleted attribute.
Definition at line 25 of file entitydeletedattribute.cpp.
◆ ~EntityDeletedAttribute()
|
overridedefault |
Destroys the entity deleted attribute.
Member Function Documentation
◆ clone()
|
overridevirtual |
Reimplemented from Attribute.
Implements Akonadi::Attribute.
Definition at line 60 of file entitydeletedattribute.cpp.
◆ deserialize()
|
overridevirtual |
Reimplemented from Attribute.
Implements Akonadi::Attribute.
Definition at line 79 of file entitydeletedattribute.cpp.
◆ restoreCollection()
|
nodiscard |
Returns the original collection of an item that has been moved to trash using a TrashJob.
Definition at line 45 of file entitydeletedattribute.cpp.
◆ restoreResource()
|
nodiscard |
Returns the resource of the restoreCollection.
Definition at line 50 of file entitydeletedattribute.cpp.
◆ serialized()
|
nodiscardoverridevirtual |
Reimplemented from Attribute.
Implements Akonadi::Attribute.
Definition at line 68 of file entitydeletedattribute.cpp.
◆ setRestoreCollection()
void EntityDeletedAttribute::setRestoreCollection | ( | const Collection & | col | ) |
Sets the collection used to restore items which have been moved to trash using a TrashJob If the Resource is set on the collection, the resource root will be used as fallback during the restore operation.
Definition at line 32 of file entitydeletedattribute.cpp.
◆ type()
|
nodiscardoverridevirtual |
Reimplemented from Attribute.
Implements Akonadi::Attribute.
Definition at line 55 of file entitydeletedattribute.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.