KABC::VCardConverter Class Reference
#include <vcardconverter.h>
Detailed Description
Class to converting contact objects into vCard format and vice versa.This class implements reading and writing of contact using from/to the vCard format. Currently vCard version 2.1 and 3.0 is supported.
Example:
QFile file( "myfile.vcf" ); file.open( IO_ReadOnly ); QString data = file.readAll(); VCardConverter converter; Addressee::List list = converter.parseVCards( data ); // print formatted name of first contact qDebug( "name=%s", list[ 0 ].formattedName().latin1() );
Definition at line 53 of file vcardconverter.h.
Public Types | |
enum | Version { v2_1, v3_0 } |
Public Member Functions | |
VCardConverter () | |
~VCardConverter () | |
QString | createVCard (const Addressee &addr, Version version=v3_0) |
QString | createVCards (Addressee::List list, Version version=v3_0) |
Addressee | parseVCard (const QString &vcard) |
Addressee::List | parseVCards (const QString &vcard) |
bool | vCardToAddressee (const QString &, Addressee &, Version version=v3_0) KDE_DEPRECATED |
bool | addresseeToVCard (const Addressee &, QString &, Version version=v3_0) KDE_DEPRECATED |
Member Enumeration Documentation
|
Definition at line 61 of file vcardconverter.h. |
Constructor & Destructor Documentation
|
Constructor.
|
|
Destructor.
|
Member Function Documentation
|
|
|
Creates a string in vCard format which contains the given contact.
|
|
Creates a string in vCard format which contains the given list of contact.
|
|
Parses a string in vCard format and returns the first contact.
|
|
Parses a string in vCard format and returns a list of contact objects.
|
|
|
The documentation for this class was generated from the following file: