Fix music dir being set in bad place again. Update web calls that backend calls to match const requirements. Have playlist and player part of backend class now for better handling. Set up getting first vote list and sending.
This commit is contained in:
@@ -63,7 +63,7 @@ void WebInterface::playPauseActionFromServer(User* userPausing)
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
void WebInterface::songChangedFromServer(AudioTrack* nextTrack)
|
||||
void WebInterface::songChangedFromServer(const AudioTrack* nextTrack)
|
||||
{
|
||||
priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"change");
|
||||
triggerUpdate();
|
||||
@@ -81,7 +81,7 @@ void WebInterface::voteUpdateFromServer(User* userVoting, bool forSkip)
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
void WebInterface::voteNextSongFromServer(User* userVoting, AudioTrack* trackVoted)
|
||||
void WebInterface::voteNextSongFromServer(User* userVoting, const AudioTrack* trackVoted)
|
||||
{
|
||||
priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"nextvote");
|
||||
triggerUpdate();
|
||||
@@ -92,3 +92,9 @@ void WebInterface::voteNextPollClosedFromServer()
|
||||
priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"voteclosed");
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
void WebInterface::voteTracksUpdatedFromServer(std::list<const AudioTrack *> voteableTracks)
|
||||
{
|
||||
priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"votechanged");
|
||||
triggerUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user