Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/subscription/Subscription.h

Issue 29426559: Issue 5137 - [emscripten] Added basic filter storage implementation (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Rebased, updated copyright year Created Aug. 22, 2017, 11:03 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiled/subscription/Subscription.h
===================================================================
--- a/compiled/subscription/Subscription.h
+++ b/compiled/subscription/Subscription.h
@@ -77,23 +77,27 @@ public:
BINDINGS_EXPORTED const String& GetID() const
{
return mID;
}
SUBSCRIPTION_STRING_PROPERTY(mTitle, SUBSCRIPTION_TITLE, GetTitle, SetTitle);
SUBSCRIPTION_PROPERTY(bool, mDisabled, SUBSCRIPTION_DISABLED,
GetDisabled, SetDisabled);
+ SUBSCRIPTION_PROPERTY(bool, mListed, NONE, GetListed, SetListed);
sergei 2017/08/24 13:32:06 To tell the truth I find this flag a bit questiona
BINDINGS_EXPORTED unsigned GetFilterCount() const
{
return mFilters.size();
}
BINDINGS_EXPORTED Filter* FilterAt(unsigned index);
BINDINGS_EXPORTED int IndexOfFilter(Filter* filter);
BINDINGS_EXPORTED OwnedString Serialize() const;
BINDINGS_EXPORTED OwnedString SerializeFilters() const;
static BINDINGS_EXPORTED Subscription* FromID(const String& id);
+
+ template<typename T>
+ T* As();
};
typedef intrusive_ptr<Subscription> SubscriptionPtr;

Powered by Google App Engine
This is Rietveld