kabc Library API Documentation

KABC::VCardLine Class Reference

List of all members.

Public Types

typedef QValueList< VCardLine > List
typedef QMap< QString, QStringList > ParamMap

Public Member Functions

 VCardLine (const QString &identifier)
 VCardLine (const QString &identifier, const QVariant &value)
 VCardLine (const VCardLine &)
VCardLine & operator= (const VCardLine &)
void setIdentifier (const QString &identifier)
QString identifier () const
void setValue (const QVariant &value)
QVariant value () const
void setGroup (const QString &group)
QString group () const
bool hasGroup () const
QStringList parameterList () const
void addParameter (const QString &param, const QString &value)
QStringList parameters (const QString &param) const
QString parameter (const QString &param) const

Detailed Description

Definition at line 32 of file vcardline.h.


Member Function Documentation

void KABC::VCardLine::setIdentifier (  const QString &  identifier  ) 
 

Sets the identifier of this line e.g.

UID, FN, CLASS

Referenced by KABC::VCardParser::parseVCards(), and KABC::VCard::setVersion().

QString KABC::VCardLine::identifier (   )  const
 

Returns the identifier of this line.

Referenced by KABC::VCard::addLine().

void KABC::VCardLine::setValue (  const QVariant &  value  ) 
 

Sets the value of of this line.

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

QVariant KABC::VCardLine::value (   )  const
 

Returns the value of this line.

Referenced by KABC::VCard::version().

void KABC::VCardLine::setGroup (  const QString &  group  ) 
 

Sets the group the line belongs to.

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

QString KABC::VCardLine::group (   )  const
 

Returns the group the line belongs to.

bool KABC::VCardLine::hasGroup (   )  const
 

Returns whether the line belongs to a group.

QStringList KABC::VCardLine::parameterList (   )  const
 

Returns all parameters.

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

void KABC::VCardLine::addParameter (  const QString &  param,
const QString &  value
) 
 

Add a new parameter to the line.

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

QStringList KABC::VCardLine::parameters (  const QString &  param  )  const
 

Returns the values of a special parameter.

You can get a list of all parameters with paramList().

QString KABC::VCardLine::parameter (  const QString &  param  )  const
 

Returns only the first value of a special parameter.

You can get a list of all parameters with paramList().

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


The documentation for this class was generated from the following file:
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