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