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

Unified Diff: shell/src/FiltersCommand.cpp

Issue 10100009: FilterEngine API improvements (Closed)
Patch Set: Changed filter type enum Created April 9, 2013, 5:55 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 | « include/AdblockPlus/FilterEngine.h ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/FiltersCommand.cpp
===================================================================
--- a/shell/src/FiltersCommand.cpp
+++ b/shell/src/FiltersCommand.cpp
@@ -10,32 +10,32 @@ namespace
void ShowFilterList(const FilterList& filters)
{
for (FilterList::const_iterator it = filters.begin();
it != filters.end(); it++)
{
std::string type;
switch ((*it)->GetProperty("type", -1))
{
- case AdblockPlus::BLOCKING_RULE:
+ case AdblockPlus::Filter::TYPE_BLOCKING:
type = "blocking";
break;
- case AdblockPlus::EXCEPTION_RULE:
+ case AdblockPlus::Filter::TYPE_EXCEPTION:
type = "exception";
break;
- case AdblockPlus::ELEMHIDE_RULE:
+ case AdblockPlus::Filter::TYPE_ELEMHIDE:
type = "elemhide";
break;
- case AdblockPlus::ELEMHIDE_EXCEPTION_RULE:
+ case AdblockPlus::Filter::TYPE_ELEMHIDE_EXCEPTION:
type = "elemhideexception";
break;
- case AdblockPlus::COMMENT_RULE:
+ case AdblockPlus::Filter::TYPE_COMMENT:
type = "comment";
break;
- case AdblockPlus::INVALID_RULE:
+ case AdblockPlus::Filter::TYPE_INVALID:
type = "invalid";
break;
default:
type = "(unknown type)";
break;
}
std::cout << (*it)->GetProperty("text", "(no text)") << " - " <<
type << std::endl;
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld