akonadi
20 #include "itemdeletejob.h"
22 #include "collection.h"
23 #include "collectionselectjob_p.h"
26 #include "protocolhelper_p.h"
28 #include <akonadi/private/imapparser_p.h>
29 #include <akonadi/private/imapset_p.h>
30 #include <akonadi/private/protocol_p.h>
34 using namespace Akonadi;
36 class Akonadi::ItemDeleteJobPrivate :
public JobPrivate
44 void selectResult( KJob *job );
52 void ItemDeleteJobPrivate::selectResult( KJob *job )
57 const QByteArray command = newTag() +
" " AKONADI_CMD_ITEMDELETE
" 1:*\n";
62 :
Job( new ItemDeleteJobPrivate( this ), parent )
70 :
Job( new ItemDeleteJobPrivate( this ), parent )
78 :
Job( new ItemDeleteJobPrivate( this ), parent )
82 d->mCollection = collection;
100 if ( !d->mItems.isEmpty() ) {
101 QByteArray command = d->newTag();
104 }
catch (
const std::exception &e ) {
106 setErrorText( QString::fromUtf8( e.what() ) );
111 d->writeData( command );
114 connect( job, SIGNAL(result(KJob*)), SLOT(selectResult(KJob*)) );
119 #include "moc_itemdeletejob.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:38 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.