OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 * Assignment operator | 111 * Assignment operator |
112 */ | 112 */ |
113 Subscription& operator=(const Subscription& src); | 113 Subscription& operator=(const Subscription& src); |
114 | 114 |
115 /** | 115 /** |
116 * Move assignment operator | 116 * Move assignment operator |
117 */ | 117 */ |
118 Subscription& operator=(Subscription&& src); | 118 Subscription& operator=(Subscription&& src); |
119 | 119 |
120 /** | 120 /** |
| 121 * Checks if the subscription is disabled. |
| 122 * @return `true` if this subscription is disabled. |
| 123 */ |
| 124 bool IsDisabled() const; |
| 125 |
| 126 /** |
| 127 * Allows to enable or disable current subscription. |
| 128 * @param `value` disabling the subscription if true and enabling if false. |
| 129 * If the previous state was the same then it has no effect. |
| 130 */ |
| 131 void SetDisabled(bool value); |
| 132 |
| 133 /** |
121 * Checks if this subscription has been added to the list of subscriptions. | 134 * Checks if this subscription has been added to the list of subscriptions. |
122 * @return `true` if this subscription has been added. | 135 * @return `true` if this subscription has been added. |
123 */ | 136 */ |
124 bool IsListed() const; | 137 bool IsListed() const; |
125 | 138 |
126 /** | 139 /** |
127 * Adds this subscription to the list of subscriptions. | 140 * Adds this subscription to the list of subscriptions. |
128 */ | 141 */ |
129 void AddToList(); | 142 void AddToList(); |
130 | 143 |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 void FilterChanged(const FilterChangeCallback& callback, JsValueList&& param
s) const; | 572 void FilterChanged(const FilterChangeCallback& callback, JsValueList&& param
s) const; |
560 FilterPtr GetWhitelistingFilter(const std::string& url, | 573 FilterPtr GetWhitelistingFilter(const std::string& url, |
561 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; | 574 ContentTypeMask contentTypeMask, const std::string& documentUrl) const; |
562 FilterPtr GetWhitelistingFilter(const std::string& url, | 575 FilterPtr GetWhitelistingFilter(const std::string& url, |
563 ContentTypeMask contentTypeMask, | 576 ContentTypeMask contentTypeMask, |
564 const std::vector<std::string>& documentUrls) const; | 577 const std::vector<std::string>& documentUrls) const; |
565 }; | 578 }; |
566 } | 579 } |
567 | 580 |
568 #endif | 581 #endif |
OLD | NEW |