KContacts
9#include "parametermap_p.h"
11using namespace KContacts;
20 Private(
const Private &other)
23 comment = other.comment;
24 gender = other.gender;
51bool Gender::operator==(
const Gender &other)
const
53 return (d->comment == other.comment()) && (d->gender == other.gender());
56bool Gender::operator!=(
const Gender &other)
const
58 return !(other == *
this);
70QString Gender::toString()
const
72 QString str = QLatin1String(
"Gender {\n");
73 str += QStringLiteral(
" gender: %1\n").
arg(d->gender);
74 str += QStringLiteral(
" comment: %1\n").
arg(d->comment);
75 str += QLatin1String(
"}\n");
79void Gender::setGender(
const QString &gender)
84QString Gender::gender()
const
89void Gender::setComment(
const QString &comment)
94QString Gender::comment()
const
99bool Gender::isValid()
const
101 return !d->gender.
isEmpty() || !d->comment.isEmpty();
104QDataStream &KContacts::operator<<(QDataStream &s,
const Gender &gender)
106 return s << gender.d->comment << gender.d->gender;
109QDataStream &KContacts::operator>>(QDataStream &s,
Gender &gender)
111 s >> gender.d->comment >> gender.d->gender;
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.