File indexing completed on 2024-05-05 05:38:34

0001 /*
0002     SPDX-FileCopyrightText: 2016 Eike Hein <hein@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #pragma once
0008 
0009 #include "abstracttasksproxymodeliface.h"
0010 
0011 #include <QConcatenateTablesProxyModel>
0012 
0013 #include "taskmanager_export.h"
0014 
0015 namespace TaskManager
0016 {
0017 /**
0018  * @short A proxy tasks model for concatenating multiple source tasks models.
0019  *
0020  * This proxy model is a subclass of \QConcatenateTablesProxyModel implementing
0021  * AbstractTasksModelIface, forwarding calls to the correct source model.
0022  *
0023  * @author Eike Hein <hein@kde.org>
0024  **/
0025 
0026 class TASKMANAGER_EXPORT ConcatenateTasksProxyModel : public QConcatenateTablesProxyModel, public AbstractTasksProxyModelIface
0027 {
0028     Q_OBJECT
0029 
0030 public:
0031     explicit ConcatenateTasksProxyModel(QObject *parent = nullptr);
0032     ~ConcatenateTasksProxyModel() override;
0033 
0034 protected:
0035     QModelIndex mapIfaceToSource(const QModelIndex &index) const override;
0036 };
0037 
0038 }