From 19137b3233c31da75973a3217558ea6bd6570bad Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 21 Oct 2018 13:48:23 +0200 Subject: urlfilter: base AdBlockRule off FilterLeaf --- lib/urlfilter/filterleaf.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/urlfilter/filterleaf.h') diff --git a/lib/urlfilter/filterleaf.h b/lib/urlfilter/filterleaf.h index 2c552a6..a565f92 100644 --- a/lib/urlfilter/filterleaf.h +++ b/lib/urlfilter/filterleaf.h @@ -24,6 +24,16 @@ public: Redirect }; + enum UrlMatchType { + InvalidMatch, + RegularExpressionMatch, + StringContains, + StringStartsWith, + StringEndsWith, + StringEquals, + DomainMatch + }; + FilterLeaf(FilterLeaf &&other); FilterLeaf &operator=(FilterLeaf &&other); ~FilterLeaf() = default; @@ -35,16 +45,6 @@ public: const QString redirect() const; protected: - enum UrlMatchType { - InvalidMatch, - RegularExpressionMatch, - StringContains, - StringStartsWith, - StringEndsWith, - StringEquals, - DomainMatch - }; - explicit FilterLeaf() = default; // rule matching -- cgit v1.2.1