akonadi
pastehelper.cpp
84 //transactions (copy and colcopy in the server doesn't see the items retrieved into the cache and copies empty payloads).
93 boost::bind(&Entity::operator!=, boost::bind(static_cast<Collection (Item::*)() const>(&Item::parentCollection), _1), parent))
134 kDebug() << "FROM: " << sourceCollection.id() << sourceCollection.name() << sourceCollection.isVirtual();
135 kDebug() << "DEST: " << mDestCollection.id() << mDestCollection.name() << mDestCollection.isVirtual();
204 foreach (const Collection &col, mCollections) { // FIXME: remove once we have a batch job for collections as well
209 foreach (const Collection &col, mCollections) { // FIXME: remove once we have a batch job for collections as well
272KJob *PasteHelper::paste(const QMimeData *mimeData, const Collection &collection, bool copy, Session *session)
307KJob *PasteHelper::pasteUriList(const QMimeData *mimeData, const Collection &destination, Qt::DropAction action, Session *session)
Job that copies a collection into another collection in the Akonadi storage.
Definition collectioncopyjob.h:58
Job that fetches collections from the Akonadi storage.
Definition collectionfetchjob.h:54
Collection::List collections() const
Returns the list of fetched collection.
Definition collectionfetchjob.cpp:169
Job that moves a collection in the Akonadi storage to a new parent collection.
Definition collectionmovejob.h:51
static Collection fromUrl(const KUrl &url)
Creates a collection from the given url.
Definition collection.cpp:172
bool isVirtual() const
Returns whether the collection is virtual, for example a search collection.
Definition collection.cpp:261
Collection parentCollection() const
Returns the parent collection of this object.
Definition entity.cpp:185
Job that copies a set of items to a target collection in the Akonadi storage.
Definition itemcopyjob.h:61
Job that creates a new item in the Akonadi storage.
Definition itemcreatejob.h:74
Job that moves an item into a different collection in the Akonadi storage.
Definition itemmovejob.h:49
Base class for jobs that need to run a sequence of sub-jobs in a transaction.
Definition transactionsequence.h:70
void commit()
Commits the transaction as soon as all pending sub-jobs finished successfully.
Definition transactionsequence.cpp:154
KJob * paste(const QMimeData *mimeData, const Collection &collection, bool copy=true, Session *session=0)
Paste/drop the given mime data into the given collection.
Definition pastehelper.cpp:272
KJob * pasteUriList(const QMimeData *mimeData, const Collection &collection, Qt::DropAction action, Session *session=0)
URI list paste/drop.
Definition pastehelper.cpp:307
bool canPaste(const QMimeData *mimeData, const Collection &collection)
Check whether the given mime data can be pasted into the given collection.
Definition pastehelper.cpp:223
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.