libtdepim

#include <kvcarddrag.h>

Inherits TQStoredDrag.

Public Member Functions

 KVCardDrag (TQWidget *dragsource=0, const char *name=0)
 
 KVCardDrag (const TQString &content, TQWidget *dragsource=0, const char *name=0)
 
void setVCard (const TQString &content)
 

Static Public Member Functions

static bool canDecode (TQMimeSource *e)
 
static bool decode (TQMimeSource *e, TQString &content)
 
static bool decode (TQMimeSource *e, TDEABC::Addressee::List &addressees)
 

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 TQt drag'n'drop documentation.

Definition at line 40 of file kvcarddrag.h.

Constructor & Destructor Documentation

◆ KVCardDrag() [1/2]

KVCardDrag::KVCardDrag ( TQWidget *  dragsource = 0,
const char *  name = 0 
)

Constructs an empty vcard drag.

Definition at line 38 of file kvcarddrag.cpp.

◆ KVCardDrag() [2/2]

KVCardDrag::KVCardDrag ( const TQString &  content,
TQWidget *  dragsource = 0,
const char *  name = 0 
)

Constructs a vcard drag with the addressee.

Definition at line 31 of file kvcarddrag.cpp.

Member Function Documentation

◆ canDecode()

bool KVCardDrag::canDecode ( TQMimeSource *  e)
static

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

Definition at line 60 of file kvcarddrag.cpp.

◆ decode() [1/2]

bool KVCardDrag::decode ( TQMimeSource *  e,
TDEABC::Addressee::List &  addressees 
)
static

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

Definition at line 85 of file kvcarddrag.cpp.

◆ decode() [2/2]

bool KVCardDrag::decode ( TQMimeSource *  e,
TQString &  content 
)
static

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

Definition at line 75 of file kvcarddrag.cpp.

◆ setVCard()

void KVCardDrag::setVCard ( const TQString &  content)

Sets the vcard of the drag to content.

Definition at line 54 of file kvcarddrag.cpp.


The documentation for this class was generated from the following files: