9#include "parametermap_p.h"
14using namespace KContacts;
23 Private(
const Private &other)
26 mParamMap = other.mParamMap;
27 fieldGroupName = other.fieldGroupName;
31 ParameterMap mParamMap;
36FieldGroup::FieldGroup()
46FieldGroup::FieldGroup(
const QString &FieldGroupName)
49 d->fieldGroupName = FieldGroupName;
52FieldGroup::~FieldGroup()
56void FieldGroup::setFieldGroupName(
const QString &fieldGroup)
58 d->fieldGroupName = fieldGroup;
61QString FieldGroup::fieldGroupName()
const
63 return d->fieldGroupName;
66bool FieldGroup::isValid()
const
68 return !d->fieldGroupName.isEmpty();
71void FieldGroup::setValue(
const QString &value)
76QString FieldGroup::value()
const
81void FieldGroup::setParams(
const ParameterMap ¶ms)
83 d->mParamMap = params;
86ParameterMap FieldGroup::params()
const
91bool FieldGroup::operator==(
const FieldGroup &other)
const
93 return (d->mParamMap == other.d->mParamMap) && (d->fieldGroupName == other.fieldGroupName()) && (d->value == other.value());
96bool FieldGroup::operator!=(
const FieldGroup &other)
const
98 return !(other == *
this);
103 if (
this != &other) {
110QString FieldGroup::toString()
const
113 str += QStringLiteral(
" FieldGroupName: %1 Value %2\n").
arg(d->fieldGroupName).
arg(d->value);
114 str += d->mParamMap.toString();
121 return s << fieldGroup.d->mParamMap << fieldGroup.d->fieldGroupName << fieldGroup.d->value;
126 s >> fieldGroup.d->mParamMap >> fieldGroup.d->fieldGroupName >> fieldGroup.d->value;
QString arg(Args &&... args) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:26 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.