9#include "parametermap_p.h"
14using namespace KContacts;
23 Private(
const Private &other)
26 mParamMap = other.mParamMap;
27 relatedTo = other.relatedTo;
30 ParameterMap mParamMap;
39Related::Related(
const Related &other)
44Related::Related(
const QString &relatedTo)
47 d->relatedTo = relatedTo;
54void Related::setRelated(
const QString &relatedTo)
56 d->relatedTo = relatedTo;
64bool Related::isValid()
const
66 return !d->relatedTo.isEmpty();
69void Related::setParams(
const ParameterMap ¶ms)
71 d->mParamMap = params;
74ParameterMap Related::params()
const
79bool Related::operator==(
const Related &other)
const
81 return (d->mParamMap == other.d->mParamMap) && (d->relatedTo == other.related());
84bool Related::operator!=(
const Related &other)
const
86 return !(other == *
this);
98QString Related::toString()
const
101 str += QStringLiteral(
" relatedTo: %1\n").
arg(d->relatedTo);
102 str += d->mParamMap.toString();
109 return s << related.d->mParamMap << related.d->relatedTo;
114 s >> related.d->mParamMap >> related.d->relatedTo;
QString arg(Args &&... args) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:17:42 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.