]> git.sven.stormbind.net Git - sven/vym.git/blob - src/taskfiltermodel.h
New upstream version 2.9.22
[sven/vym.git] / src / taskfiltermodel.h
1 #ifndef TASKFILTERMODEL_H
2 #define TASKFILTERMODEL_H
3
4 #include <QSortFilterProxyModel>
5
6 class Task;
7
8 class TaskFilterModel : public QSortFilterProxyModel {
9   public:
10     void setFilter(bool b);
11     void setFilterNew(bool b);
12     void setFilterBlocker(bool b);
13     void setMapFilter(const QString &s);
14     void setFilterFlags1(bool b);
15     void setFilterFlags2(bool b);
16     void setFilterFlags3(bool b);
17     bool taskVisible(Task*) const;
18
19   protected:
20     bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
21
22   private:
23     bool useFilter;
24     QString mapFilter;
25     bool filterNew;
26     bool filterBlocker;
27     bool filterFlags1;
28     bool filterFlags2;
29     bool filterFlags3;
30 };
31
32 #endif