KCalCore Library
person.cpp
Go to the documentation of this file.
158 return (pos > 0) && (email.lastIndexOf(QLatin1String(".")) > pos) && ((email.length() - pos) > 4);
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString & append(QChar ch)
void truncate(int position)
QString & prepend(QChar ch)
void setEmail(const QString &email)
Sets the email address for this person to email.
Definition: person.cpp:146
QString simplified() const
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void clear()
This file is part of the API for handling calendar data and defines the Person class.
bool operator!=(const Person &person) const
Compares this with person for non-equality.
Definition: person.cpp:85
bool isEmpty() const
bool operator==(const Person &person) const
Compares this with person for equality.
Definition: person.cpp:78
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
bool isEmpty() const
Returns true if the person name and email address are empty.
Definition: person.cpp:136
int count() const
Returns the number of references or zero if it is not initialized.
Definition: person.cpp:166
KCALCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:863
char toLatin1() const
static Person::Ptr fromFullName(const QString &fullName)
Constructs a person with name and email address taken from fullName.
Definition: person.cpp:391
QString mid(int position, int n) const
int length() const
static bool isValidEmail(const QString &email)
Returns true if person's email address is valid.
Definition: person.cpp:155
KCALCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:853
uint qHash(const KCalCore::Person &key)
Return a hash value for a Person argument.
Definition: person.cpp:171
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:36:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:36:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.