summaryrefslogtreecommitdiff
path: root/src/search_engine.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-02-16 18:20:45 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2009-02-16 18:20:45 +0100
commit43a8e2284eb87eefb9309cfc98d85a415001a8ac (patch)
treecf680e169835a623e9f0c6fb5e48f68f7eb1acde /src/search_engine.h
parent2ec7748acdb1c5cc0fbc6cdbdc64985060a96830 (diff)
provide generic interface for dealing with selected items
Diffstat (limited to 'src/search_engine.h')
-rw-r--r--src/search_engine.h5
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;