summaryrefslogtreecommitdiff
path: root/kimap/setacljob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kimap/setacljob.cpp')
-rw-r--r--kimap/setacljob.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kimap/setacljob.cpp b/kimap/setacljob.cpp
index bb3841d..dea3d81 100644
--- a/kimap/setacljob.cpp
+++ b/kimap/setacljob.cpp
@@ -19,8 +19,8 @@
#include "setacljob.h"
-#include <KDE/KLocalizedString>
-#include <KDE/KDebug>
+#include <klocale.h>
+#include <kdebug.h>
#include "acljobbase_p.h"
#include "message_p.h"
@@ -32,7 +32,7 @@ namespace KIMAP
class SetAclJobPrivate : public AclJobBasePrivate
{
public:
- SetAclJobPrivate( Session *session, const QString& name ) : AclJobBasePrivate( session, name ) {}
+ SetAclJobPrivate( Session *session, const QString& name ) : AclJobBasePrivate(session, name) {}
~SetAclJobPrivate() { }
};
}
@@ -40,8 +40,9 @@ namespace KIMAP
using namespace KIMAP;
SetAclJob::SetAclJob( Session *session )
- : AclJobBase( *new SetAclJobPrivate( session, i18n( "SetAcl" ) ) )
+ : AclJobBase(*new SetAclJobPrivate(session, i18n("SetAcl")))
{
+
}
SetAclJob::~SetAclJob()
@@ -50,33 +51,32 @@ SetAclJob::~SetAclJob()
void SetAclJob::doStart()
{
- Q_D( SetAclJob );
+ Q_D(SetAclJob);
QByteArray r = Acl::rightsToString( d->rightList );
- if ( d->modifier == Add ) {
- r.prepend( '+' );
- } else if ( d->modifier == Remove ) {
- r.prepend( '-' );
+ if (d->modifier == Add) {
+ r.prepend('+');
+ } else if (d->modifier == Remove) {
+ r.prepend('-');
}
- d->tags << d->sessionInternal()->sendCommand( "SETACL", '\"' + KIMAP::encodeImapFolderName( d->mailBox.toUtf8() ) + "\" \"" + d->id + "\" \"" + r + '\"' );
+ d->tags << d->sessionInternal()->sendCommand( "SETACL", '\"' + KIMAP::encodeImapFolderName( d->mailBox.toUtf8() ) + "\" \"" + d->id + "\" \"" + r +'\"');
}
void SetAclJob::setRights(AclModifier modifier, Acl::Rights rights)
{
- Q_D( SetAclJob );
- d->setRights( modifier, rights );
+ Q_D(SetAclJob);
+ d->setRights(modifier, rights);
}
void SetAclJob::setIdentifier( const QByteArray &identifier )
{
- Q_D( SetAclJob );
- d->setIdentifier( identifier );
+ Q_D(SetAclJob);
+ d->setIdentifier(identifier);
}
QByteArray SetAclJob::identifier()
{
- Q_D( SetAclJob );
+ Q_D(SetAclJob);
return d->identifier();
}
#include "setacljob.moc"
-