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
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 223 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 272 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 307 of file pastehelper.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:05 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:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.