Index: include/AdblockPlus/FilterEngine.h |
=================================================================== |
--- a/include/AdblockPlus/FilterEngine.h |
+++ b/include/AdblockPlus/FilterEngine.h |
@@ -8,52 +8,34 @@ |
#include <AdblockPlus/JsValue.h> |
#include "tr1_memory.h" |
namespace AdblockPlus |
{ |
class FilterEngine; |
- class JsObject : public JsValue |
- { |
- public: |
- std::string GetProperty(const std::string& name, const std::string& defaultValue) const; |
- int64_t GetProperty(const std::string& name, int64_t defaultValue) const; |
- bool GetProperty(const std::string& name, bool defaultValue) const; |
- inline std::string GetProperty(const std::string& name, const char* defaultValue) const |
- { |
- return GetProperty(name, std::string(defaultValue)); |
- } |
- inline int64_t GetProperty(const std::string& name, int defaultValue) const |
- { |
- return GetProperty(name, static_cast<int64_t>(defaultValue)); |
- } |
- |
- protected: |
- JsObject(JsValuePtr value); |
- }; |
- |
- class Filter : public JsObject, |
+ class Filter : public JsValue, |
public std::tr1::enable_shared_from_this<Filter> |
{ |
public: |
enum Type {TYPE_BLOCKING, TYPE_EXCEPTION, |
TYPE_ELEMHIDE, TYPE_ELEMHIDE_EXCEPTION, |
TYPE_COMMENT, TYPE_INVALID}; |
+ Type GetType(); |
bool IsListed(); |
void AddToList(); |
void RemoveFromList(); |
bool operator==(const Filter& filter) const; |
Filter(JsValuePtr value); |
}; |
- class Subscription : public JsObject, |
+ class Subscription : public JsValue, |
public std::tr1::enable_shared_from_this<Subscription> |
{ |
public: |
bool IsListed(); |
void AddToList(); |
void RemoveFromList(); |
void UpdateFilters(); |
bool IsUpdating(); |