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

Unified Diff: include/AdblockPlus/FilterEngine.h

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 | « no previous file | src/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/FilterEngine.h
diff --git a/include/AdblockPlus/FilterEngine.h b/include/AdblockPlus/FilterEngine.h
index a058bdbe55c4811696e29768d2f06fd517d26812..bbfb2e1202ebe7f0eb41d631bade10dd8b102d46 100644
--- a/include/AdblockPlus/FilterEngine.h
+++ b/include/AdblockPlus/FilterEngine.h
@@ -118,6 +118,19 @@ namespace AdblockPlus
Subscription& operator=(Subscription&& src);
/**
+ * Checks if the subscription is disabled.
+ * @return `true` if this subscription is disabled.
+ */
+ bool IsDisabled() const;
+
+ /**
+ * Allows to enable or disable current subscription.
+ * @param `value` disabling the subscription if true and enabling if false.
+ * If the previous state was the same then it has no effect.
+ */
+ void SetDisabled(bool value);
+
+ /**
* Checks if this subscription has been added to the list of subscriptions.
* @return `true` if this subscription has been added.
*/
« no previous file with comments | « no previous file | src/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld