summaryrefslogtreecommitdiff
path: root/kimap/expungejob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kimap/expungejob.cpp')
-rw-r--r--kimap/expungejob.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/kimap/expungejob.cpp b/kimap/expungejob.cpp
index 63bed80..8da8285 100644
--- a/kimap/expungejob.cpp
+++ b/kimap/expungejob.cpp
@@ -19,8 +19,8 @@
#include "expungejob.h"
-#include <KDE/KLocalizedString>
-#include <KDE/KDebug>
+#include <klocale.h>
+#include <kdebug.h>
#include "job_p.h"
#include "message_p.h"
@@ -31,7 +31,7 @@ namespace KIMAP
class ExpungeJobPrivate : public JobPrivate
{
public:
- ExpungeJobPrivate( Session *session, const QString& name ) : JobPrivate( session, name ) { }
+ ExpungeJobPrivate( Session *session, const QString& name ) : JobPrivate(session, name) { }
~ExpungeJobPrivate() { }
#if 0
QList< int > items;
@@ -42,7 +42,7 @@ namespace KIMAP
using namespace KIMAP;
ExpungeJob::ExpungeJob( Session *session )
- : Job( *new ExpungeJobPrivate( session, i18n( "Expunge" ) ) )
+ : Job( *new ExpungeJobPrivate(session, i18n("Expunge")) )
{
}
@@ -52,7 +52,7 @@ ExpungeJob::~ExpungeJob()
void ExpungeJob::doStart()
{
- Q_D( ExpungeJob );
+ Q_D(ExpungeJob);
d->tags << d->sessionInternal()->sendCommand( "EXPUNGE" );
}
@@ -60,26 +60,25 @@ void ExpungeJob::handleResponse( const Message &response )
{
// Q_D(ExpungeJob);
- if ( handleErrorReplies( response ) == NotHandled ) {
+ if (handleErrorReplies(response) == NotHandled) {
if ( response.content.size() >= 2 ) {
QByteArray code = response.content[2].toString();
- if ( code == "EXPUNGE" ) {
+ if (code == "EXPUNGE") {
#if 0
QByteArray s = response.content[1].toString();
bool ok = true;
- int id = s.toInt( &ok );
- if ( ok ) {
- d->items.append( id );
+ int id = s.toInt(&ok);
+ if (ok) {
+ d->items.append(id);
}
//TODO error handling
#endif
return;
}
}
- kDebug() << "Unhandled response: " << response.toString().constData();
+ qDebug() << "Unhandled response: " << response.toString().constData();
}
}
#include "expungejob.moc"
-