diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-31 23:09:56 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-08-31 23:09:56 +0200 |
commit | 4c944085d62e566fd3c99b053907d8d8b08790b8 (patch) | |
tree | 1265dfb218794902ac085998127bb315b15c7976 /src/tag_editor.h | |
parent | f1625c920ae900466b84bf1ca36cf3a5f5979aef (diff) |
menu: generalize filtering, introduce interfaces
Diffstat (limited to 'src/tag_editor.h')
-rw-r--r-- | src/tag_editor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tag_editor.h b/src/tag_editor.h index 52a2053c..a9b4b8f1 100644 --- a/src/tag_editor.h +++ b/src/tag_editor.h @@ -34,9 +34,10 @@ #include "mpdpp.h" #include "mutable_song.h" +#include "regex_filter.h" #include "screen.h" -class TagEditor : public Screen<Window> +class TagEditor : public Screen<Window>, public Filterable { public: TagEditor() : FParser(0), FParserHelper(0), FParserLegend(0), FParserPreview(0), itsBrowsedDir("/") { } @@ -61,7 +62,8 @@ class TagEditor : public Screen<Window> virtual void ReverseSelection() { Tags->ReverseSelection(); } virtual void GetSelectedSongs(MPD::SongList &); - virtual void ApplyFilter(const std::string &); + virtual std::string currentFilter(); + virtual void applyFilter(const std::string &filter); virtual List *GetList(); |