29class DeleteJobPrivate :
public JobPrivate
32 DeleteJobPrivate(
Session *session,
const QString &name) : JobPrivate(session,
name) { }
33 ~DeleteJobPrivate() { }
39using namespace KIMAP2;
41DeleteJob::DeleteJob(
Session *session)
42 : Job(*new DeleteJobPrivate(session,
"Delete"))
46DeleteJob::~DeleteJob()
50void DeleteJob::doStart()
53 d->sendCommand(
"DELETE",
'\"' + KIMAP2::encodeImapFolderName(d->mailBox.toUtf8()) +
'\"');
56void DeleteJob::handleResponse(
const Message &response)
60 if (!response.content.isEmpty() &&
61 d->tags.contains(response.content.first().toString())) {
62 if (response.content.size() >= 2 &&
63 response.content[1].toString() ==
"NO") {
64 for (
auto it = response.responseCode.cbegin(), end = response.responseCode.cend();
68 if (it->toString() ==
"NONEXISTENT") {
70 d->tags.removeAll(response.content.first().toString());
71 if (d->tags.isEmpty()) {
80 handleErrorReplies(response);
QString mailBox() const
The mailbox that will be deleted.
void setMailBox(const QString &mailBox)
Set the mailbox to delete.
QString name(GameStandardAction id)
This file is part of the IMAP support library and defines the RfcCodecs class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:56:35 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.