kabc
24#include <qstringlist.h>
28class Gender::Private :
public QSharedData
35 Private(
const Private &other )
36 : QSharedData( other )
38 comment = other.comment;
39 gender = other.gender;
51Gender::Gender(
const QString &gender)
57Gender::Gender(
const Gender &other )
67bool Gender::operator==(
const Gender &other)
const
69 return (d->comment == other.comment()) && (d->gender == other.gender());
72bool Gender::operator!=(
const Gender &other)
const
74 return !( other == *this );
77Gender &Gender::operator=(
const Gender &other)
79 if (
this != &other ) {
86QString Gender::toString()
const
89 str += QString::fromLatin1(
"Gender {\n" );
90 str += QString::fromLatin1(
" gender: %1\n" ).arg( d->gender );
91 str += QString::fromLatin1(
" comment: %1\n" ).arg( d->comment );
92 str += QString::fromLatin1(
"}\n" );
96void Gender::setGender(
const QString &gender)
101QString Gender::gender()
const
106void Gender::setComment(
const QString &comment)
108 d->comment = comment;
111QString Gender::comment()
const
116bool Gender::isValid()
const
118 return !d->gender.isEmpty() || !d->comment.isEmpty();
123 return s << gender.d->comment << gender.d->gender;
128 s >> gender.d->comment >> gender.d->gender;
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
QDataStream & operator<<(QDataStream &stream, const Address &address)
Serializes the address object into the stream.
QDataStream & operator>>(QDataStream &stream, Address &address)
Initializes the address object from the stream.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.