kaddressbook

AddresseeUtil Class Reference

#include <addresseeutil.h>

Static Public Member Functions

static TQString addresseesToClipboard (const TDEABC::Addressee::List &addrList)
 
static TDEABC::Addressee::List clipboardToAddressees (const TQString &clipboard)
 
static TQString addresseesToEmails (const TDEABC::Addressee::List &addrList)
 

Detailed Description

This class provides some utility methods for transposing an addressee to different types (ie: clipboard).

This class is probably just temporary until these function stablize and move to KABC.

NOTE: Currently these methods are not implemented properly. The vCard parser in KABC needs to be updated and there is no way to get from TDEABC::Addressee to vCard.

Definition at line 41 of file addresseeutil.h.

Member Function Documentation

◆ addresseesToClipboard()

TQString AddresseeUtil::addresseesToClipboard ( const TDEABC::Addressee::List &  addrList)
static

Same as above function, except that an entire list of TDEABC::Addressee objects will be converted to vCard and put in the string.

Definition at line 47 of file addresseeutil.cpp.

◆ addresseesToEmails()

TQString AddresseeUtil::addresseesToEmails ( const TDEABC::Addressee::List &  addrList)
static

Converts the list of addressee objects into a list of email addresses.

Definition at line 62 of file addresseeutil.cpp.

◆ clipboardToAddressees()

TDEABC::Addressee::List AddresseeUtil::clipboardToAddressees ( const TQString &  clipboard)
static

Convert a string from the clipboard into a list of addressee objects.

If the clipboard text was not a valid vcard, an empty list will be returned.

Definition at line 54 of file addresseeutil.cpp.


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