Make sql connection public to share same connection pool. Layout calls for user info from DB. Implement login path.

This commit is contained in:
Kevin Whitaker
2017-02-18 00:27:24 -05:00
parent 1279143931
commit c5e979e948
3 changed files with 80 additions and 4 deletions

View File

@@ -66,11 +66,11 @@ public:
};
std::list<AudioTrack> requestQueue;
std::list<PlayerEvent> lastInternalEvents;
Wt::Dbo::backend::Sqlite3* sqliteConnection;
Wt::Dbo::FixedSqlConnectionPool* connectionPool;
private:
GroovePlayerMgr (std::string dbFile);
~GroovePlayerMgr();
Wt::Dbo::backend::Sqlite3* sqliteConnection;
Wt::Dbo::FixedSqlConnectionPool* connectionPool;
bool continueEventLoop = true;
std::thread* grooveEvents;