1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 import "UIConstants.js" as Const
11 Component.onCompleted: init()
14 if(Utils.isAuthorized()) {
15 //title = "Hi, "+Utils.name();
18 pageStack.initialPage = "LoginPage.qml";
24 pageStack.currentPage.init();
27 function onRespRootNode(resp) {
31 function onErr(status) {
34 tip.show(qsTr("Ubuntu One authorization has failed. Try once again or check login settings."));
35 } else if(status==0) {
37 tip.show(qsTr("Unable to connect. Check internet connection and restart application."));
40 tip.show(qsTr("Unknown error: ")+status);
51 width: root.width; height: root.height
52 color: Const.DEFAULT_BACKGROUND_COLOR
55 spacing: Const.TEXT_MARGIN
56 anchors.horizontalCenter: parent.horizontalCenter
57 anchors.verticalCenter: parent.verticalCenter
61 source: "images/ubi100.png"
62 width: 104; height: 70
63 anchors.horizontalCenter: parent.horizontalCenter
68 anchors.horizontalCenter: parent.horizontalCenter
71 text: qsTr("Connecting...")
76 anchors.horizontalCenter: parent.horizontalCenter
83 iconSource: "images/close.png"
84 anchors { right: parent.right; top: parent.top; margins: Const.DEFAULT_MARGIN }
85 onButtonClicked: Qt.quit()
89 anchors.bottom: ver.top
90 anchors.horizontalCenter: parent.horizontalCenter
93 text: "v0.9.4-1 © 2012 Michal Kosciesza"
98 anchors.bottom: box.bottom
99 anchors.bottomMargin: 2*Const.TEXT_MARGIN
100 anchors.horizontalCenter: parent.horizontalCenter
103 text: "http://ubi.garage.maemo.org"