1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 import "UIConstants.js" as Const
9 color: Const.DEFAULT_BACKGROUND_COLOR
13 root.state = "closed";
16 Component.onCompleted: init()
19 if(Utils.isAuthorized()) {
20 //title = "Hi, "+Utils.name();
23 pageStack.initialPage = "LoginPage.qml";
31 secret: Utils.tokenSecret(),
32 consumer_key : Utils.customerKey(),
33 consumer_secret: Utils.customerSecret()
35 U1.getRootNode(secrets,root);
38 function onRespRootNode(resp) {
42 function onErr(status) {
45 tip.show(qsTr("Authorization failed!"));
46 } else if(status==0) {
47 tip.show(qsTr("Unable to connect!"));
49 tip.show(qsTr("Error: ")+status);
55 source: "images/ubi100.png"
56 width: 104; height: 70
57 anchors.horizontalCenter: parent.horizontalCenter
58 y: (root.height-height)/3
63 anchors.top: pic.bottom
64 anchors.margins: Const.TEXT_MARGIN
65 anchors.horizontalCenter: parent.horizontalCenter
75 anchors.top: loading.bottom
76 anchors.margins: 2*Const.TEXT_MARGIN
77 source: "images/progress.png"
78 sourceSize.width: width
79 sourceSize.height: height
80 anchors.horizontalCenter: parent.horizontalCenter
81 Component.onCompleted: animationIcon.start()
86 properties: "rotation"
90 loops: Animation.Infinite
95 anchors.bottom: root.bottom
96 anchors.bottomMargin: Const.TEXT_MARGIN
97 anchors.horizontalCenter: parent.horizontalCenter
110 //PropertyChanges { target: root; opacity: 1 }
111 PropertyChanges { target: root; y: 0}
115 //PropertyChanges { target: root; opacity: 0 }
116 PropertyChanges { target: root; y: root.height }
120 transitions: Transition {
121 //NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad }
122 NumberAnimation { properties: "y"; easing.type: Easing.InOutQuad }