| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 76   Type mType; | 76   Type mType; | 
| 77 | 77 | 
| 78   EMSCRIPTEN_KEEPALIVE const String& GetID() const | 78   EMSCRIPTEN_KEEPALIVE const String& GetID() const | 
| 79   { | 79   { | 
| 80     return mID; | 80     return mID; | 
| 81   } | 81   } | 
| 82 | 82 | 
| 83   SUBSCRIPTION_STRING_PROPERTY(mTitle, SUBSCRIPTION_TITLE, GetTitle, SetTitle); | 83   SUBSCRIPTION_STRING_PROPERTY(mTitle, SUBSCRIPTION_TITLE, GetTitle, SetTitle); | 
| 84   SUBSCRIPTION_PROPERTY(bool, mDisabled, SUBSCRIPTION_DISABLED, | 84   SUBSCRIPTION_PROPERTY(bool, mDisabled, SUBSCRIPTION_DISABLED, | 
| 85         GetDisabled, SetDisabled); | 85         GetDisabled, SetDisabled); | 
|  | 86   SUBSCRIPTION_PROPERTY(bool, mListed, NONE, GetListed, SetListed); | 
| 86 | 87 | 
| 87   EMSCRIPTEN_KEEPALIVE unsigned GetFilterCount() const | 88   EMSCRIPTEN_KEEPALIVE unsigned GetFilterCount() const | 
| 88   { | 89   { | 
| 89     return mFilters.size(); | 90     return mFilters.size(); | 
| 90   } | 91   } | 
| 91 | 92 | 
| 92   EMSCRIPTEN_KEEPALIVE Filter* FilterAt(unsigned index); | 93   EMSCRIPTEN_KEEPALIVE Filter* FilterAt(unsigned index); | 
| 93   EMSCRIPTEN_KEEPALIVE int IndexOfFilter(Filter* filter); | 94   EMSCRIPTEN_KEEPALIVE int IndexOfFilter(Filter* filter); | 
| 94   EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; | 95   EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; | 
| 95   EMSCRIPTEN_KEEPALIVE OwnedString SerializeFilters() const; | 96   EMSCRIPTEN_KEEPALIVE OwnedString SerializeFilters() const; | 
| 96 | 97 | 
| 97   static EMSCRIPTEN_KEEPALIVE Subscription* FromID(const String& id); | 98   static EMSCRIPTEN_KEEPALIVE Subscription* FromID(const String& id); | 
|  | 99 | 
|  | 100   template<typename T> | 
|  | 101   T* As(); | 
| 98 }; | 102 }; | 
| 99 | 103 | 
| 100 typedef intrusive_ptr<Subscription> SubscriptionPtr; | 104 typedef intrusive_ptr<Subscription> SubscriptionPtr; | 
| OLD | NEW | 
|---|