akonadi/kmime
20 #include "movecommand_p.h"
23 #include <akonadi/itemmovejob.h>
24 #include <akonadi/itemdeletejob.h>
26 MoveCommand::MoveCommand(
const Akonadi::Collection &destFolder,
31 mDestFolder = destFolder;
35 void MoveCommand::execute()
37 if (mMessages.isEmpty()) {
41 if (mDestFolder.isValid()) {
42 Akonadi::ItemMoveJob *job =
new Akonadi::ItemMoveJob(mMessages, mDestFolder,
this);
43 connect(job, SIGNAL(result(KJob*)),
this, SLOT(slotMoveResult(KJob*)));
45 Akonadi::ItemDeleteJob *job =
new Akonadi::ItemDeleteJob(mMessages,
this);
46 connect(job, SIGNAL(result(KJob*)),
this, SLOT(slotMoveResult(KJob*)));
50 void MoveCommand::slotMoveResult(KJob *job)
54 Util::showJobError(job);
61 #include "moc_movecommand_p.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:24 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.