KCalendarCore
person.cpp
Go to the documentation of this file.
7 SPDX-FileCopyrightText: 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <[email protected]>
145 return (pos > 0) && (email.lastIndexOf(QLatin1Char('.')) > pos) && ((email.length() - pos) > 4);
153 QDataStream &KCalendarCore::operator<<(QDataStream &stream, const KCalendarCore::Person &person)
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:825
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
bool operator==(const Person &person) const
Compares this with person for equality.
Definition: person.cpp:62
QString & append(QChar ch)
static bool isValidEmail(const QString &email)
Returns true if person's email address is valid.
Definition: person.cpp:142
QString & prepend(QChar ch)
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:849
QString simplified() const const
bool isEmpty() const
Returns true if the person name and email address are empty.
static Person fromFullName(const QString &fullName)
Constructs a person with name and email address taken from fullName.
Definition: person.cpp:363
void setEmail(const QString &email)
Sets the email address for this person to email.
Definition: person.cpp:133
void chop(int n)
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
void clear()
This file is part of the API for handling calendar data and defines the Person class.
KCODECS_EXPORT bool extractEmailAddressAndName(const QString &aStr, QString &mail, QString &name)
CaseInsensitive
bool isEmpty() const const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const const
char toLatin1() const const
QString mid(int position, int n) const const
int length() const const
bool operator!=(const Person &person) const
Compares this with person for non-equality.
Definition: person.cpp:69
KCALENDARCORE_EXPORT uint qHash(const KCalendarCore::Person &key)
Return a hash value for a Person argument.
Definition: person.cpp:148
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 22:51:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 22:51:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.