• Skip to content
  • Skip to link menu
KDE 4.8 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • TrashRestoreJob
Public Member Functions | Protected Member Functions
Akonadi::TrashRestoreJob Class Reference

#include <trashrestorejob.h>

Inheritance diagram for Akonadi::TrashRestoreJob:
Inheritance graph
[legend]

List of all members.

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* ) ) );
Author:
Christian Mollekopf <chrigi_1@fastmail.fm>
Since:
4.8

Definition at line 56 of file trashrestorejob.h.


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 file:
  • trashrestorejob.h

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal