kabc
21 #include "vcardline.h"
25 VCardLine::VCardLine()
30 VCardLine::VCardLine(
const QString &identifier )
33 mIdentifier = identifier;
36 VCardLine::VCardLine(
const QString &identifier,
const QVariant &value )
39 mIdentifier = identifier;
43 VCardLine::VCardLine(
const VCardLine &line )
46 mParamMap = line.mParamMap;
48 mIdentifier = line.mIdentifier;
51 VCardLine::~VCardLine()
55 VCardLine &VCardLine::operator=(
const VCardLine &line )
57 if ( &line ==
this ) {
61 mParamMap = line.mParamMap;
63 mIdentifier = line.mIdentifier;
68 void VCardLine::setIdentifier(
const QString &identifier )
70 mIdentifier = identifier;
73 QString VCardLine::identifier()
const
78 void VCardLine::setValue(
const QVariant &value )
88 void VCardLine::setGroup(
const QString &group )
93 QString VCardLine::group()
const
98 bool VCardLine::hasGroup()
const
105 return mParamMap.keys();
108 void VCardLine::addParameter(
const QString ¶m,
const QString &value )
118 ParamMap::ConstIterator it = mParamMap.
find( param );
119 if ( it == mParamMap.end() ) {
128 ParamMap::ConstIterator it = mParamMap.
find( param );
129 if ( it == mParamMap.end() ) {
132 if ( ( *it ).isEmpty() ) {
135 return ( *it ).first();
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void append(const T &value)
int find(QChar c, int i, bool cs) const
iterator find(const T &t)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:39 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.