Akonadi
agentinstancefilterproxymodel.cpp
28 [[nodiscard]] bool filterAcceptRegExp(const QModelIndex &index, const QRegularExpression &filterRegExpStr);
76bool AgentInstanceFilterProxyModelPrivate::filterAcceptRegExp(const QModelIndex &index, const QRegularExpression &filterRegExpStr)
80 return index.data(AgentInstanceModel::TypeIdentifierRole).toString().contains(filterRegExpStr) || index.data().toString().contains(filterRegExpStr);
85bool AgentInstanceFilterProxyModel::filterAcceptsRow(int row, const QModelIndex & /*source_parent*/) const
133 const QStringList lstCapabilities = index.data(AgentInstanceModel::CapabilitiesRole).toStringList();
167void AgentInstanceFilterProxyModel::setAccountActivitiesAbstract(AccountActivitiesAbstract *abstract)
171 connect(d->accountActivitiesAbstract, &AccountActivitiesAbstract::activitiesChanged, this, &AgentInstanceFilterProxyModel::invalidateFilter);
void excludeCapabilities(const QString &capability)
Excludes agents with the given capability.
Definition agentinstancefilterproxymodel.cpp:51
void addMimeTypeFilter(const QString &mimeType)
Accept agents supporting mimeType.
Definition agentinstancefilterproxymodel.cpp:39
void addCapabilityFilter(const QString &capability)
Accept agents with the given capability.
Definition agentinstancefilterproxymodel.cpp:45
~AgentInstanceFilterProxyModel() override
Destroys the agent filter proxy model.
void clearFilters()
Clear the filters ( mimeTypes & capabilities ).
Definition agentinstancefilterproxymodel.cpp:68
AgentInstanceFilterProxyModel(QObject *parent=nullptr)
Create a new agent filter proxy model.
Definition agentinstancefilterproxymodel.cpp:31
@ ActivitiesEnabledRole
Return true if activities is enabled on agent.
Definition agentinstancemodel.h:63
Helper integration between Akonadi and Qt.
sourceModel
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
bool inherits(const QString &mimeTypeName) const const
bool isValid() const const
QVariant data(int role) const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString pattern() const const
filterRegularExpression
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
void invalidateFilter()
virtual QStringList mimeTypes() const const override
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
bool toBool() const const
QString toString() const const
QStringList toStringList() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.