kaddressbook Library API Documentation

AddresseeUtil Class Reference

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

#include <addresseeutil.h>

List of all members.

Static Public Member Functions

QString addresseeToClipboard (KABC::Addressee &)
 Convert an addressee into a string capable of being pushed into the clipboard.

QString addresseesToClipboard (KABC::Addressee::List &aList)
 Same as above function, except that an entire list of KABC::Addressee objects will be converted to vCard and put in the string.

KABC::Addressee::List clipboardToAddressees (const QString &clipboard)
 Convert a string from the clipboard into a list of addressee objects.


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 KABC::Addressee to vCard.

Definition at line 39 of file addresseeutil.h.


Member Function Documentation

QString AddresseeUtil::addresseeToClipboard KABC::Addressee &   )  [static]
 

Convert an addressee into a string capable of being pushed into the clipboard.

This format is a vCard.

Definition at line 29 of file addresseeutil.cpp.

QString AddresseeUtil::addresseesToClipboard KABC::Addressee::List &  aList  )  [static]
 

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

Definition at line 34 of file addresseeutil.cpp.

References QStringList::join().

Referenced by ViewManager::copy(), and ViewManager::startDrag().

KABC::Addressee::List AddresseeUtil::clipboardToAddressees const QString 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 47 of file addresseeutil.cpp.


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:10 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001