move a few small functions to actions

This commit is contained in:
Andrzej Rybczak
2012-09-04 20:47:29 +02:00
parent 09e746aa05
commit ef55093586
5 changed files with 55 additions and 86 deletions

View File

@@ -30,8 +30,6 @@
class Playlist : public Screen<NC::Window>, public Filterable, public HasSongs, public Searchable
{
public:
enum Movement { mUp, mDown };
Playlist() : NowPlaying(-1), itsTotalLength(0), itsRemainingTime(0), itsScrollBegin(0) { }
~Playlist() { }
@@ -73,11 +71,8 @@ class Playlist : public Screen<NC::Window>, public Filterable, public HasSongs,
bool isPlaying() { return NowPlaying >= 0 && !Items->empty(); }
const MPD::Song *NowPlayingSong();
void MoveSelectedItems(Movement where);
void Sort();
void Reverse();
void AdjustSortOrder(Movement where);
bool SortingInProgress();
void EnableHighlighting();
@@ -92,6 +87,9 @@ class Playlist : public Screen<NC::Window>, public Filterable, public HasSongs,
bool checkForSong(const MPD::Song &s);
void moveSortOrderUp();
void moveSortOrderDown();
void registerHash(size_t hash);
void unregisterHash(size_t hash);