Akonadi Contacts
contactsfilterproxymodel.cpp
19 static bool contactMatchesFilter(const KContacts::Addressee &contact, const QString &filterString, ContactsFilterProxyModel::MatchFilterContactFlag flag);
20 static bool contactGroupMatchesFilter(const KContacts::ContactGroup &group, const QString &filterString);
39 else if (n.decompositionTag() == QChar::Compat && n.isLetter() && n.script() == QChar::Script_Latin) {
58 ContactsFilterProxyModel::MatchFilterContactFlag matchFilterFlag = ContactsFilterProxyModel::MatchFilterContactFlag::All;
83 const auto collection = index.data(Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
117 bool ContactsFilterProxyModel::lessThan(const QModelIndex &leftIndex, const QModelIndex &rightIndex) const
136 void ContactsFilterProxyModel::setMatchFilterContactFlag(ContactsFilterProxyModel::MatchFilterContactFlag flag)
160 const auto collection = index.data(Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>();
167 static bool addressMatchesFilter(const KContacts::Address &address, const QString &filterString)
200 static bool contactMatchesFilter(const KContacts::Addressee &contact, const QString &filterString, ContactsFilterProxyModel::MatchFilterContactFlag flag)
292 bool contactGroupMatchesFilter(const KContacts::ContactGroup &group, const QString &filterString)
QString assembledName() const
QString title() const
int month() const const
Script_Latin
QString mailer() const
CaseInsensitive
QString organization() const
int count(const T &value) const const
int dataCount() const
T value() const const
Canonical
QString name() const
QString formattedName() const
void reserve(int size)
QString normalize(QStringView str)
QString note() const
PhoneNumber::List phoneNumbers() const
QDate toDate() const const
qsizetype size() const const
void setFilterString(const QString &filter)
Sets the filter that is used to filter for matching contacts and contact groups.
Definition: contactsfilterproxymodel.cpp:73
QVariant data(int role) const const
typedef ItemFlags
ResourceLocatorUrl url() const
QDateTime birthday() const
~ContactsFilterProxyModel() override
Destroys the contacts filter proxy model.
virtual Qt::ItemFlags flags(const QModelIndex &index) const const override
QString nickName() const
CollectionRole
void setMatchFilterContactFlag(ContactsFilterProxyModel::MatchFilterContactFlag flag)
setMatchFilterContactFlag
Definition: contactsfilterproxymodel.cpp:136
const T & at(int i) const const
const T & at(int i) const const
void push_back(QChar ch)
QString role() const
bool isValid() const const
void setDynamicSortFilter(bool enable)
QStringList categories() const
PostalAddress address(const QVariant &location)
Data & data(int index)
void setSortLocaleAware(bool on)
bool isValid() const const
virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
void invalidateFilter()
ContactsFilterProxyModel(QObject *parent=nullptr)
Creates a new contacts filter proxy model.
Definition: contactsfilterproxymodel.cpp:62
void setExcludeVirtualCollections(bool exclude)
Sets whether we want virtual collections to be filtered or not.
Definition: contactsfilterproxymodel.cpp:146
QString name() const
sourceModel
int count(const T &value) const const
Address::List addresses() const
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const const
QStringList customs() const
void setFilterFlags(ContactsFilterProxyModel::FilterFlags flags)
Sets the filter flags.
Definition: contactsfilterproxymodel.cpp:141
T payload() const
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
QString toString(Qt::DateFormat format) const const
QStringList emails() const
QString department() const
QObject * parent() const const
QString & append(QChar ch)
QString email() const
int day() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.