OLD | NEW |
(Empty) | |
| 1 #ifndef ADBLOCK_PLUS_CSS_PROPERTY_FILTER_H |
| 2 #define ADBLOCK_PLUS_CSS_PROPERTY_FILTER_H |
| 3 |
| 4 #include <cstddef> |
| 5 #include <string> |
| 6 |
| 7 #include "Filter.h" |
| 8 #include "ElemHideBase.h" |
| 9 |
| 10 class CSSPropertyFilter: public ElemHideBase |
| 11 { |
| 12 private: |
| 13 std::u16string regexp; |
| 14 std::u16string prefix; |
| 15 std::u16string suffix; |
| 16 public: |
| 17 CSSPropertyFilter(const std::u16string& text, const std::u16string& domains, |
| 18 const std::u16string& selector, const std::u16string& regexpSource, |
| 19 const std::u16string& prefix, const std::u16string& suffix); |
| 20 Type GetType() const; |
| 21 const std::u16string GetRegExpString() |
| 22 { |
| 23 return regexp; |
| 24 } |
| 25 const std::u16string GetSelectorPrefix() |
| 26 { |
| 27 return prefix; |
| 28 } |
| 29 const std::u16string GetSelectorSuffix() |
| 30 { |
| 31 return suffix; |
| 32 } |
| 33 }; |
| 34 |
| 35 #endif |
OLD | NEW |