akonadi
20 #include "tagdeletejob.h"
22 #include "protocolhelper_p.h"
26 struct Akonadi::TagDeleteJobPrivate :
public JobPrivate
33 Tag::List mTagsToRemove;
36 TagDeleteJob::TagDeleteJob(
const Akonadi::Tag &tag, QObject *parent)
37 :
Job(new TagDeleteJobPrivate(this), parent)
40 d->mTagsToRemove << tag;
43 TagDeleteJob::TagDeleteJob(
const Tag::List &tags, QObject *parent)
44 :
Job(new TagDeleteJobPrivate(this), parent)
47 d->mTagsToRemove = tags;
50 void TagDeleteJob::doStart()
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.
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jan 20 2022 00:00:00 by
doxygen 1.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.