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
272 KJob *PasteHelper::paste(const QMimeData *mimeData, const Collection &collection, bool copy, Session *session)
307 KJob *PasteHelper::pasteUriList(const QMimeData *mimeData, const Collection &destination, Qt::DropAction action, Session *session)
Item item() const
Returns the item that contains the fetched payload part.
Definition: partfetcher.cpp:179
Rights rights() const
Returns the rights the user has on the collection.
Definition: collection.cpp:99
Collection parentCollection() const
Returns the parent collection of this object.
Definition: entity.cpp:185
Job that moves a collection in the Akonadi storage to a new parent collection.
Definition: collectionmovejob.h:50
Job that copies a set of items to a target collection in the Akonadi storage.
Definition: itemcopyjob.h:60
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
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:53
Can create new subcollections in this collection.
Definition: collection.h:92
KJob * pasteUriList(const QMimeData *mimeData, const Collection &collection, Qt::DropAction action, Session *session=0)
URI list paste/drop.
Definition: pastehelper.cpp:307
Collection::List collections() const
Returns the list of fetched collection.
Definition: collectionfetchjob.cpp:169
Only fetch the base collection.
Definition: collectionfetchjob.h:62
Can only read items or subcollection of this collection.
Definition: collection.h:87
Can create new items in this collection.
Definition: collection.h:89
Job that creates a new item in the Akonadi storage.
Definition: itemcreatejob.h:73
Job that copies a collection into another collection in the Akonadi storage.
Definition: collectioncopyjob.h:57
bool isVirtual() const
Returns whether the collection is virtual, for example a search collection.
Definition: collection.cpp:261
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
Job that moves an item into a different collection in the Akonadi storage.
Definition: itemmovejob.h:48
Base class for jobs that need to run a sequence of sub-jobs in a transaction.
Definition: transactionsequence.h:69
QStringList contentMimeTypes() const
Returns a list of possible content mimetypes, e.g.
Definition: collection.cpp:115
static Collection fromUrl(const KUrl &url)
Creates a collection from the given url.
Definition: collection.cpp:172
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Jan 19 2017 05:09:54 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Jan 19 2017 05:09:54 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.