File indexing completed on 2024-06-09 08:40:36

0001 /*
0002     This file is part of Choqok, the KDE micro-blogging client
0003 
0004     SPDX-FileCopyrightText: 2010-2012 Mehrdad Momeny <mehrdad.momeny@gmail.com>
0005 
0006     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0007 */
0008 
0009 #ifndef CONFIGUREFILTERS_H
0010 #define CONFIGUREFILTERS_H
0011 
0012 #include <QDialog>
0013 
0014 #include "ui_filterprefs.h"
0015 
0016 class Filter;
0017 class ConfigureFilters : public QDialog
0018 {
0019     Q_OBJECT
0020 public:
0021     ConfigureFilters(QWidget *parent);
0022     ~ConfigureFilters();
0023 
0024 protected Q_SLOTS:
0025     virtual void accept() override;
0026     void slotAddFilter();
0027     void slotEditFilter();
0028     void slotRemoveFilter();
0029     void addNewFilter(Filter *filter);
0030     void slotUpdateFilter(Filter *filter);
0031     void slotHideRepliesNotRelatedToMeToggled(bool enabled);
0032 
0033 private:
0034     void reloadFiltersTable();
0035     void saveFiltersTable();
0036     Ui_mFilteringCtl ui;
0037 };
0038 
0039 #endif // CONFIGUREFILTERS_H