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

@@ -22,6 +22,15 @@
class GroovePlayer
{
public:
static GroovePlayer* getInstance() {
static GroovePlayer instance;
return &instance;
};
GroovePlayer(GroovePlayer const&) = delete;
void operator=(GroovePlayer const&) = delete;
private:
GroovePlayer();
};
#endif // GROOVEPLAYER_H