KIMAP Library
20 #include "getquotajob.h"
22 #include <KDE/KLocalizedString>
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] );
QByteArray root() const
The quota root that resource limit information will be fetched for.
Base class for jobs that operate on mailbox quotas.
Gets resource limits for a quota root.
void setRoot(const QByteArray &root)
Set the quota root to get the resource limits for.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by
doxygen 1.8.18 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.