add playlist renaming support

This commit is contained in:
unK
2008-09-06 13:55:35 +02:00
parent 7e5b023d2a
commit c9263b8396
3 changed files with 25 additions and 2 deletions

View File

@@ -302,6 +302,15 @@ void MPDConnection::Move(const string &path, int from, int to) const
}
}
void MPDConnection::Rename(const string &from, const string &to) const
{
if (isConnected)
{
mpd_sendRenameCommand(itsConnection, from.c_str(), to.c_str());
mpd_finishCommand(itsConnection);
}
}
void MPDConnection::GetPlaylistChanges(long long id, SongList &v) const
{
if (isConnected)