akonadi
Akonadi::PasteHelper Namespace Reference
Detailed Description
For internal use only.
Helper methods for pasting/droping content into a collection.
- Todo:
- Use in item/collection models as well for dnd
Functions | |
bool | canPaste (const QMimeData *mimeData, const Collection &collection) |
KJob * | paste (const QMimeData *mimeData, const Collection &collection, bool copy=true) |
Function Documentation
bool Akonadi::PasteHelper::canPaste | ( | const QMimeData * | mimeData, | |
const Collection & | collection | |||
) |
Check whether the given mime data can be pasted into the given collection.
- Parameters:
-
mimeData The pasted/dropped data. collection The collection to paste/drop into.
Definition at line 40 of file pastehelper.cpp.
KJob * Akonadi::PasteHelper::paste | ( | const QMimeData * | mimeData, | |
const Collection & | collection, | |||
bool | copy = true | |||
) |
Paste/drop the given mime data into the given collection.
- Parameters:
-
mimeData The pasted/dropped data. collection The target collection. copy Indicate whether this is a copy or a move.
- Returns:
- The job performing the paste, 0 if there is nothing to paste.
Definition at line 59 of file pastehelper.cpp.