• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.5 API Reference
  • KDE Home
  • Contact Us
 

akonadi

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

#include <itemcopyjob.h>

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

List of all members.

Public Member Functions

 ItemCopyJob (const Item &item, const Collection &target, QObject *parent=0)
 ItemCopyJob (const Item::List &items, const Collection &target, QObject *parent=0)
 ~ItemCopyJob ()

Protected Member Functions

void doStart ()

Detailed Description

Job that copies a set of items to a target collection in the Akonadi storage.

The job can be used to copy one or several Item objects to another collection.

Example:

 Akonadi::Item::List items = ...
 Akonadi::Collection collection = ...

 Akonadi::ItemCopyJob *job = new Akonadi::ItemCopyJob( items, collection );
 connect( job, SIGNAL( result( KJob* ) ), SLOT( jobFinished( KJob* ) ) );

 ...

 MyClass::jobFinished( KJob *job )
 {
   if ( job->error() )
     qDebug() << "Error occurred";
   else
     qDebug() << "Items copied successfully";
 }
Author:
Volker Krause <vkrause@kde.org>

Constructor & Destructor Documentation

Akonadi::ItemCopyJob::ItemCopyJob ( const Item &  item,
const Collection &  target,
QObject *  parent = 0 
)

Creates a new item copy job.

Parameters:
itemThe item to copy.
targetThe target collection.
parentThe parent object.
Akonadi::ItemCopyJob::ItemCopyJob ( const Item::List &  items,
const Collection &  target,
QObject *  parent = 0 
)

Creates a new item copy job.

Parameters:
itemsA list of items to copy.
targetThe target collection.
parentThe parent object.
ItemCopyJob::~ItemCopyJob ( )

Destroys the item copy job.

Definition at line 58 of file itemcopyjob.cpp.


Member Function Documentation

void Akonadi::ItemCopyJob::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.


The documentation for this class was generated from the following files:
  • itemcopyjob.h
  • itemcopyjob.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:25:22 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.8.5 API Reference

Skip menu "kdepimlibs-4.8.5 API Reference"
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal