akonadi
20 #include "itemmovejob.h"
22 #include "collection.h"
25 #include "protocolhelper_p.h"
26 #include <akonadi/private/imapparser_p.h>
27 #include "movejobimpl_p.h"
29 using namespace Akonadi;
31 class Akonadi::ItemMoveJobPrivate:
public MoveJobImpl<Item, ItemMoveJob>
34 ItemMoveJobPrivate( ItemMoveJob *parent ) : MoveJobImpl<Item, ItemMoveJob>( parent ) {}
35 Q_DECLARE_PUBLIC( ItemMoveJob )
38 ItemMoveJob::ItemMoveJob(
const Item &item,
const Collection &destination, QObject *parent) :
39 Job( new ItemMoveJobPrivate( this ), parent )
42 d->destination = destination;
43 d->objectsToMove.append( item );
46 ItemMoveJob::ItemMoveJob(
const Item::List &items,
const Collection &destination, QObject* parent) :
47 Job( new ItemMoveJobPrivate( this ), parent )
50 d->destination = destination;
51 d->objectsToMove = items;
54 ItemMoveJob::~ItemMoveJob()
58 void ItemMoveJob::doStart()
61 d->sendCommand(
"MOVE" );
67 return d->destination;
70 QList<Item> ItemMoveJob::items()
const
73 return d->objectsToMove;
76 #include "itemmovejob.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:26 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.