KContacts::Gender Class

class KContacts::Gender

Class that holds a Gender for a contact. More...

Header: #include <KContacts/Gender>
CMake: find_package(KF6 REQUIRED COMPONENTS Contacts)
target_link_libraries(mytarget PRIVATE KF6::Contacts)
Since: 4.14.5

Public Functions

Gender()
Gender(const QString &gender)
QString comment() const
QString gender() const
bool isValid() const
void setComment(const QString &comment)
void setGender(const QString &gender)
QString toString() const
bool operator!=(const KContacts::Gender &other) const
bool operator==(const KContacts::Gender &other) const
QDataStream &operator<<(QDataStream &stream, const KContacts::Gender &object)
QDataStream &operator>>(QDataStream &stream, KContacts::Gender &object)

Detailed Description

Member Function Documentation

Gender::Gender()

Creates an empty Gender object.

See also setGender().

Gender::Gender(const QString &gender)

QString Gender::comment() const

See also setComment().

QString Gender::gender() const

See also setGender().

bool Gender::isValid() const

void Gender::setComment(const QString &comment)

See also comment().

void Gender::setGender(const QString &gender)

See also gender().

QString Gender::toString() const

bool Gender::operator!=(const KContacts::Gender &other) const

bool Gender::operator==(const KContacts::Gender &other) const

Related Non-Members

QDataStream &operator<<(QDataStream &stream, const KContacts::Gender &object)

QDataStream &operator>>(QDataStream &stream, KContacts::Gender &object)