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)
QByteArray data(const QString &mimeType) const
Collection::List collections() const
Returns the list of fetched collection.
Definition: collectionfetchjob.cpp:169
char at(int i) const
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
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool isEmpty() const
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
Only fetch the base collection.
Definition: collectionfetchjob.h:62
void resize(int size)
Can only read items or subcollection of this collection.
Definition: collection.h:87
int count(const T &value) const
void append(const T &value)
Collection parentCollection() const
Returns the parent collection of this object.
Definition: entity.cpp:185
Can create new items in this collection.
Definition: collection.h:89
T & first()
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
Rights rights() const
Returns the rights the user has on the collection.
Definition: collection.cpp:99
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
virtual QStringList formats() const
int size() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.