browser: add support for sorting by mtime in local browser

This commit is contained in:
Andrzej Rybczak
2013-05-16 20:57:03 +02:00
parent 1c6c9e9c5a
commit de9a999124
3 changed files with 20 additions and 2 deletions

View File

@@ -160,12 +160,24 @@ unsigned MutableSong::getDuration() const
return Song::getDuration();
}
time_t MutableSong::getMTime() const
{
if (m_mtime > 0)
return m_mtime;
else
return Song::getMTime();
}
void MutableSong::setDuration(unsigned int duration)
{
m_duration = duration;
}
void MutableSong::setMTime(time_t mtime)
{
m_mtime = mtime;
}
void MutableSong::setTags(SetFunction set, const std::string &value, const std::string &delimiter)
{
std::vector<std::string> tags;