KIMAP Library
20 #include "setacljob.h"
22 #include <KDE/KLocale>
25 #include "acljobbase_p.h"
26 #include "message_p.h"
27 #include "session_p.h"
32 class SetAclJobPrivate :
public AclJobBasePrivate
35 SetAclJobPrivate( Session *session,
const QString& name ) : AclJobBasePrivate(session, name) {}
36 ~SetAclJobPrivate() { }
40 using namespace KIMAP;
42 SetAclJob::SetAclJob( Session *session )
43 :
AclJobBase(*new SetAclJobPrivate(session, i18n(
"SetAcl")))
48 SetAclJob::~SetAclJob()
52 void SetAclJob::doStart()
56 if (d->modifier == Add) {
58 }
else if (d->modifier == Remove) {
61 d->tags << d->sessionInternal()->sendCommand(
"SETACL",
'\"' + KIMAP::encodeImapFolderName( d->mailBox.toUtf8() ) +
"\" \"" + d->id +
"\" \"" + r +
'\"');
67 d->setRights(modifier, rights);
73 d->setIdentifier(identifier);
79 return d->identifier();
82 #include "setacljob.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jan 5 2013 19:44:10 by
doxygen 1.8.1.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.