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" ) ) )
47 SetAclJob::~SetAclJob()
51 void SetAclJob::doStart()
55 if ( d->modifier == Add ) {
57 }
else if ( d->modifier == Remove ) {
60 d->tags << d->sessionInternal()->sendCommand(
"SETACL",
'\"' + KIMAP::encodeImapFolderName( d->mailBox.toUtf8() ) +
"\" \"" + d->id +
"\" \"" + r +
'\"' );
66 d->setRights( modifier, rights );
72 d->setIdentifier( identifier );
78 return d->identifier();
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:25:17 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.