KIMAP Library
20#include "expungejob.h"
22#include <KDE/KLocalizedString>
31 class ExpungeJobPrivate :
public JobPrivate
34 ExpungeJobPrivate( Session *session,
const QString& name ) : JobPrivate( session, name ) { }
35 ~ExpungeJobPrivate() { }
44ExpungeJob::ExpungeJob( Session *session )
45 : Job( *new ExpungeJobPrivate( session, i18n(
"Expunge" ) ) )
49ExpungeJob::~ExpungeJob()
53void ExpungeJob::doStart()
56 d->tags << d->sessionInternal()->sendCommand(
"EXPUNGE" );
59void ExpungeJob::handleResponse(
const Message &response )
63 if ( handleErrorReplies( response ) == NotHandled ) {
64 if ( response.content.size() >= 2 ) {
65 QByteArray code = response.content[2].toString();
66 if ( code ==
"EXPUNGE" ) {
68 QByteArray s = response.content[1].toString();
70 int id = s.toInt( &ok );
72 d->items.append(
id );
79 kDebug() <<
"Unhandled response: " << response.toString().constData();
Expunges the deleted messages in the selected mailbox.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.