Akonadi

agentfilterproxymodel.h
1 /*
2  SPDX-FileCopyrightText: 2007 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_AGENTFILTERPROXYMODEL_H
8 #define AKONADI_AGENTFILTERPROXYMODEL_H
9 
10 #include "akonadicore_export.h"
11 #include <QSortFilterProxyModel>
12 
13 namespace Akonadi
14 {
15 
40 class AKONADICORE_EXPORT AgentFilterProxyModel : public QSortFilterProxyModel
41 {
42  Q_OBJECT
43 public:
49  explicit AgentFilterProxyModel(QObject *parent = nullptr);
50 
54  ~AgentFilterProxyModel() override;
55 
59  void addMimeTypeFilter(const QString &mimeType);
60 
64  void addCapabilityFilter(const QString &capability);
65 
69  void clearFilters();
70 
76  void excludeCapabilities(const QString &capability);
77 
78 protected:
79  bool filterAcceptsRow(int row, const QModelIndex &parent) const override;
80 
81 private:
82  //@cond PRIVATE
83  class Private;
84  Private *const d;
85  //@endcond
86 };
87 
88 }
89 
90 #endif
Helper integration between Akonadi and Qt.
A proxy model for filtering AgentType or AgentInstance.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 07:17:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.