Add more UI events and get backend threaded up.

This commit is contained in:
Kevin Whitaker
2017-01-29 19:39:30 -05:00
parent ab4df84657
commit ad26e8351f
5 changed files with 47 additions and 3 deletions

View File

@@ -18,8 +18,6 @@
*/
#include "GroovePlayer.h"
#include "db/User.h"
#include "db/AudioTrack.h"
#include "db/UserAction.h"
#include <Wt/WLogger>
#include <Wt/WServer>
@@ -39,8 +37,29 @@ GroovePlayer::GroovePlayer(std::string dbFile) : sqliteConnection(dbFile)
{
Wt::log("info") << "Using Existing DB.";
}
grooveAudioScanner = new std::thread(grooveAudioScannerLoop);
grooveEvents = new std::thread(grooveEventLoop);
}
std::vector<AudioTrack*> GroovePlayer::getNextVoteBatch()
{
//TODO
}
void GroovePlayer::grooveEventLoop()
{
//TODO
}
void GroovePlayer::grooveAudioScannerLoop()
{
//TODO
}
//TODO:use this code when sending to UI.
// Wt::WServer::instance()->postAll([]() {
// Wt::WApplication* app = Wt::WApplication::instance();