OLD | NEW |
(Empty) | |
| 1 #ifndef ADBLOCK_PLUS_TOOLS_H |
| 2 #define ADBLOCK_PLUS_TOOLS_H |
| 3 |
| 4 #define PROPERTY(classprefix, type, name, getter, setter) \ |
| 5 private:\ |
| 6 type name;\ |
| 7 public:\ |
| 8 type getter() const\ |
| 9 {\ |
| 10 return name;\ |
| 11 }\ |
| 12 void setter(type value)\ |
| 13 {\ |
| 14 if (name != value)\ |
| 15 {\ |
| 16 type oldvalue = value;\ |
| 17 name = value;\ |
| 18 /* TODO FilterNotifier.triggerListeners(#classprefix "." #name, this,
value, oldValue); */\ |
| 19 }\ |
| 20 } |
| 21 |
| 22 #define FILTER_PROPERTY(type, name, getter, setter) \ |
| 23 PROPERTY(filter, type, name, getter, setter) |
| 24 |
| 25 #endif |
OLD | NEW |