akonadi
20#include "collectionselectjob_p.h"
23#include "protocol_p.h"
24#include <akonadi/private/imapparser_p.h>
26#include <QtCore/QDebug>
27#include <KLocalizedString>
30class Akonadi::CollectionSelectJobPrivate :
public JobPrivate
38 QString jobDebuggingString()
const {
39 if (mCollection.id() > 0) {
40 return QString::number(mCollection.id());
42 return QString::fromLatin1(
"RemoteID ") + QString::number(mCollection.id());
50 :
Job(new CollectionSelectJobPrivate(this), parent)
54 d->mCollection = collection;
65 if (d->mCollection.isValid()) {
66 QByteArray command(d->newTag() +
" SELECT SILENT ");
67 d->writeData(command + QByteArray::number(d->mCollection.id()) +
'\n');
68 }
else if (!d->mCollection.remoteId().isEmpty()) {
69 QByteArray command(d->newTag() +
" " AKONADI_CMD_RID
" SELECT SILENT ");
70 d->writeData(command + ImapParser::quote(d->mCollection.remoteId().toUtf8()) +
'\n');
73 setErrorText(i18n(
"Invalid collection specified"));
78#include "moc_collectionselectjob_p.cpp"
CollectionSelectJob(const Collection &collection, QObject *parent=0)
Creates a new collection select job.
virtual ~CollectionSelectJob()
Destroys this job.
void doStart()
This method must be reimplemented in the concrete jobs.
Represents a collection of PIM items.
Base class for all actions in the Akonadi storage.
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by
doxygen 1.9.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.