summaryrefslogtreecommitdiff
path: root/kimap/capabilitiesjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kimap/capabilitiesjob.cpp')
-rw-r--r--kimap/capabilitiesjob.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/kimap/capabilitiesjob.cpp b/kimap/capabilitiesjob.cpp
index a9b52dc..b07e1b9 100644
--- a/kimap/capabilitiesjob.cpp
+++ b/kimap/capabilitiesjob.cpp
@@ -19,7 +19,7 @@
#include "capabilitiesjob.h"
-#include <KDE/KLocalizedString>
+#include <klocale.h>
#include "job_p.h"
#include "message_p.h"
@@ -30,7 +30,7 @@ namespace KIMAP
class CapabilitiesJobPrivate : public JobPrivate
{
public:
- CapabilitiesJobPrivate( Session *session, const QString& name ) : JobPrivate( session, name ) { }
+ CapabilitiesJobPrivate( Session *session, const QString& name ) : JobPrivate(session, name) { }
~CapabilitiesJobPrivate() { }
QStringList capabilities;
@@ -40,7 +40,7 @@ namespace KIMAP
using namespace KIMAP;
CapabilitiesJob::CapabilitiesJob( Session *session )
- : Job( *new CapabilitiesJobPrivate( session, i18n( "Capabilities" ) ) )
+ : Job( *new CapabilitiesJobPrivate(session, i18n("Capabilities")) )
{
}
@@ -50,30 +50,29 @@ CapabilitiesJob::~CapabilitiesJob()
QStringList CapabilitiesJob::capabilities() const
{
- Q_D( const CapabilitiesJob );
+ Q_D(const CapabilitiesJob);
return d->capabilities;
}
void CapabilitiesJob::doStart()
{
- Q_D( CapabilitiesJob );
+ Q_D(CapabilitiesJob);
d->tags << d->sessionInternal()->sendCommand( "CAPABILITY" );
}
void CapabilitiesJob::handleResponse( const Message &response )
{
- Q_D( CapabilitiesJob );
- if ( handleErrorReplies( response ) == NotHandled ) {
- if ( response.content.size() >= 2 &&
- response.content[1].toString() == "CAPABILITY" ) {
- for ( int i = 2; i < response.content.size(); ++i ) {
+ Q_D(CapabilitiesJob);
+ if (handleErrorReplies(response) == NotHandled) {
+ if ( response.content.size() >= 2
+ && response.content[1].toString()=="CAPABILITY" ) {
+ for (int i=2; i<response.content.size(); ++i) {
d->capabilities << response.content[i].toString().toUpper();
}
- emit capabilitiesReceived( d->capabilities );
+ emit capabilitiesReceived(d->capabilities);
}
}
}
#include "capabilitiesjob.moc"
-