Implement UI for track skipping.

This commit is contained in:
Kevin Whitaker
2017-02-18 15:48:13 -05:00
parent 1186b7a439
commit 289c1790a7
4 changed files with 63 additions and 5 deletions

View File

@@ -74,13 +74,14 @@ void WebInterface::songChangedFromServer(AudioTrack nextTrack)
void WebInterface::skipVotedFromServer(User userRequestingToSkipCurrentTrack)
{
//priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"skip");
priv_int->playerUI->updateSkipRequestedFromServer();
//TODO: show notification
triggerUpdate();
}
void WebInterface::skipVoteUpdateFromServer(User userVoting, bool forSkip)
{
//priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"vote");
if(!forSkip) priv_int->playerUI->updateSkipDeniedFromServer();
triggerUpdate();
}
@@ -92,7 +93,7 @@ void WebInterface::voteNextSongFromServer(User userVoting, AudioTrack trackVoted
void WebInterface::voteNextPollClosedFromServer()
{
//priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"voteclosed");
priv_int->playerUI->updateVotingEnded();
triggerUpdate();
}