Akonadi
pastehelper.cpp
73 // transactions (copy and colcopy in the server doesn't see the items retrieved into the cache and copies empty payloads).
116 qCDebug(AKONADICORE_LOG) << "FROM: " << sourceCollection.id() << sourceCollection.name() << sourceCollection.isVirtual();
117 qCDebug(AKONADICORE_LOG) << "DEST: " << mDestCollection.id() << mDestCollection.name() << mDestCollection.isVirtual();
186 for (const Collection &col : std::as_const(mCollections)) { // FIXME: remove once we have a batch job for collections as well
191 for (const Collection &col : std::as_const(mCollections)) { // FIXME: remove once we have a batch job for collections as well
203bool PasteHelper::canPaste(const QMimeData *mimeData, const Collection &collection, Qt::DropAction action)
254KJob *PasteHelper::paste(const QMimeData *mimeData, const Collection &collection, Qt::DropAction action, Session *session)
290KJob *PasteHelper::pasteUriList(const QMimeData *mimeData, const Collection &destination, Qt::DropAction action, Session *session)
311 item.setParentCollection(Collection(query.queryItemValue(QStringLiteral("parent")).toLongLong()));
Job that copies a collection into another collection in the Akonadi storage.
Definition collectioncopyjob.h:48
Job that fetches collections from the Akonadi storage.
Definition collectionfetchjob.h:39
Job that moves a collection in the Akonadi storage to a new parent collection.
Definition collectionmovejob.h:36
static Collection fromUrl(const QUrl &url)
Creates a collection from the given url.
Definition collection.cpp:267
@ CanLinkItem
Can create links to existing items in this virtual collection.
Definition collection.h:97
Job that copies a set of items to a target collection in the Akonadi storage.
Definition itemcopyjob.h:48
Job that creates a new item in the Akonadi storage.
Definition itemcreatejob.h:61
Job that moves an item into a different collection in the Akonadi storage.
Definition itemmovejob.h:35
Collection parentCollection() const
Returns the parent collection of this object.
Definition item.cpp:161
Base class for jobs that need to run a sequence of sub-jobs in a transaction.
Definition transactionsequence.h:55
void commit()
Commits the transaction as soon as all pending sub-jobs finished successfully.
Definition transactionsequence.cpp:156
void finished(KJob *job)
Helper integration between Akonadi and Qt.
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
KCALUTILS_EXPORT QString mimeType()
QCA_EXPORT void setProperty(const QString &name, const QVariant &value)
char at(qsizetype i) const const
bool isEmpty() const const
void resize(qsizetype newSize, char c)
qsizetype size() const const
void append(QList< T > &&value)
const_iterator cbegin() const const
const_iterator cend() const const
T & first()
bool isEmpty() const const
QByteArray data(const QString &mimeType) const const
virtual QStringList formats() const const
bool hasUrls() const const
QList< QUrl > urls() const const
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
T qobject_cast(QObject *object)
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
DropAction
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.