akonadi
20 #include "collectiondeletejob.h"
22 #include "collection.h"
25 #include <akonadi/private/imapparser_p.h>
28 using namespace Akonadi;
30 class Akonadi::CollectionDeleteJobPrivate :
public JobPrivate
42 :
Job( new CollectionDeleteJobPrivate( this ), parent )
46 d->mCollection = collection;
57 if ( !d->mCollection.isValid() && d->mCollection.remoteId().isEmpty() ) {
59 setErrorText( i18n(
"Invalid collection" ) );
64 if ( d->mCollection.isValid() ) {
65 d->writeData( d->newTag() +
" DELETE " + QByteArray::number( d->mCollection.id() ) +
'\n' );
67 d->writeData( d->newTag() +
" RID DELETE " + ImapParser::quote( d->mCollection.remoteId().toUtf8() ) +
'\n' );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:32 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.