KVCardDrag Class Reference
A drag-and-drop object for vcards. More...
#include <kvcarddrag.h>
Inheritance diagram for KVCardDrag:

Public Methods | |
KVCardDrag (QWidget *dragsource=0, const char *name=0) | |
KVCardDrag (const QString &content, QWidget *dragsource=0, const char *name=0) | |
virtual | ~KVCardDrag () |
void | setVCard (const QString &content) |
Static Public Methods | |
bool | canDecode (QMimeSource *e) |
bool | decode (QMimeSource *e, QString &content) |
Protected Methods | |
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 35 of file kvcarddrag.h.
Constructor & Destructor Documentation
|
Constructs an empty vcard drag.
Definition at line 32 of file kvcarddrag.cpp. References setVCard(). |
|
Constructs a vcard drag with the
Definition at line 25 of file kvcarddrag.cpp. References setVCard(). |
Member Function Documentation
|
Sets the vcard of the drag to
Definition at line 38 of file kvcarddrag.cpp. References QStoredDrag::setEncodedData(), and QString::utf8(). Referenced by KVCardDrag(). |
|
Returns true if the MIME source
Definition at line 43 of file kvcarddrag.cpp. References QMimeSource::provides(). |
|
Decodes the MIME source
Definition at line 48 of file kvcarddrag.cpp. References QMimeSource::encodedData(), and QString::fromUtf8(). |
The documentation for this class was generated from the following files: