• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • PasteHelper
Functions
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
mimeDataThe pasted/dropped data.
collectionThe 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
mimeDataThe pasted/dropped data.
collectionThe target collection.
copyIndicate 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
mimeDataThe pasted/dropped data.
collectionThe target collection.
actionThe 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

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal