Akonadi
trashjob.h
21 * This job marks the given entities as trash and moves them to a given trash collection, if available.
35 * -If collection is deleted -> also subentities get collection.parentCollection as restore collection
58 * Creates a new trash job that marks @p item as trash, and moves it to the configured trash collection.
60 * If @p keepTrashInCollection is set, the item will not be moved to the configured trash collection.
70 * The items can be in different collections/resources and will still be moved to the correct trash collection.
72 * If @p keepTrashInCollection is set, the item will not be moved to the configured trash collection.
80 * Creates a new trash job that marks @p collection as trash, and moves it to the configured trash collection.
void deleteIfInTrash(bool enable)
Delete Items which are already in trash, instead of ignoring them.
Definition trashjob.cpp:345
void doStart() override
This method must be reimplemented in the concrete jobs.
Definition trashjob.cpp:351
void setTrashCollection(const Collection &trashcollection)
Moves all entities to the give collection.
Definition trashjob.cpp:333
void keepTrashInCollection(bool enable)
Ignore configured Trash collections and keep all items local.
Definition trashjob.cpp:339
TrashJob(const Item &item, QObject *parent=nullptr)
Creates a new trash job that marks item as trash, and moves it to the configured trash collection.
Definition trashjob.cpp:302
Helper integration between Akonadi and Qt.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.