Kickr Skeleton Code

Added Skeleton code for device discovery, config
and runtime. Now need to develop the WFApi class
to support each function.
This commit is contained in:
Mark Liversedge
2013-01-20 19:11:16 +00:00
parent 297579e456
commit 52b896ecf2
13 changed files with 489 additions and 2 deletions

View File

@@ -122,6 +122,8 @@
#include "LibraryParser.h"
#include "TrainDB.h"
#include "WFApi.h"
QList<MainWindow *> mainwindows; // keep track of all the MainWindows we have open
QDesktopWidget *desktop = NULL;
@@ -130,6 +132,8 @@ MainWindow::MainWindow(const QDir &home) :
zones_(new Zones), hrzones_(new HrZones),
ride(NULL), workout(NULL)
{
qDebug()<<"currentstate="<<WFApi::getInstance()->currentState();
WFApi::getInstance()->enableBTLE(true, true);
if (desktop == NULL) desktop = QApplication::desktop();
static const QIcon hideIcon(":images/toolbar/main/hideside.png");