# class CollectionCopyJob

###

Module | akonadi
Namespace | Akonadi
Class | CollectionCopyJob
Inherits | Akonadi::Job

Job that copies a collection into another collection in the Akonadi storage.

This job copies a single collection into a specified target collection.

    Akonadi.Collection source = ...
    Akonadi.Collection target = ...

    Akonadi.CollectionCopyJob *job = new Akonadi.CollectionCopyJob( source, target );

    if ( job->exec() )
    qDebug() << "Copied successfully";
    else
    qDebug() << "Error occurred";

Author Volker Krause <vkrause@kde.org>

### methods

- CollectionCopyJob (source, target, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  source | Akonadi.Collection |
  target | Akonadi.Collection |
  parent | QObject | 0

  Creates a new collection copy job to copy the given source collection into target.

  source - The collection to copy.

  target - The target collection.

  parent - The parent object.

- doStart ( )

  returns Nothing