Akonadi Calendar

calfilterproxymodel.h
1/*
2 SPDX-FileCopyrightText: 2009 KDAB
3 SPDX-FileContributor: Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "akonadi-calendar_export.h"
11
12#include <QSortFilterProxyModel>
13
14#include <memory>
15
16namespace KCalendarCore
17{
18class CalFilter;
19}
20
21namespace Akonadi
22{
23class CalFilterProxyModelPrivate;
24
25class AKONADI_CALENDAR_EXPORT CalFilterProxyModel : public QSortFilterProxyModel
26{
27 Q_OBJECT
28public:
29 explicit CalFilterProxyModel(QObject *parent = nullptr);
30 ~CalFilterProxyModel() override;
31
32 [[nodiscard]] KCalendarCore::CalFilter *filter() const;
34
35protected:
36 bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
37
38private:
39 std::unique_ptr<CalFilterProxyModelPrivate> const d;
40};
41}
Q_SCRIPTABLE bool setFilter(const QString &filter)
FreeBusyManager::Singleton.
QFuture< void > filter(QThreadPool *pool, Sequence &sequence, KeepFunctor &&filterFunction)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.