kabc
29 VCard::VCard(
const VCard &vcard )
31 mLineMap = vcard.mLineMap;
38 VCard &VCard::operator=(
const VCard &vcard )
40 if ( &vcard ==
this ) {
44 mLineMap = vcard.mLineMap;
56 return mLineMap.keys();
59 void VCard::addLine(
const VCardLine &line )
61 mLineMap[ line.identifier() ].
append( line );
66 LineMap::ConstIterator it = mLineMap.
find( identifier );
67 if ( it == mLineMap.end() ) {
74 VCardLine VCard::line(
const QString &identifier )
const
76 LineMap::ConstIterator it = mLineMap.find( identifier );
77 if ( it == mLineMap.end() ) {
81 if ( ( *it ).isEmpty() ) {
84 return ( *it ).first();
88 void VCard::setVersion( Version version )
94 if ( version == v2_1 ) {
96 }
else if ( version == v3_0 ) {
98 }
else if ( version == v4_0 ) {
105 VCard::Version VCard::version()
const
107 LineMap::ConstIterator versionEntry = mLineMap.find(
QLatin1String(
"VERSION" ) );
108 if ( versionEntry == mLineMap.end() ) {
112 VCardLine line = ( *versionEntry )[ 0 ];
void append(const T &value)
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.