akonadi
#include <trashrestorejob.h>

Public Member Functions | |
TrashRestoreJob (const Item &item, QObject *parent=0) | |
TrashRestoreJob (const Item::List &items, QObject *parent=0) | |
TrashRestoreJob (const Collection &collection, QObject *parent=0) | |
Item::List | items () const |
void | setTargetCollection (const Collection collection) |
Protected Member Functions | |
virtual void | doStart () |
Detailed Description
Job that restores entites from trash.
This job restores the given entites from trash. The EntityDeletedAttribute is removed and the item is restored to the stored restore collection.
If the stored restore collection is not available, the root collection of the original resource is used. If also this is not available, setTargetCollection has to be used to restore the item to a specific collection.
Example:
const Akonadi::Item::List items = ... TrashRestoreJob *job = new TrashRestoreJob( items ); connect( job, SIGNAL( result( KJob* ) ), this, SLOT( restoreResult( KJob* ) ) );
- Since:
- 4.8
Constructor & Destructor Documentation
Akonadi::TrashRestoreJob::TrashRestoreJob | ( | const Item & | item, |
QObject * | parent = 0 |
||
) | [explicit] |
All items need to be from the same resource.
Member Function Documentation
virtual void Akonadi::TrashRestoreJob::doStart | ( | ) | [protected, virtual] |
This method must be reimplemented in the concrete jobs.
It will be called after the job has been started and a connection to the Akonadi backend has been established.
Implements Akonadi::Job.
void Akonadi::TrashRestoreJob::setTargetCollection | ( | const Collection | collection | ) |
Sets the target collection, where the item is moved to.
If not set the item will be restored in the collection saved in the EntityDeletedAttribute.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:28 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.