KIMAP

deleteacljob.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Andras Mantia <[email protected]>
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 
16 namespace KIMAP
17 {
18 class DeleteAclJobPrivate : public AclJobBasePrivate
19 {
20 public:
21  DeleteAclJobPrivate(Session *session, const QString &name)
22  : AclJobBasePrivate(session, name)
23  {
24  }
25  ~DeleteAclJobPrivate()
26  {
27  }
28 };
29 }
30 
31 using namespace KIMAP;
32 
33 DeleteAclJob::DeleteAclJob(Session *session)
34  : AclJobBase(session)
35 {
37  d->m_name = i18n("DeleteAclJob");
38 }
39 
40 DeleteAclJob::~DeleteAclJob()
41 {
42 }
43 
44 void DeleteAclJob::doStart()
45 {
47 
48  d->tags << d->sessionInternal()->sendCommand("DELETEACL", '\"' + KIMAP::encodeImapFolderName(d->mailBox.toUtf8()) + "\" \"" + d->id);
49 }
50 
51 void DeleteAclJob::setIdentifier(const QByteArray &identifier)
52 {
54  d->setIdentifier(identifier);
55 }
56 
58 {
60  return d->identifier();
61 }
62 
63 #include "moc_deleteacljob.cpp"
void setIdentifier(const QByteArray &identifier)
Sets the identifier to remove.
Base class for jobs that operate on mailbox ACLs.
Definition: acljobbase.h:29
QByteArray identifier()
The identifier that will be removed.
QString i18n(const char *text, const TYPE &arg...)
Removes an identifier from the ACL of a mailbox.
Definition: deleteacljob.h:33
const char * name(StandardAction id)
Provides handlers for various RFC/MIME encodings.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 03:51:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.