• Skip to content
  • Skip to link menu
KDE 4.4 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, 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.

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
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.2-20100208
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