add support for priorities (queueing)

This commit is contained in:
Andrzej Rybczak
2012-08-14 16:09:45 +02:00
parent d51edfd262
commit bab756c579
17 changed files with 112 additions and 8 deletions

View File

@@ -84,6 +84,13 @@ std::string MPD::Song::GetLength(unsigned pos) const
return !len ? "-:--" : ShowTime(len);
}
std::string MPD::Song::GetPriority(unsigned pos) const
{
if (pos > 0)
return "";
return IntoStr(GetPrio());
}
void MPD::Song::Localize()
{
# ifdef HAVE_ICONV_H