File indexing completed on 2024-12-22 04:52:48
0001 /* 0002 SPDX-FileCopyrightText: 2003 Laurence Anderson <l.d.anderson@warwick.ac.uk> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "ui_manualselectfilterpage.h" 0010 #include <QList> 0011 namespace MailImporter 0012 { 0013 class Filter; 0014 } 0015 0016 class ManualSelectFilterPage : public QWidget 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit ManualSelectFilterPage(QWidget *parent = nullptr); 0021 ~ManualSelectFilterPage() override; 0022 0023 void addFilter(MailImporter::Filter *f); 0024 MailImporter::Filter *getSelectedFilter() const; 0025 bool removeDupMsg_checked() const; 0026 0027 Ui::ManualSelectFilterPage *widget() const; 0028 0029 private Q_SLOTS: 0030 void filterSelected(int i); 0031 0032 private: 0033 Ui::ManualSelectFilterPage *mWidget = nullptr; 0034 QList<MailImporter::Filter *> mFilterList; 0035 };