Akonadi::EntityDeletedAttribute

Akonadi::EntityDeletedAttribute Class Reference

#include <entitydeletedattribute.h>

Inheritance diagram for Akonadi::EntityDeletedAttribute:

Public Member Functions

 EntityDeletedAttribute ()
 
 ~EntityDeletedAttribute () override
 
EntityDeletedAttributeclone () 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
typedef QList< Attribute * > List
 
- 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:

Author
Christian Mollekopf chrig[email protected][email protected][email protected]fastm[email protected]ail.[email protected]fm
See also
Akonadi::Attribute
Since
4.8

Definition at line 34 of file entitydeletedattribute.h.

Constructor & Destructor Documentation

EntityDeletedAttribute::EntityDeletedAttribute ( )

Creates a new entity deleted attribute.

Definition at line 27 of file entitydeletedattribute.cpp.

EntityDeletedAttribute::~EntityDeletedAttribute ( )
override

Destroys the entity deleted attribute.

Definition at line 33 of file entitydeletedattribute.cpp.

Member Function Documentation

EntityDeletedAttribute * EntityDeletedAttribute::clone ( ) const
overridevirtual

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 70 of file entitydeletedattribute.cpp.

void EntityDeletedAttribute::deserialize ( const QByteArray data)
overridevirtual

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 92 of file entitydeletedattribute.cpp.

Collection EntityDeletedAttribute::restoreCollection ( ) const

Returns the original collection of an item that has been moved to trash using a TrashJob.

Definition at line 52 of file entitydeletedattribute.cpp.

QString EntityDeletedAttribute::restoreResource ( ) const

Returns the resource of the restoreCollection.

Definition at line 58 of file entitydeletedattribute.cpp.

QByteArray EntityDeletedAttribute::serialized ( ) const
overridevirtual

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 79 of file entitydeletedattribute.cpp.

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 38 of file entitydeletedattribute.cpp.

QByteArray Akonadi::EntityDeletedAttribute::type ( ) const
overridevirtual

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 64 of file entitydeletedattribute.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Aug 8 2020 23:14:48 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.