add allowsFiltering / allowsSearching checks

This commit is contained in:
Andrzej Rybczak
2012-09-03 16:50:01 +02:00
parent ce80c21ea5
commit 506e79b4b1
14 changed files with 82 additions and 3 deletions

View File

@@ -28,12 +28,14 @@
struct Filterable
{
virtual bool allowsFiltering() = 0;
virtual std::string currentFilter() = 0;
virtual void applyFilter(const std::string &filter) = 0;
};
struct Searchable
{
virtual bool allowsSearching() = 0;
virtual bool search(const std::string &constraint) = 0;
virtual void nextFound(bool wrap) = 0;
virtual void prevFound(bool wrap) = 0;