2019-07-21 16:51:13 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nicolas Fella <nicolas.fella@gmx.de>
|
2019-07-21 16:51:13 +01:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2019-07-21 16:51:13 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DEVICESPLUGINFILTERPROXYMODEL_H
|
|
|
|
#define DEVICESPLUGINFILTERPROXYMODEL_H
|
|
|
|
|
|
|
|
#include "dbusinterfaces.h"
|
|
|
|
#include "devicesmodel.h"
|
2022-09-10 22:23:52 +01:00
|
|
|
#include "devicessortproxymodel.h"
|
2019-07-21 16:51:13 +01:00
|
|
|
|
|
|
|
class KDECONNECTINTERFACES_EXPORT DevicesPluginFilterProxyModel : public DevicesSortProxyModel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QString pluginFilter READ pluginFilter WRITE setPluginFilter)
|
|
|
|
public:
|
2022-09-10 22:23:52 +01:00
|
|
|
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
|
2019-07-21 16:51:13 +01:00
|
|
|
void setPluginFilter(const QString plugin);
|
|
|
|
QString pluginFilter() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_pluginFilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|