akonadi
Akonadi::PasteHelper Namespace Reference
Functions | |
| bool | canPaste (const QMimeData *mimeData, const Collection &collection) |
| KJob * | paste (const QMimeData *mimeData, const Collection &collection, bool copy=true, Session *session=0) |
| KJob * | pasteUriList (const QMimeData *mimeData, const Collection &collection, Qt::DropAction action, Session *session=0) |
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
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 42 of file pastehelper.cpp.
| KJob * Akonadi::PasteHelper::paste | ( | const QMimeData * | mimeData, | |
| const Collection & | collection, | |||
| bool | copy = true, |
|||
| Session * | session = 0 | |||
| ) |
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 87 of file pastehelper.cpp.
| KJob * Akonadi::PasteHelper::pasteUriList | ( | const QMimeData * | mimeData, | |
| const Collection & | collection, | |||
| Qt::DropAction | action, | |||
| Session * | session = 0 | |||
| ) |
URI list paste/drop.
- Parameters:
-
mimeData The pasted/dropped data. collection The target collection. action The drop action (copy/move/link).
- Returns:
- The job performing the paste, 0 if there is nothing to paste.
Definition at line 118 of file pastehelper.cpp.
KDE 4.4 API Reference