Pimcommon
kmailcompletion.cpp
31 static const QRegularExpression emailRegularExpression{QRegularExpression(QStringLiteral("(@)|(<.*>)"))};
32 // this should be in postProcessMatch, but postProcessMatch is const and will not allow nextMatch
45 for (QStringList::ConstIterator sit(mailAddr.begin()), sEnd(mailAddr.end()); sit != sEnd; ++sit) {
67void KMailCompletion::addItemWithKeys(const QString &email, int weight, const QStringList *keyWords)
89 for (QStringList::ConstIterator sit2(pMatches->begin()), sEnd2(pMatches->end()); sit2 != sEnd2; ++sit2) {
94 for (QStringList::ConstIterator sit(mailAddr.begin()), sEnd(mailAddr.end()); sit != sEnd; ++sit) {
QString nextMatch()
virtual QString makeCompletion(const QString &string)
virtual void setIgnoreCase(bool ignoreCase)
virtual void clear()
void match(const QString &item)
void addItem(const QString &item)
QString makeCompletion(const QString &string) override
uses KCompletion::makeCompletion to find email addresses which starts with string.
Definition kmailcompletion.cpp:27
void postProcessMatches(QStringList *pMatches) const override
use internal map to replace all keywords in pMatches with corresponding email addresses.
Definition kmailcompletion.cpp:80
void addItemWithKeys(const QString &email, int weight, const QStringList *keyWords)
specify keywords for email.
Definition kmailcompletion.cpp:67
void clear() override
clears internal keyword map and calls KCompletion::clear.
Definition kmailcompletion.cpp:21
ConstIterator
void append(QList< T > &&value)
iterator begin()
void clear()
const_iterator constBegin() const const
const_iterator constEnd() const const
iterator end()
bool isEmpty() const const
void clear()
iterator insert(const T &value)
QList< T > values() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.