Make GroovePlayer a singleton to avoid being created for each browser. Add login UI component to eventually hold landing screen. Actually start server with initial interface.

This commit is contained in:
Kevin Whitaker
2017-01-28 00:56:22 -05:00
parent 093f74a846
commit a60e2a0c34
6 changed files with 68 additions and 3 deletions

View File

@@ -18,3 +18,25 @@
*/
#include "WebInterface.h"
#include "ui/LoginInterface.h"
#include <Wt/WText>
struct WebInterface::internal
{
LoginInterface* loginUI;
};
WebInterface::WebInterface(const Wt::WEnvironment& env) : Wt::WApplication(env)
{
priv_int = new internal;
setTitle("Arbitrateor - Audio Jukebox");
priv_int->loginUI = new LoginInterface(this);
root()->addWidget(priv_int->loginUI);
}
void WebInterface::loginCompleted()
{
//Login completed, now bring up main inteface.
root()->removeWidget(priv_int->loginUI);
root()->addWidget(new Wt::WText("you did it"));
}