kabc Library API Documentation

KABC::VCardConverter Class Reference

Class to convert a vcard string to a addressee and vice versa. More...

#include <vcardconverter.h>

List of all members.

Public Types

enum  Version
 
  • v2_1 - VCard format version 2.1
  • v3_0 - VCard format version 3.0
More...



Public Methods

 VCardConverter ()
 Constructor.

 ~VCardConverter ()
 Destructor.

bool vCardToAddressee (const QString &str, Addressee &addr, Version version=v3_0)
 Converts a vcard string to an addressee.

bool addresseeToVCard (const Addressee &addr, QString &str, Version version=v3_0)
 Converts an addressee to a vcard string.


Detailed Description

Class to convert a vcard string to a addressee and vice versa.

At the moment there exists read support for vCard2.1 and vCard3.0 and write support for vCard3.0

Definition at line 35 of file vcardconverter.h.


Member Enumeration Documentation

enum KABC::VCardConverter::Version
 

  • v2_1 - VCard format version 2.1
  • v3_0 - VCard format version 3.0

Definition at line 43 of file vcardconverter.h.


Constructor & Destructor Documentation

VCardConverter::VCardConverter  
 

Constructor.

Definition at line 34 of file vcardconverter.cpp.

VCardConverter::~VCardConverter  
 

Destructor.

Definition at line 39 of file vcardconverter.cpp.


Member Function Documentation

bool VCardConverter::vCardToAddressee const QString   str,
Addressee   addr,
Version    version = v3_0
 

Converts a vcard string to an addressee.

Parameters:
str  The vcard string.
addr  The addressee.
version  The version of the vcard string.

Definition at line 45 of file vcardconverter.cpp.

bool VCardConverter::addresseeToVCard const Addressee   addr,
QString   str,
Version    version = v3_0
 

Converts an addressee to a vcard string.

Parameters:
addr  The addressee.
str  The vcard string.
version  The version of the vcard string.

Definition at line 58 of file vcardconverter.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.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:22:10 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001