Prepare for the ressurection of filtering

This commit is contained in:
Andrzej Rybczak
2016-11-11 16:43:41 +01:00
parent 90f9a66ba4
commit cbba364685
7 changed files with 192 additions and 117 deletions

View File

@@ -122,6 +122,7 @@ enum class Type
ClearPlaylist,
SortPlaylist,
ReversePlaylist,
ApplyFilter,
Find,
FindItemForward,
FindItemBackward,
@@ -1036,6 +1037,15 @@ private:
NC::Menu<MPD::Song>::ConstIterator m_end;
};
struct ApplyFilter: public BaseAction
{
ApplyFilter(): BaseAction(Type::ApplyFilter, "apply_filter") { }
private:
virtual bool canBeRun() OVERRIDE;
virtual void run() OVERRIDE;
};
struct Find: BaseAction
{
Find(): BaseAction(Type::Find, "find") { }