KCalendarCore
person.cpp
Go to the documentation of this file.
7 SPDX-FileCopyrightText: 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <[email protected]>
144 return (pos > 0) && (email.lastIndexOf(QLatin1Char('.')) > pos) && ((email.length() - pos) > 4);
152 QDataStream &KCalendarCore::operator<<(QDataStream &stream, const KCalendarCore::Person &person)
static bool isValidEmail(const QString &email)
Returns true if person's email address is valid.
Definition: person.cpp:141
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:820
CaseInsensitive
void clear()
QString & prepend(QChar ch)
QAction * mail(const QObject *recvr, const char *slot, QObject *parent)
bool operator==(const Person &person) const
Compares this with person for equality.
Definition: person.cpp:63
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:833
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
QString simplified() const const
bool operator!=(const Person &person) const
Compares this with person for non-equality.
Definition: person.cpp:68
static Person fromFullName(const QString &fullName)
Constructs a person with name and email address taken from fullName.
Definition: person.cpp:362
void setEmail(const QString &email)
Sets the email address for this person to email.
Definition: person.cpp:132
KCODECS_EXPORT bool extractEmailAddressAndName(const QString &aStr, QString &mail, QString &name)
bool isEmpty() const const
int length() const const
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
QString name(StandardShortcut id)
KCALENDARCORE_EXPORT uint qHash(const KCalendarCore::Person &key)
Return a hash value for a Person argument.
Definition: person.cpp:147
char toLatin1() const const
QString mid(int position, int n) const const
QString fullName(const PartType &type)
QString & append(QChar ch)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 29 2023 03:54:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 29 2023 03:54:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.