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

Unified Diff: shell/src/FiltersCommand.h

Issue 10100009: FilterEngine API improvements (Closed)
Patch Set: Added filter access and addressed review comments Created April 5, 2013, 12:10 p.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
Index: shell/src/FiltersCommand.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/shell/src/FiltersCommand.h
@@ -0,0 +1,25 @@
+#ifndef FILTERS_COMMAND_H
+#define FILTERS_COMMAND_H
+
+#include <AdblockPlus.h>
+#include <string>
+
+#include "Command.h"
+
+class FiltersCommand : public Command
+{
+public:
+ explicit FiltersCommand(AdblockPlus::FilterEngine& filterEngine);
+ void operator()(const std::string& arguments);
+ std::string GetDescription() const;
+ std::string GetUsage() const;
+
+private:
+ AdblockPlus::FilterEngine& filterEngine;
+
+ void ShowFilters();
+ void AddFilter(const std::string& text);
+ void RemoveFilter(const std::string& text);
+};
+
+#endif

Powered by Google App Engine
This is Rietveld