KIMAP

deleteacljob.cpp
1/*
2 SPDX-FileCopyrightText: 2009 Andras Mantia <amantia@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "deleteacljob.h"
8
9#include <KLocalizedString>
10
11#include "acljobbase_p.h"
12#include "response_p.h"
13#include "rfccodecs.h"
14#include "session_p.h"
15
16namespace KIMAP
17{
18class DeleteAclJobPrivate : public AclJobBasePrivate
19{
20public:
21 DeleteAclJobPrivate(Session *session, const QString &name)
22 : AclJobBasePrivate(session, name)
23 {
24 }
25 ~DeleteAclJobPrivate()
26 {
27 }
28};
29}
30
31using namespace KIMAP;
32
33DeleteAclJob::DeleteAclJob(Session *session)
34 : AclJobBase(session)
35{
37 d->m_name = i18n("DeleteAclJob");
38}
39
40DeleteAclJob::~DeleteAclJob()
41{
42}
43
44void DeleteAclJob::doStart()
45{
47
48 d->tags << d->sessionInternal()->sendCommand("DELETEACL", '\"' + KIMAP::encodeImapFolderName(d->mailBox.toUtf8()) + "\" \"" + d->id);
49}
50
52{
54 d->setIdentifier(identifier);
55}
56
58{
60 return d->identifier();
61}
62
63#include "moc_deleteacljob.cpp"
Base class for jobs that operate on mailbox ACLs.
Definition acljobbase.h:30
Removes an identifier from the ACL of a mailbox.
void setIdentifier(const QByteArray &identifier)
Sets the identifier to remove.
QByteArray identifier()
The identifier that will be removed.
QString i18n(const char *text, const TYPE &arg...)
QString name(StandardAction id)
This file is part of the IMAP support library and defines the RfcCodecs class.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.