summaryrefslogtreecommitdiff
path: root/app/pebble.cpp
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2015-04-07 15:40:14 +0200
committerTomasz Sterna <tomek@xiaoka.com>2015-04-07 15:41:31 +0200
commitcbb0039fe542c0d8281601d25c04de487c84fa17 (patch)
tree73462a423ef875e77be3ca97b2939ad06b199854 /app/pebble.cpp
parent01dca8bb1697fce6a05ab6a613e8ceaca9d4bfec (diff)
Implemented checking for latest firmware version
Diffstat (limited to 'app/pebble.cpp')
-rw-r--r--app/pebble.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/pebble.cpp b/app/pebble.cpp
index dd3c915..04ff6a8 100644
--- a/app/pebble.cpp
+++ b/app/pebble.cpp
@@ -34,6 +34,7 @@
#include <sailfishapp.h>
#include "pebbledinterface.h"
#include "pebbleappiconprovider.h"
+#include "pebblefirmware.h"
#include "pebblestoreview.h"
int main(int argc, char *argv[])
@@ -54,9 +55,11 @@ int main(int argc, char *argv[])
QScopedPointer<QQuickView> view(SailfishApp::createView());
QScopedPointer<PebbledInterface> pebbled(new PebbledInterface);
QScopedPointer<PebbleAppIconProvider> appicons(new PebbleAppIconProvider(pebbled.data()));
+ QScopedPointer<PebbleFirmware> firmware(new PebbleFirmware);
view->rootContext()->setContextProperty("APP_VERSION", APP_VERSION);
view->rootContext()->setContextProperty("pebbled", pebbled.data());
+ view->rootContext()->setContextProperty("pebbleFirmware", firmware.data());
view->engine()->addImageProvider("pebble-app-icon", appicons.data());
view->setSource(SailfishApp::pathTo("qml/pebble.qml"));
view->show();