akonadi
20#include "tagdeletejob.h"
22#include "protocolhelper_p.h"
26struct Akonadi::TagDeleteJobPrivate :
public JobPrivate
33 Tag::List mTagsToRemove;
36TagDeleteJob::TagDeleteJob(
const Akonadi::Tag &tag, QObject *parent)
37 :
Job(new TagDeleteJobPrivate(this), parent)
40 d->mTagsToRemove << tag;
43TagDeleteJob::TagDeleteJob(
const Tag::List &tags, QObject *parent)
44 :
Job(new TagDeleteJobPrivate(this), parent)
47 d->mTagsToRemove = tags;
53 QByteArray command = d->newTag();
55 command += ProtocolHelper::tagSetToByteArray(d->mTagsToRemove,
"TAGREMOVE");
56 }
catch (
const std::exception &e) {
58 setErrorText(QString::fromUtf8(e.what()));
64 d->writeData(command);
70 return d->mTagsToRemove;
Base class for all actions in the Akonadi storage.
Tag::List tags() const
Returns the tags passed to the constructor.
virtual void doStart()
This method must be reimplemented in the concrete jobs.
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.