get rid of global mpd status object

This commit is contained in:
Andrzej Rybczak
2013-04-07 17:28:10 +02:00
parent d451731562
commit 2184fb7c73
11 changed files with 321 additions and 209 deletions

View File

@@ -78,8 +78,12 @@ struct Playlist: Screen<NC::Menu<MPD::Song>>, Filterable, HasSongs, Searchable,
void SetSelectedItemsPriority(int prio);
bool checkForSong(const MPD::Song &s);
void setStatus(MPD::Status status);
unsigned version() const;
int currentSongPosition() const;
unsigned currentSongLength() const;
bool checkForSong(const MPD::Song &s);
void registerHash(size_t hash);
void unregisterHash(size_t hash);
@@ -101,6 +105,8 @@ private:
size_t itsScrollBegin;
time_t itsTimer;
MPD::Status m_status;
};
extern Playlist *myPlaylist;