actions: make find forward/backward incremental

This commit is contained in:
Andrzej Rybczak
2014-11-06 23:22:55 +01:00
parent 7c71df8dc7
commit 6a5f46a458
21 changed files with 236 additions and 229 deletions

View File

@@ -22,6 +22,7 @@
#define NCMPCPP_INTERFACES_H
#include <string>
#include "enums.h"
#include "gcc.h"
#include "screen.h"
#include "song.h"
@@ -30,9 +31,9 @@
struct Searchable
{
virtual bool allowsSearching() = 0;
virtual bool setSearchConstraint(const std::string &constraint) = 0;
virtual void findForward(bool wrap) = 0;
virtual void findBackward(bool wrap) = 0;
virtual void setSearchConstraint(const std::string &constraint) = 0;
virtual void clearConstraint() = 0;
virtual bool find(SearchDirection direction, bool wrap, bool skip_current) = 0;
};
struct HasSongs