replace timeval and time_t with boost::posix_time::ptime

This commit is contained in:
Andrzej Rybczak
2014-08-27 11:14:07 +02:00
parent 7fdace835b
commit b7ceae7273
17 changed files with 75 additions and 78 deletions

View File

@@ -38,7 +38,7 @@ struct Playlist: Screen<NC::Menu<MPD::Song>>, Filterable, HasSongs, Searchable,
virtual std::wstring title() OVERRIDE;
virtual ScreenType type() OVERRIDE { return ScreenType::Playlist; }
virtual void update() OVERRIDE { }
virtual void update() OVERRIDE;
virtual void enterPressed() OVERRIDE;
virtual void spacePressed() OVERRIDE;
@@ -71,8 +71,6 @@ struct Playlist: Screen<NC::Menu<MPD::Song>>, Filterable, HasSongs, Searchable,
void Reverse();
void EnableHighlighting();
void UpdateTimer();
time_t Timer() const { return itsTimer; }
void SetSelectedItemsPriority(int prio);
@@ -101,7 +99,7 @@ private:
size_t itsRemainingTime;
size_t itsScrollBegin;
time_t itsTimer;
boost::posix_time::ptime itsTimer;
MPD::Status m_status;
unsigned m_old_playlist_version;