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";
26 secret: Utils.tokenSecret(),
27 consumer_key : Utils.customerKey(),
28 consumer_secret: Utils.customerSecret()
30 U1.getRootNode(secrets,root);
32 pageStack.currentPage.init();
35 function onRespRootNode(resp) {
39 function onErr(status) {
42 tip.show(qsTr("Ubuntu One authorization has failed. Try once again or check login settings."));
43 } else if(status==0) {
44 tip.show(qsTr("Unable to connect. Check internet connection."));
46 tip.show(qsTr("Unknown error: ")+status);
57 width: root.width; height: root.height
58 color: Const.DEFAULT_BACKGROUND_COLOR
61 spacing: Const.TEXT_MARGIN
62 anchors.horizontalCenter: parent.horizontalCenter
63 anchors.verticalCenter: parent.verticalCenter
67 source: "images/ubi100.png"
68 width: 104; height: 70
69 anchors.horizontalCenter: parent.horizontalCenter
70 //y: (box.height-height)/3
75 //anchors.top: pic.bottom
76 //anchors.margins: Const.TEXT_MARGIN
77 anchors.horizontalCenter: parent.horizontalCenter
80 text: qsTr("Connecting...")
84 //anchors.top: loading.bottom
85 //anchors.margins: 2*Const.TEXT_MARGIN
86 anchors.horizontalCenter: parent.horizontalCenter
92 anchors.bottom: ver.top
93 anchors.horizontalCenter: parent.horizontalCenter
96 text: "v0.9.3-1 © 2012 Michal Kosciesza"
101 anchors.bottom: box.bottom
102 anchors.bottomMargin: 2*Const.TEXT_MARGIN
103 anchors.horizontalCenter: parent.horizontalCenter
106 text: "http://ubi.garage.maemo.org"