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