akonadi/kmime
20#include "movecommand_p.h"
23#include <akonadi/itemmovejob.h>
24#include <akonadi/itemdeletejob.h>
26MoveCommand::MoveCommand(
const Akonadi::Collection &destFolder,
27 const QList<Akonadi::Item> &msgList,
31 mDestFolder = destFolder;
35void 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*)));
50void 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-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.