Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 #pragma once | |
2 | |
3 #include "Subscription.h" | |
4 #include "../filter/Filter.h" | |
5 | |
6 class UserDefinedSubscription : public Subscription | |
7 { | |
8 private: | |
9 enum Defaults | |
10 { | |
11 WHITELIST = 1, | |
12 BLOCKING = 2, | |
13 ELEMHIDE = 4, | |
14 }; | |
15 static int filterTypeToDefaults[Filter::Type::MAXTYPE + 1]; | |
16 int mDefaults; | |
17 | |
18 public: | |
19 explicit UserDefinedSubscription(const String& id); | |
20 EMSCRIPTEN_KEEPALIVE bool IsDefaultFor(const Filter* filter) const; | |
21 EMSCRIPTEN_KEEPALIVE void MakeDefaultFor(const Filter* filter); | |
22 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; | |
23 }; | |
OLD | NEW |