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;
84 #include "myrightsjob.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue Dec 11 2012 12:12:47 by
doxygen 1.8.1.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.