#include #include #include #include #include #include "notificationsourcemodel.h" #include "servicecontrol.h" #include "pebbles.h" #include "pebble.h" #include "applicationsmodel.h" #include "applicationsfiltermodel.h" #include "appstoreclient.h" #include "screenshotmodel.h" #include int main(int argc, char *argv[]) { QScopedPointer app(SailfishApp::application(argc, argv)); app->setApplicationName("pebble"); app->setOrganizationName(""); qmlRegisterUncreatableType("RockPool", 1, 0, "Pebble", "Get them from the model"); qmlRegisterUncreatableType("RockPool", 1, 0, "ApplicationsModel", "Get them from a Pebble object"); qmlRegisterUncreatableType("RockPool", 1, 0, "AppItem", "Get them from an ApplicationsModel"); qmlRegisterType("RockPool", 1, 0, "ApplicationsFilterModel"); qmlRegisterType("RockPool", 1, 0, "Pebbles"); qmlRegisterUncreatableType("RockPool", 1, 0, "NotificationSourceModel", "Get it from a Pebble object"); qmlRegisterType("RockPool", 1, 0, "ServiceController"); qmlRegisterType("RockPool", 1, 0, "AppStoreClient"); qmlRegisterType("RockPool", 1, 0, "ScreenshotModel"); QScopedPointer view(SailfishApp::createView()); view->rootContext()->setContextProperty("version", QStringLiteral(VERSION)); view->setSource(SailfishApp::pathTo("qml/Main.qml")); view->show(); return app->exec(); }