diff options
Diffstat (limited to 'plugins-alternative/CopyEngine/Rsync/FilterRules.h')
-rw-r--r-- | plugins-alternative/CopyEngine/Rsync/FilterRules.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/plugins-alternative/CopyEngine/Rsync/FilterRules.h b/plugins-alternative/CopyEngine/Rsync/FilterRules.h new file mode 100644 index 0000000..f06f0cb --- /dev/null +++ b/plugins-alternative/CopyEngine/Rsync/FilterRules.h @@ -0,0 +1,46 @@ +#ifndef FILTERRULES_H +#define FILTERRULES_H + +#include <QDialog> +#include <QAbstractButton> +#include <QPushButton> + +#include "StructEnumDefinition_CopyEngine.h" + +namespace Ui { +class FilterRules; +} + +/** All the filter rules to include/exclude some file during the listing */ +class FilterRules : public QDialog +{ + Q_OBJECT + +public: + explicit FilterRules(QWidget *parent = 0); + ~FilterRules(); + bool getIsValid(); + QString get_search_text(); + SearchType get_search_type(); + ApplyOn get_apply_on(); + bool get_need_match_all(); + void set_search_text(QString search_text); + void set_search_type(SearchType search_type); + void set_apply_on(ApplyOn apply_on); + void set_need_match_all(bool need_match_all); +private slots: + void on_search_textChanged(const QString &arg1); + void on_isValid_clicked(); + void on_testString_textChanged(const QString &arg1); + void on_matched_clicked(); + void on_search_type_currentIndexChanged(int index); + void on_need_match_all_clicked(); + void on_buttonBox_clicked(QAbstractButton *button); +private: + Ui::FilterRules *ui; + void updateChecking(); + bool isValid; + bool haveBeenValided; +}; + +#endif // FILTERRULES_H |