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

kabc

  • KABC
  • VCardDrag
Functions
KABC::VCardDrag Namespace Reference

Functions

bool canDecode (const QMimeData *md)
 
bool fromMimeData (const QMimeData *md, QByteArray &content)
 
bool fromMimeData (const QMimeData *md, KABC::Addressee::List &contacts)
 
bool populateMimeData (QMimeData *md, const QByteArray &content)
 
bool populateMimeData (QMimeData *md, const KABC::Addressee::List &contacts)
 

Detailed Description

Utility function for implementing drag&drop for vCards.

See the Qt drag'n'drop documentation.

Since
4.5

Function Documentation

bool KABC::VCardDrag::canDecode ( const QMimeData *  md)

Returns if drag&drop object can be decoded to vCard.

Parameters
mdthe object to check for vCard data
Returns
true if the given data object contains a vCard MIME type, otherwise false

Definition at line 69 of file vcarddrag.cpp.

bool KABC::VCardDrag::fromMimeData ( const QMimeData *  md,
QByteArray &  content 
)

Decodes the drag&drop object to vCard component content.

Parameters
mdthe object to check for vCard data
contentwhere to put the vCard data from md
Returns
true if there was data for the vCard MIME type, otherwise false
See also
canDecode()

Definition at line 74 of file vcarddrag.cpp.

bool KABC::VCardDrag::fromMimeData ( const QMimeData *  md,
KABC::Addressee::List &  contacts 
)

Decodes the MIME data md and puts the resulting vCard into contactss.

Parameters
mdthe object to check for vCard data
contactswhere to put the parsed vCards from md
Returns
true if there was data for the vCard MIME type and it could be parsed successfully, otherwise false
See also
canDecode()

Definition at line 84 of file vcarddrag.cpp.

bool KABC::VCardDrag::populateMimeData ( QMimeData *  md,
const QByteArray &  content 
)

Adds the vCard representation as data of the drag object.

Parameters
mdthe object to set the data on
contentthe vCard data to set
Returns
Always true

Definition at line 52 of file vcarddrag.cpp.

bool KABC::VCardDrag::populateMimeData ( QMimeData *  md,
const KABC::Addressee::List &  contacts 
)

Adds the vCard representation as data of the drag object.

Parameters
mdthe object to set the data on
contactslist of Addressee objects to serialize to vCard
Returns
true if serializing of the given list worked, otherwise false
See also
VCardConverter::createVCards()

Definition at line 58 of file vcarddrag.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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