kabc Library API Documentation

KABC::VCard Class Reference

List of all members.

Public Types

typedef QValueList< VCardList
typedef QMap< QString, VCardLine::ListLineMap
enum  Version { v2_1, v3_0 }

Public Member Functions

 VCard ()
 VCard (const VCard &)
 ~VCard ()
VCardoperator= (const VCard &)
void clear ()
QStringList identifiers () const
void addLine (const VCardLine &line)
VCardLine::List lines (const QString &identifier) const
VCardLine line (const QString &identifier) const
void setVersion (Version version)
Version version () const

Detailed Description

Definition at line 31 of file vcard.h.


Member Function Documentation

void VCard::clear  ) 
 

Removes all lines from the vCard.

Definition at line 48 of file vcard.cpp.

References QMap::clear().

Referenced by KABC::VCardParser::parseVCards().

QStringList VCard::identifiers  )  const
 

Returns a list of all identifiers that exists in the vCard.

Definition at line 53 of file vcard.cpp.

References QMap::keys().

void VCard::addLine const VCardLine line  ) 
 

Adds a VCardLine to the VCard.

Definition at line 58 of file vcard.cpp.

References KABC::VCardLine::identifier().

Referenced by KABC::VCardTool::createVCards(), and KABC::VCardParser::parseVCards().

VCardLine::List VCard::lines const QString identifier  )  const
 

Returns all lines of the vcard with a special identifier.

Definition at line 63 of file vcard.cpp.

References QMap< QString, VCardLine::List >::ConstIterator(), QMap::end(), and QMap::find().

VCardLine VCard::line const QString identifier  )  const
 

Returns only the first line of the vcard with a special identifier.

Definition at line 72 of file vcard.cpp.

References QMap< QString, VCardLine::List >::ConstIterator(), QMap::end(), and QMap::find().

Referenced by setVersion(), and version().

void VCard::setVersion Version  version  ) 
 

Set the version of the vCard.

Definition at line 84 of file vcard.cpp.

References QMap::erase(), line(), and KABC::VCardLine::setIdentifier().

VCard::Version VCard::version  )  const
 

Returns the version of this vCard.

Definition at line 98 of file vcard.cpp.

References QMap< QString, VCardLine::List >::ConstIterator(), QMap::end(), QMap::find(), line(), and KABC::VCardLine::value().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kabc Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Nov 1 10:34:55 2005 by doxygen 1.4.3 written by Dimitri van Heesch, © 1997-2003