• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

Akonadi::PasteHelper

Akonadi::PasteHelper Namespace Reference


Functions

bool canPaste (const QMimeData *mimeData, const Collection &collection)
KJob * paste (const QMimeData *mimeData, const Collection &collection, bool copy=true)

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 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.

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal