KIMAP Library
20 #include "getquotajob.h"
22 #include <KDE/KLocale>
25 #include "quotajobbase_p.h"
26 #include "message_p.h"
27 #include "session_p.h"
31 class GetQuotaJobPrivate :
public QuotaJobBasePrivate
34 GetQuotaJobPrivate( Session *session,
const QString& name ) : QuotaJobBasePrivate( session, name ) { }
35 ~GetQuotaJobPrivate() { }
41 using namespace KIMAP;
43 GetQuotaJob::GetQuotaJob( Session *session )
44 :
QuotaJobBase( *new GetQuotaJobPrivate( session, i18n(
"GetQuota" ) ) )
48 GetQuotaJob::~GetQuotaJob()
52 void GetQuotaJob::doStart()
56 d->tags << d->sessionInternal()->sendCommand(
"GETQUOTA",
'\"' + d->root +
'\"' );
59 void GetQuotaJob::handleResponse(
const Message &response)
62 if ( handleErrorReplies( response ) == NotHandled ) {
63 if ( response.content.size() >= 4 &&
64 response.content[1].toString() ==
"QUOTA" ) {
65 d->quota = d->readQuota( response.content[3] );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:25:16 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.