#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" int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); qmlRegisterUncreatableType("RockWork", 1, 0, "Pebble", "Get them from the model"); qmlRegisterUncreatableType("RockWork", 1, 0, "ApplicationsModel", "Get them from a Pebble object"); qmlRegisterUncreatableType("RockWork", 1, 0, "AppItem", "Get them from an ApplicationsModel"); qmlRegisterType("RockWork", 1, 0, "ApplicationsFilterModel"); qmlRegisterType("RockWork", 1, 0, "Pebbles"); qmlRegisterUncreatableType("RockWork", 1, 0, "NotificationSourceModel", "Get it from a Pebble object"); qmlRegisterType("RockWork", 1, 0, "ServiceController"); qmlRegisterType("RockWork", 1, 0, "AppStoreClient"); qmlRegisterType("RockWork", 1, 0, "ScreenshotModel"); QQuickView view; view.engine()->rootContext()->setContextProperty("version", QStringLiteral(VERSION)); view.engine()->rootContext()->setContextProperty("homePath", QStandardPaths::standardLocations(QStandardPaths::HomeLocation).first()); view.setSource(QUrl(QStringLiteral("qrc:///Main.qml"))); view.setResizeMode(QQuickView::SizeRootObjectToView); view.show(); return app.exec(); }