KContacts
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;
59QString Related::related()
const
64bool Related::isValid()
const
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
100 QString str = QLatin1String(
"Related {\n");
101 str += QStringLiteral(
" relatedTo: %1\n").
arg(d->relatedTo);
102 str += d->mParamMap.toString();
103 str += QLatin1String(
"}\n");
107QDataStream &KContacts::operator<<(QDataStream &s,
const Related &related)
109 return s << related.d->mParamMap << related.d->relatedTo;
112QDataStream &KContacts::operator>>(QDataStream &s,
Related &related)
114 s >> related.d->mParamMap >> related.d->relatedTo;
QString arg(Args &&... args) const const
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:38 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.