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

@@ -50,6 +50,7 @@ public:
Wt::WPushButton* playpause;
Wt::WContainerWidget* skipControls;
Wt::WPushButton* skipRequest;
Wt::WPushButton* skipDeny;
bool isPaused = false;
//TODO:put in controls for requesting/admin skip and adding users as admin.
@@ -60,8 +61,13 @@ public:
void playpauseClicked();
void playpauseUpdated();
void skipRequestClicked();
void skipDenyClicked();
void updateDetailsFromServer(AudioTrack track);
void updateProgressFromTimer();
void updateSkipRequestedFromServer();
void updateSkipDeniedFromServer();
void updateVotingEnded();
};
#endif // PLAYERINTERFACE_H