libkdepim Library API Documentation

KVCardDrag Class Reference

A drag-and-drop object for vcards. More...

#include <kvcarddrag.h>

Inheritance diagram for KVCardDrag:

QStoredDrag List of all members.

Public Member Functions

 KVCardDrag (QWidget *dragsource=0, const char *name=0)
 Constructs an empty vcard drag.

 KVCardDrag (const QString &content, QWidget *dragsource=0, const char *name=0)
 Constructs a vcard drag with the addressee.

void setVCard (const QString &content)
 Sets the vcard of the drag to content.


Static Public Member Functions

bool canDecode (QMimeSource *e)
 Returns true if the MIME source e contains a vcard object.

bool decode (QMimeSource *e, QString &content)
 Decodes the MIME source e and puts the resulting vcard into content.


Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

A drag-and-drop object for vcards.

The according MIME type is set to text/x-vcard.

See the Qt drag'n'drop documentation.

Definition at line 38 of file kvcarddrag.h.


Constructor & Destructor Documentation

KVCardDrag::KVCardDrag QWidget dragsource = 0,
const char *  name = 0
 

Constructs an empty vcard drag.

Definition at line 37 of file kvcarddrag.cpp.

References setVCard().

KVCardDrag::KVCardDrag const QString content,
QWidget dragsource = 0,
const char *  name = 0
 

Constructs a vcard drag with the addressee.

Definition at line 30 of file kvcarddrag.cpp.

References setVCard().


Member Function Documentation

void KVCardDrag::setVCard const QString content  ) 
 

Sets the vcard of the drag to content.

Definition at line 43 of file kvcarddrag.cpp.

References QStoredDrag::setEncodedData(), and QString::utf8().

Referenced by KVCardDrag().

bool KVCardDrag::canDecode QMimeSource e  )  [static]
 

Returns true if the MIME source e contains a vcard object.

Definition at line 48 of file kvcarddrag.cpp.

References QMimeSource::provides().

bool KVCardDrag::decode QMimeSource e,
QString content
[static]
 

Decodes the MIME source e and puts the resulting vcard into content.

Definition at line 53 of file kvcarddrag.cpp.

References QMimeSource::encodedData(), and QString::fromUtf8().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:00 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001