Added base of code to allow sending backend updates to connected clients.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user