summaryrefslogtreecommitdiff
path: root/kimap/getquotajob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kimap/getquotajob.cpp')
-rw-r--r--kimap/getquotajob.cpp31
1 files changed, 16 insertions, 15 deletions
diff --git a/kimap/getquotajob.cpp b/kimap/getquotajob.cpp
index 35d901e..9d1efb0 100644
--- a/kimap/getquotajob.cpp
+++ b/kimap/getquotajob.cpp
@@ -19,8 +19,8 @@
#include "getquotajob.h"
-#include <KDE/KLocalizedString>
-#include <KDE/KDebug>
+#include <klocale.h>
+#include <kdebug.h>
#include "quotajobbase_p.h"
#include "message_p.h"
@@ -31,7 +31,7 @@ namespace KIMAP
class GetQuotaJobPrivate : public QuotaJobBasePrivate
{
public:
- GetQuotaJobPrivate( Session *session, const QString& name ) : QuotaJobBasePrivate( session, name ) { }
+ GetQuotaJobPrivate( Session *session, const QString& name ) : QuotaJobBasePrivate(session, name) { }
~GetQuotaJobPrivate() { }
QByteArray root;
@@ -41,7 +41,7 @@ namespace KIMAP
using namespace KIMAP;
GetQuotaJob::GetQuotaJob( Session *session )
- : QuotaJobBase( *new GetQuotaJobPrivate( session, i18n( "GetQuota" ) ) )
+ : QuotaJobBase( *new GetQuotaJobPrivate(session, i18n("GetQuota")) )
{
}
@@ -51,33 +51,34 @@ GetQuotaJob::~GetQuotaJob()
void GetQuotaJob::doStart()
{
- Q_D( GetQuotaJob );
+ Q_D(GetQuotaJob);
//XXX: [alexmerry, 2010-07-24]: should d->root be quoted properly?
- d->tags << d->sessionInternal()->sendCommand( "GETQUOTA", '\"' + d->root + '\"' );
+ d->tags << d->sessionInternal()->sendCommand( "GETQUOTA", '\"' + d->root + '\"');
}
void GetQuotaJob::handleResponse(const Message &response)
{
- Q_D( GetQuotaJob );
- if ( handleErrorReplies( response ) == NotHandled ) {
- if ( response.content.size() >= 4 &&
- response.content[1].toString() == "QUOTA" ) {
- d->quota = d->readQuota( response.content[3] );
+ Q_D(GetQuotaJob);
+ if (handleErrorReplies(response) == NotHandled) {
+ if ( response.content.size() >= 4
+ && response.content[1].toString() == "QUOTA" ) {
+ d->quota = d->readQuota(response.content[3]);
}
}
}
void GetQuotaJob::setRoot(const QByteArray& root)
{
- Q_D( GetQuotaJob );
+ Q_D(GetQuotaJob);
+
d->root = root;
}
QByteArray GetQuotaJob::root() const
{
- Q_D( const GetQuotaJob );
+ Q_D(const GetQuotaJob);
+
return d->root;
}
-#include "getquotajob.moc"
-
+#include "getquotajob.moc" \ No newline at end of file