diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2015-04-07 15:40:14 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2015-04-07 15:41:31 +0200 |
| commit | cbb0039fe542c0d8281601d25c04de487c84fa17 (patch) | |
| tree | 73462a423ef875e77be3ca97b2939ad06b199854 /app/pebble.cpp | |
| parent | 01dca8bb1697fce6a05ab6a613e8ceaca9d4bfec (diff) | |
Implemented checking for latest firmware version
Diffstat (limited to 'app/pebble.cpp')
| -rw-r--r-- | app/pebble.cpp | 3 |
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(); |
