diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2014-11-04 20:53:03 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2014-11-04 21:31:07 +0100 |
commit | 12772c47f98f233816d4f788410ace364a2b8504 (patch) | |
tree | b3b92f06c39e44d6257a5c5bbc17e2101b0925b5 /src/playlist_editor.h | |
parent | c01e734e6e16fc345311819b61dde2bf6f682208 (diff) |
menu: remove search related methods
Diffstat (limited to 'src/playlist_editor.h')
-rw-r--r-- | src/playlist_editor.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/playlist_editor.h b/src/playlist_editor.h index e1d4bc10..3a8b6480 100644 --- a/src/playlist_editor.h +++ b/src/playlist_editor.h @@ -24,6 +24,7 @@ #include <boost/date_time/posix_time/posix_time_types.hpp> #include "interfaces.h" +#include "regex_filter.h" #include "screen.h" struct PlaylistEditor: Screen<NC::Window *>, Filterable, HasColumns, HasSongs, Searchable, Tabbable @@ -54,9 +55,9 @@ struct PlaylistEditor: Screen<NC::Window *>, Filterable, HasColumns, HasSongs, S // Searchable implementation virtual bool allowsSearching() OVERRIDE; - virtual bool search(const std::string &constraint) OVERRIDE; - virtual void nextFound(bool wrap) OVERRIDE; - virtual void prevFound(bool wrap) OVERRIDE; + virtual bool setSearchConstraint(const std::string &constraint) OVERRIDE; + virtual void findForward(bool wrap) OVERRIDE; + virtual void findBackward(bool wrap) OVERRIDE; // HasSongs implementation virtual ProxySongList proxySongList() OVERRIDE; @@ -98,6 +99,9 @@ private: const int m_window_timeout; const boost::posix_time::time_duration m_fetching_delay; + + RegexFilter<MPD::Playlist> m_playlists_search_predicate; + RegexFilter<MPD::Song> m_content_search_predicate; }; extern PlaylistEditor *myPlaylistEditor; |