use SongIterator

This commit is contained in:
Andrzej Rybczak
2014-11-01 19:45:19 +01:00
parent 485e6ee4a3
commit 4ad5c33f32
10 changed files with 138 additions and 100 deletions

View File

@@ -43,6 +43,14 @@ struct Song
virtual ~Song() { }
Song(mpd_song *s);
Song(const Song &rhs) : m_song(rhs.m_song), m_hash(rhs.m_hash) { }
Song(Song &&rhs) : m_song(std::move(rhs.m_song)), m_hash(rhs.m_hash) { }
Song &operator=(Song rhs) {
m_song = std::move(rhs.m_song);
m_hash = rhs.m_hash;
return *this;
}
std::string get(mpd_tag_type type, unsigned idx = 0) const;