KContacts
9#include "parametermap_p.h"
14using namespace KContacts;
23 Private(
const Private &other)
26 mParamMap = other.mParamMap;
30 ParameterMap mParamMap;
39Role::Role(
const Role &other)
54void Role::setRole(
const QString &role)
59QString Role::role()
const
64bool Role::isValid()
const
69void Role::setParams(
const ParameterMap ¶ms)
71 d->mParamMap = params;
74ParameterMap Role::params()
const
79bool Role::operator==(
const Role &other)
const
81 return (d->mParamMap == other.d->mParamMap) && (d->role == other.role());
84bool Role::operator!=(
const Role &other)
const
86 return !(other == *
this);
89Role &Role::operator=(
const Role &other)
98QString Role::toString()
const
100 QString str = QLatin1String(
"Role {\n");
101 str += QStringLiteral(
" role: %1\n").
arg(d->role);
102 str += d->mParamMap.toString();
103 str += QLatin1String(
"}\n");
107QDataStream &KContacts::operator<<(QDataStream &s,
const Role &role)
109 return s << role.d->mParamMap << role.d->role;
112QDataStream &KContacts::operator>>(QDataStream &s,
Role &role)
114 s >> role.d->mParamMap >> role.d->role;
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.