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:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user