KContacts
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)
59QString Lang::language()
const
64bool Lang::isValid()
const
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)
98QString Lang::toString()
const
100 QString str = QLatin1String(
"Lang {\n");
101 str += QStringLiteral(
" language: %1\n").
arg(d->language);
102 str += d->mParamMap.toString();
103 str += QLatin1String(
"}\n");
107QDataStream &KContacts::operator<<(QDataStream &s,
const Lang &lang)
109 return s << lang.d->mParamMap << lang.d->language;
112QDataStream &KContacts::operator>>(QDataStream &s,
Lang &lang)
114 s >> lang.d->mParamMap >> lang.d->language;
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.