Index: compiled/subscription/Subscription.h |
=================================================================== |
--- a/compiled/subscription/Subscription.h |
+++ b/compiled/subscription/Subscription.h |
@@ -50,17 +50,17 @@ |
}, &action, this, mType, &value, &oldvalue);\ |
}\ |
} |
class Subscription : public ref_counted |
{ |
protected: |
OwnedString mID; |
- std::vector<Filter> mFilters; |
+ std::vector<FilterPtr> mFilters; |
public: |
enum Type |
{ |
UNKNOWN = 0, |
DOWNLOADABLE = 1, |
USERDEFINED = 2 |
}; |
@@ -73,15 +73,22 @@ public: |
EMSCRIPTEN_KEEPALIVE const String& GetID() const |
{ |
return mID; |
} |
SUBSCRIPTION_STRING_PROPERTY(mTitle, GetTitle, SetTitle); |
SUBSCRIPTION_PROPERTY(bool, mDisabled, GetDisabled, SetDisabled); |
+ EMSCRIPTEN_KEEPALIVE unsigned GetFilterCount() const |
+ { |
+ return mFilters.size(); |
+ } |
+ |
+ EMSCRIPTEN_KEEPALIVE Filter* FilterAt(unsigned index); |
+ EMSCRIPTEN_KEEPALIVE int IndexOfFilter(Filter* filter); |
EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; |
EMSCRIPTEN_KEEPALIVE OwnedString SerializeFilters() const; |
static EMSCRIPTEN_KEEPALIVE Subscription* FromID(const String& id); |
}; |
typedef intrusive_ptr<Subscription> SubscriptionPtr; |