20#ifndef AKONADI_LINKJOBIMPL_P_H
21#define AKONADI_LINKJOBIMPL_P_H
23#include "collection.h"
27#include "protocolhelper_p.h"
30#include <KLocalizedString>
35template <
typename LinkJob>
class LinkJobImpl :
public JobPrivate
38 LinkJobImpl(
Job *parent)
43 inline void sendCommand(
const char *asapCommand)
46 if (objectsToLink.isEmpty()) {
50 if (!destination.isValid() && destination.remoteId().isEmpty()) {
52 q->setErrorText(i18n(
"No valid destination specified"));
57 QByteArray command =
newTag();
60 }
catch (
const std::exception &e) {
62 q->setErrorText(QString::fromUtf8(e.what()));
69 }
catch (
const std::exception &e) {
71 q->setErrorText(QString::fromUtf8(e.what()));
80 Item::List objectsToLink;
Represents a collection of PIM items.
QList< Collection > List
Describes a list of collections.
void writeData(const QByteArray &data)
Sends raw data to the backend.
QByteArray newTag()
Returns a new unique command tag for communication with the backend.
Base class for all actions in the Akonadi storage.
Job that links items inside the Akonadi storage.
static QByteArray entitySetToByteArray(const QList< T > &_objects, const QByteArray &command)
Converts the given set of items into a protocol representation.
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.