Mailcommon

favoritecollectionorderproxymodel.h
1/*
2
3 SPDX-FileCopyrightText: 2017 David Faure <faure@kde.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "mailcommon_export.h"
11#include <Akonadi/EntityOrderProxyModel>
12namespace Akonadi
13{
14class AccountActivitiesAbstract;
15}
16namespace MailCommon
17{
18/**
19 * @brief The FavoriteCollectionOrderProxyModel class implements ordering of favorite collections.
20 */
22{
23 Q_OBJECT
24public:
25 explicit FavoriteCollectionOrderProxyModel(QObject *parent = nullptr);
27
28 void setAccountActivities(Akonadi::AccountActivitiesAbstract *accountActivities);
29
30protected:
31 [[nodiscard]] Akonadi::Collection parentCollection(const QModelIndex &index) const override;
32 [[nodiscard]] bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
33
34private:
35 Akonadi::AccountActivitiesAbstract *mAccountActivities = nullptr;
36};
37}
The FavoriteCollectionOrderProxyModel class implements ordering of favorite collections.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.