File indexing completed on 2024-05-12 05:17:12
0001 /* 0002 SPDX-FileCopyrightText: 2009 Andras Mantia <amantia@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "deleteacljob.h" 0008 0009 #include <KLocalizedString> 0010 0011 #include "acljobbase_p.h" 0012 #include "response_p.h" 0013 #include "rfccodecs.h" 0014 #include "session_p.h" 0015 0016 namespace KIMAP 0017 { 0018 class DeleteAclJobPrivate : public AclJobBasePrivate 0019 { 0020 public: 0021 DeleteAclJobPrivate(Session *session, const QString &name) 0022 : AclJobBasePrivate(session, name) 0023 { 0024 } 0025 ~DeleteAclJobPrivate() 0026 { 0027 } 0028 }; 0029 } 0030 0031 using namespace KIMAP; 0032 0033 DeleteAclJob::DeleteAclJob(Session *session) 0034 : AclJobBase(session) 0035 { 0036 Q_D(DeleteAclJob); 0037 d->m_name = i18n("DeleteAclJob"); 0038 } 0039 0040 DeleteAclJob::~DeleteAclJob() 0041 { 0042 } 0043 0044 void DeleteAclJob::doStart() 0045 { 0046 Q_D(DeleteAclJob); 0047 0048 d->tags << d->sessionInternal()->sendCommand("DELETEACL", '\"' + KIMAP::encodeImapFolderName(d->mailBox.toUtf8()) + "\" \"" + d->id); 0049 } 0050 0051 void DeleteAclJob::setIdentifier(const QByteArray &identifier) 0052 { 0053 Q_D(DeleteAclJob); 0054 d->setIdentifier(identifier); 0055 } 0056 0057 QByteArray DeleteAclJob::identifier() 0058 { 0059 Q_D(DeleteAclJob); 0060 return d->identifier(); 0061 } 0062 0063 #include "moc_deleteacljob.cpp"