File indexing completed on 2024-12-01 04:31:58

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 ADDEDITFILTER_H
0010 #define ADDEDITFILTER_H
0011 
0012 #include <QDialog>
0013 
0014 #include "filter.h"
0015 #include "ui_addeditfilter_base.h"
0016 
0017 class AddEditFilter : public QDialog
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit AddEditFilter(QWidget *parent, Filter *filter = nullptr);
0022     ~AddEditFilter();
0023 
0024 Q_SIGNALS:
0025     void newFilterRegistered(Filter *filter);
0026     void filterUpdated(Filter *filter);
0027 
0028 protected Q_SLOTS:
0029     void slotFilterActionChanged(int);
0030     virtual void accept() override;
0031 
0032 private:
0033     void setupFilterFields();
0034     void setupFilterTypes();
0035     void setupFilterActions();
0036     Ui::AddEditFilterBase ui;
0037     Filter *currentFilter;
0038 };
0039 
0040 #endif // ADDEDITFILTER_H