kabc
24 #include <qstringlist.h> 28 class Gender::Private :
public QSharedData
35 Private(
const Private &other )
36 : QSharedData( other )
38 comment = other.comment;
39 gender = other.gender;
51 Gender::Gender(
const QString &gender)
57 Gender::Gender(
const Gender &other )
67 bool Gender::operator==(
const Gender &other)
const 69 return (d->comment == other.comment()) && (d->gender == other.gender());
72 bool Gender::operator!=(
const Gender &other)
const 74 return !( other == *this );
77 Gender &Gender::operator=(
const Gender &other)
79 if (
this != &other ) {
86 QString 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" );
96 void Gender::setGender(
const QString &gender)
101 QString Gender::gender()
const 106 void Gender::setComment(
const QString &comment)
108 d->comment = comment;
111 QString Gender::comment()
const 116 bool 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;
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.
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Mar 9 2017 14:24:28 by
doxygen 1.8.13 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.