File indexing completed on 2024-12-08 07:34:18

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libruqolacore_export.h"
0010 #include "sortfilterproxymodelbase.h"
0011 
0012 class LIBRUQOLACORE_EXPORT ServerErrorInfoHistoryFilterProxyModel : public SortFilterProxyModelBase
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit ServerErrorInfoHistoryFilterProxyModel(QObject *parent = nullptr);
0017     ~ServerErrorInfoHistoryFilterProxyModel() override;
0018 
0019     void setAccountNameFilter(const QString &newAccountNameFilter);
0020 
0021 protected:
0022     [[nodiscard]] bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
0023 
0024 private:
0025     QString mAccountNameFilter;
0026 };