File indexing completed on 2024-05-19 04:50:13

0001 /****************************************************************************************
0002  * Copyright (c) 2011 Stefan Derkits <stefan@derkits.at>                                *
0003  * Copyright (c) 2011 Christian Wagner <christian.wagner86@gmx.at>                      *
0004  * Copyright (c) 2011 Felix Winter <ixos01@gmail.com>                                   *
0005  *                                                                                      *
0006  * This program is free software; you can redistribute it and/or modify it under        *
0007  * the terms of the GNU General Public License as published by the Free Software        *
0008  * Foundation; either version 2 of the License, or (at your option) any later           *
0009  * version.                                                                             *
0010  *                                                                                      *
0011  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0012  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0013  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0014  *                                                                                      *
0015  * You should have received a copy of the GNU General Public License along with         *
0016  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0017  ****************************************************************************************/
0018 
0019 #ifndef GPODDERSORTFILTERPROXYMODEL_H_
0020 #define GPODDERSORTFILTERPROXYMODEL_H_
0021 
0022 #include "GpodderServiceModel.h"
0023 
0024 #include <QSortFilterProxyModel>
0025 
0026 class GpodderSortFilterProxyModel : public QSortFilterProxyModel
0027 {
0028     Q_OBJECT
0029 
0030 public:
0031     explicit GpodderSortFilterProxyModel( QObject *parent = nullptr );
0032     ~GpodderSortFilterProxyModel() override;
0033 
0034 protected:
0035     bool filterAcceptsRow( int sourceRow, const QModelIndex &sourceParent ) const override;
0036 };
0037 
0038 #endif /* GPODDERSORTFILTERPROXYMODEL_H_ */