File indexing completed on 2024-02-18 04:58:02

0001 /**
0002  * SPDX-FileCopyrightText: 2019 Nicolas Fella <nicolas.fella@gmx.de>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #ifndef DEVICESPLUGINFILTERPROXYMODEL_H
0008 #define DEVICESPLUGINFILTERPROXYMODEL_H
0009 
0010 #include "dbusinterfaces.h"
0011 #include "devicesmodel.h"
0012 #include "devicessortproxymodel.h"
0013 
0014 class KDECONNECTINTERFACES_EXPORT DevicesPluginFilterProxyModel : public DevicesSortProxyModel
0015 {
0016     Q_OBJECT
0017     Q_PROPERTY(QString pluginFilter READ pluginFilter WRITE setPluginFilter)
0018 public:
0019     bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
0020     void setPluginFilter(const QString plugin);
0021     QString pluginFilter() const;
0022 
0023 private:
0024     QString m_pluginFilter;
0025 };
0026 
0027 #endif