21 #include "vcardline.h" 25 VCardLine::VCardLine()
29 VCardLine::VCardLine(
const QString &identifier)
31 mIdentifier = identifier;
36 mIdentifier = identifier;
40 VCardLine::VCardLine(
const VCardLine &line)
42 mParamMap = line.mParamMap;
44 mIdentifier = line.mIdentifier;
48 VCardLine::~VCardLine()
52 VCardLine &VCardLine::operator=(
const VCardLine &line)
58 mParamMap = line.mParamMap;
60 mIdentifier = line.mIdentifier;
66 bool VCardLine::operator==(
const VCardLine &other)
const 68 return (mParamMap == other.parameterMap())
69 && (mValue == other.value())
70 && (mIdentifier == other.identifier())
71 && (mGroup == other.group());
74 void VCardLine::setIdentifier(
const QString &identifier)
76 mIdentifier = identifier;
79 QString VCardLine::identifier()
const 84 void VCardLine::setValue(
const QVariant &value)
94 void VCardLine::setGroup(
const QString &group)
99 QString VCardLine::group()
const 104 bool VCardLine::hasGroup()
const 111 return mParamMap.keys();
114 void VCardLine::addParameter(
const QString ¶m,
const QString &value)
124 ParamMap::ConstIterator it = mParamMap.find(param);
125 if (it == mParamMap.end()) {
134 ParamMap::ConstIterator it = mParamMap.find(param);
135 if (it == mParamMap.end()) {
138 if ((*it).isEmpty()) {
141 return (*it).first();
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void append(const T &value)
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 6 2019 03:47:42 by
doxygen 1.8.11 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.