Added base of code to allow sending backend updates to connected clients.

This commit is contained in:
Kevin Whitaker
2017-01-29 17:27:27 -05:00
parent 22f1b90238
commit ab4df84657
8 changed files with 53 additions and 3 deletions

View File

@@ -22,6 +22,8 @@
#include <Wt/WApplication>
#include "GroovePlayer.h"
#include "db/AudioTrack.h"
#include "db/User.h"
class WebInterface : public Wt::WApplication
{
@@ -29,6 +31,10 @@ public:
WebInterface(const Wt::WEnvironment& env);
~WebInterface();
void loginCompleted();
void playPauseActionFromServer(User* userPausing);
void songChangedFromServer(AudioTrack* nextTrack);
void skipVotedFromServer(User* userRequestingToSkipCurrentTrack);
void voteUpdateFromServer(User* userVoting, bool forSkip);
private:
struct internal;
internal* priv_int = 0;