1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
4 import "UIConstants.js" as Const
13 U1.getToken(user.text,pass.text,root)
16 function onResp(secrets,account) {
18 Utils.setCustomerKey(secrets.consumer_key);
19 Utils.setCustomerSecret(secrets.consumer_secret);
20 Utils.setToken(secrets.token);
21 Utils.setTokenSecret(secrets.secret);
22 Utils.setName(account.username);
24 tip.show(qsTr("Logged in!"));
25 pageStack.initialPage = "FilesPage.qml";
26 pageStack.currentPage.init();
29 function onErr(status) {
32 tip.show(qsTr("Ubuntu One authorization has failed. Try once again or check login settings."));
33 } else if(status==0) {
34 tip.show(qsTr("Unable to connect. Check internet connection."));
36 tip.show(qsTr("Unknown error: ")+status);
44 contentHeight: content.height+Const.TOP_BAR_HEIGHT+Const.SYSTEM_BAR_HEIGHT+Const.TEXT_MARGIN
48 spacing: Const.DEFAULT_MARGIN
50 width: root.width-2*Const.TEXT_MARGIN
57 text: qsTr("Ubuntu One sign in:")
64 placeholderText: qsTr("User ID")
65 anchors.left: parent.left
66 anchors.right: parent.right
71 placeholderText: qsTr("Password")
72 echoMode: TextInput.Password
73 anchors.left: parent.left
74 anchors.right: parent.right
83 user.closeSoftwareInputPanel();
84 pass.closeSoftwareInputPanel();
86 anchors.left: parent.left