ItemCopyJob Class Reference
from PyKDE4.akonadi import *
Inherits: Akonadi.Job → KCompositeJob → KJob → QObject
Namespace: Akonadi
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 ); if ( job->exec() ) qDebug() << "Items copied successfully"; else qDebug() << "Error occurred";
Methods | |
__init__ (self, Akonadi.Item item, Akonadi.Collection target, QObject parent=0) | |
__init__ (self, Akonadi.Item.List items, Akonadi.Collection target, QObject parent=0) | |
doStart (self) |
Method Documentation
__init__ | ( | self, | ||
Akonadi.Item | item, | |||
Akonadi.Collection | target, | |||
QObject | parent=0 | |||
) |
Creates a new item copy job.
- Parameters:
-
item The item to copy. target The target collection. parent The parent object.
__init__ | ( | self, | ||
Akonadi.Item.List | items, | |||
Akonadi.Collection | target, | |||
QObject | parent=0 | |||
) |
Creates a new item copy job.
- Parameters:
-
items A list of items to copy. target The target collection. parent The parent object.
doStart | ( | self ) |