KIMAP Library
20 #include "myrightsjob.h"
22 #include <KDE/KLocale>
25 #include "acljobbase_p.h"
26 #include "message_p.h"
27 #include "session_p.h"
32 class MyRightsJobPrivate :
public AclJobBasePrivate
35 MyRightsJobPrivate( Session *session,
const QString& name ) : AclJobBasePrivate( session, name ), myRights( Acl::None ) {}
36 ~MyRightsJobPrivate() { }
42 using namespace KIMAP;
44 MyRightsJob::MyRightsJob( Session *session )
45 :
AclJobBase( *new MyRightsJobPrivate( session, i18n(
"MyRights" ) ) )
49 MyRightsJob::~MyRightsJob()
53 void MyRightsJob::doStart()
57 d->tags << d->sessionInternal()->sendCommand(
"MYRIGHTS",
'\"' + KIMAP::encodeImapFolderName( d->mailBox.toUtf8() ) +
'\"' );
60 void MyRightsJob::handleResponse(
const Message &response )
64 if ( handleErrorReplies( response ) == NotHandled ) {
65 if ( response.content.size() == 4 &&
66 response.content[1].toString() ==
"MYRIGHTS" ) {
75 return d->myRights & right;
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.