Resurrect filtering of lists (playlist only for now)

This commit is contained in:
Andrzej Rybczak
2016-11-13 00:21:25 +01:00
parent 60e66b47b6
commit 29b1813c6d
14 changed files with 360 additions and 127 deletions

View File

@@ -89,10 +89,22 @@ private:
std::vector<std::string> m_values;
};
struct ApplyFilterImmediately
{
ApplyFilterImmediately(Searchable *w)
: m_w(w)
{ }
bool operator()(const char *s);
private:
Searchable *m_w;
};
struct FindImmediately
{
FindImmediately(Searchable *w, SearchDirection direction)
: m_w(w), m_direction(direction), m_found(true)
: m_w(w), m_direction(direction)
{ }
bool operator()(const char *s);
@@ -100,8 +112,6 @@ struct FindImmediately
private:
Searchable *m_w;
const SearchDirection m_direction;
std::string m_s;
bool m_found;
};
struct TryExecuteImmediateCommand