remove extern int now_playing
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
class Playlist : public Screen< Menu<MPD::Song> >
|
||||
{
|
||||
public:
|
||||
Playlist() : NowPlaying(-1), OldPlaying(-1) { }
|
||||
~Playlist() { }
|
||||
|
||||
virtual void Init();
|
||||
virtual void SwitchTo();
|
||||
virtual void Resize();
|
||||
@@ -37,6 +40,12 @@ class Playlist : public Screen< Menu<MPD::Song> >
|
||||
virtual void EnterPressed();
|
||||
virtual void SpacePressed();
|
||||
|
||||
bool isPlaying() { return NowPlaying >= 0 && !w->Empty(); }
|
||||
const MPD::Song &NowPlayingSong();
|
||||
|
||||
int NowPlaying;
|
||||
int OldPlaying;
|
||||
|
||||
protected:
|
||||
std::string TotalLength();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user