X-Git-Url: http://git.maemo.org/git/?p=groove;a=blobdiff_plain;f=splayer.cpp;h=23fe2a066d590accc25a384897d8609fe4dc2d5f;hp=a59899db8516909d25f4cc58cd2c0cedb1df0085;hb=4adbefb36e52cb33564e704d8ea6a49425db8caf;hpb=a8bf5223d571ba94c0c4ce4e36b1bc2e7c5a81f0;ds=inline diff --git a/splayer.cpp b/splayer.cpp index a59899d..23fe2a0 100644 --- a/splayer.cpp +++ b/splayer.cpp @@ -56,6 +56,19 @@ sPlayer::~sPlayer() //reply->~QIODevice(); media->~MediaNode(); } +void sPlayer::back() +{ + media->stop(); + if(pl->existAt(pl->currentplaying()-1)) + { + pl->setCurrentPlaying(pl->currentplaying()-1); + if(pl->bReady(pl->currentplaying())) + this->start(pl->currentplaying()); + } + else + pl->setCurrentPlaying(-1); +} + void sPlayer::abortDownload() { //pd->hide();