9#include "parametermap_p.h"
14using namespace KContacts;
23 Private(
const Private &other)
26 mParamMap = other.mParamMap;
27 nickname = other.nickname;
30 ParameterMap mParamMap;
39NickName::NickName(
const NickName &other)
44NickName::NickName(
const QString &nickname)
47 d->nickname = nickname;
54void NickName::setNickName(
const QString &nickname)
56 d->nickname = nickname;
59QString NickName::nickname()
const
64bool NickName::isValid()
const
66 return !d->nickname.isEmpty();
69void NickName::setParams(
const ParameterMap ¶ms)
71 d->mParamMap = params;
74ParameterMap NickName::params()
const
79bool NickName::operator==(
const NickName &other)
const
81 return (d->mParamMap == other.d->mParamMap) && (d->nickname == other.nickname());
84bool NickName::operator!=(
const NickName &other)
const
86 return !(other == *
this);
98QString NickName::toString()
const
101 str += QStringLiteral(
" nickname: %1\n").
arg(d->nickname);
102 str += d->mParamMap.toString();
109 return s << nickname.d->mParamMap << nickname.d->nickname;
114 s >> nickname.d->mParamMap >> nickname.d->nickname;
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.