OLD | NEW |
1 #pragma once | 1 #pragma once |
2 | 2 |
3 #include <vector> | 3 #include <vector> |
4 | 4 |
5 #include "../String.h" | 5 #include "../String.h" |
6 #include "../intrusive_ptr.h" | 6 #include "../intrusive_ptr.h" |
7 #include "../debug.h" | 7 #include "../debug.h" |
8 | 8 |
9 class Filter : public ref_counted | 9 class Filter : public ref_counted |
10 { | 10 { |
(...skipping 12 matching lines...) Expand all Loading... |
23 ELEMHIDEEXCEPTION = 6, | 23 ELEMHIDEEXCEPTION = 6, |
24 ELEMHIDEEMULATION = 7, | 24 ELEMHIDEEMULATION = 7, |
25 MAXTYPE = 7 | 25 MAXTYPE = 7 |
26 }; | 26 }; |
27 | 27 |
28 explicit Filter(Type type, const String& text); | 28 explicit Filter(Type type, const String& text); |
29 ~Filter(); | 29 ~Filter(); |
30 | 30 |
31 Type mType; | 31 Type mType; |
32 | 32 |
33 /* TODO | |
34 std::vector<Subscription> mSubscriptions; | |
35 */ | |
36 | |
37 EMSCRIPTEN_KEEPALIVE const String& GetText() const | 33 EMSCRIPTEN_KEEPALIVE const String& GetText() const |
38 { | 34 { |
39 return mText; | 35 return mText; |
40 } | 36 } |
41 | 37 |
42 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; | 38 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; |
43 | 39 |
44 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text); | 40 static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text); |
45 }; | 41 }; |
46 | 42 |
47 typedef intrusive_ptr<Filter> FilterPtr; | 43 typedef intrusive_ptr<Filter> FilterPtr; |
OLD | NEW |