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

Unified Diff: src/FilterEngine.cpp

Issue 29424648: Issue 5123 - add Subscription::IsDisabled (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created April 28, 2017, 9:44 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
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/FilterEngine.cpp
diff --git a/src/FilterEngine.cpp b/src/FilterEngine.cpp
index 01c1f24c7a45a509c64717d2a0561ef9d997543c..caad7ada91a76c8376356ae2f75757cad6a8995d 100644
--- a/src/FilterEngine.cpp
+++ b/src/FilterEngine.cpp
@@ -134,6 +134,16 @@ bool Subscription::IsListed() const
return func.Call(*this).AsBool();
}
+bool Subscription::IsDisabled() const
+{
+ return GetProperty("disabled").AsBool();
+}
+
+void Subscription::SetDisabled(bool value)
+{
+ return SetProperty("disabled", value);
+}
+
void Subscription::AddToList()
{
JsValue func = jsEngine->Evaluate("API.addSubscriptionToList");
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | test/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld