diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-02-16 18:20:45 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-02-16 18:20:45 +0100 |
commit | 43a8e2284eb87eefb9309cfc98d85a415001a8ac (patch) | |
tree | cf680e169835a623e9f0c6fb5e48f68f7eb1acde /src/search_engine.h | |
parent | 2ec7748acdb1c5cc0fbc6cdbdc64985060a96830 (diff) |
provide generic interface for dealing with selected items
Diffstat (limited to 'src/search_engine.h')
-rw-r--r-- | src/search_engine.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/search_engine.h b/src/search_engine.h index cff8365e..81fd7c29 100644 --- a/src/search_engine.h +++ b/src/search_engine.h @@ -51,6 +51,11 @@ class SearchEngine : public Screen< Menu< std::pair<Buffer *, MPD::Song *> > > virtual MPD::Song *CurrentSong(); + virtual bool allowsSelection() { return w->Choice() >= StaticOptions; } + virtual void ReverseSelection() { w->ReverseSelection(StaticOptions); } + virtual bool Deselect() { return w->Deselect(); } + virtual void GetSelectedSongs(MPD::SongList &); + void UpdateFoundList(); static size_t StaticOptions; |