Merge lp:~juhapekka-piiroinen/ubuntu-qtcreator-plugins/add-support-for-multiple-devices into lp:ubuntu-qtcreator-plugins

Proposed by Juhapekka Piiroinen
Status: Merged
Approved by: Zoltan Balogh
Approved revision: 193
Merged at revision: 182
Proposed branch: lp:~juhapekka-piiroinen/ubuntu-qtcreator-plugins/add-support-for-multiple-devices
Merge into: lp:ubuntu-qtcreator-plugins
Diff against target: 2566 lines (+1016/-806)
33 files modified
README (+1/-0)
qtcreator/share/qtcreator/ubuntu/menu.json (+33/-37)
qtcreator/share/qtcreator/ubuntu/scripts/device_flashdaily (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/device_flashdaily_bootstrap (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/device_hasnetwork (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/device_network_clone (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/device_portforward (+7/-6)
qtcreator/share/qtcreator/ubuntu/scripts/device_reboot (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/device_reboot2bootloader (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/device_reboot2recovery (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/device_rootshell (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/device_set_persist-sys-usb-config (+3/-1)
qtcreator/share/qtcreator/ubuntu/scripts/device_shutdown (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/device_time_clone (+3/-1)
qtcreator/share/qtcreator/ubuntu/scripts/device_version (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/openssh_connect (+8/-6)
qtcreator/share/qtcreator/ubuntu/scripts/openssh_install (+3/-1)
qtcreator/share/qtcreator/ubuntu/scripts/openssh_publickey (+6/-4)
qtcreator/share/qtcreator/ubuntu/scripts/openssh_remove (+5/-3)
qtcreator/share/qtcreator/ubuntu/scripts/openssh_version (+8/-6)
qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_buildanddeploypackage (+10/-8)
qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_buildpackage (+11/-9)
qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_close_all_apps (+3/-2)
qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_deploy_package (+13/-10)
qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_developertools (+8/-6)
qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_restart_appslense (+2/-1)
qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_run_app (+13/-11)
qtcreator/src/plugins/ubuntu/ubuntuconstants.h (+1/-0)
qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.cpp (+56/-32)
qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.h (+3/-1)
qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.ui (+760/-629)
qtcreator/src/plugins/ubuntu/ubuntumenu.cpp (+1/-0)
qtcreator/src/plugins/ubuntu/ubuntuprojectapplicationwizard.cpp (+8/-2)
To merge this branch: bzr merge lp:~juhapekka-piiroinen/ubuntu-qtcreator-plugins/add-support-for-multiple-devices
Reviewer Review Type Date Requested Status
Zoltan Balogh Pending
Review via email: mp+161948@code.launchpad.net

Description of the change

Adding support for multiple devices to Devices -tab.
Use ssh identify file for ssh and scp commands.
Added a fix for ARM platform (chromebook with 13.04), was missing application templates.

To post a comment you must log in.
191. By Juhapekka Piiroinen

Linked to bugs.

192. By Juhapekka Piiroinen

Fixed an issue with openssh_publickey script.
Improved Devices tab to use stackedwidgets.

193. By Juhapekka Piiroinen

added missing lines to pass the device serialnumber

194. By Juhapekka Piiroinen

.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'README'
--- README 2013-02-15 11:50:19 +0000
+++ README 2013-05-01 23:52:25 +0000
@@ -1,3 +1,4 @@
1
1Ubuntu Qt Creator plugins2Ubuntu Qt Creator plugins
2===================================3===================================
34
45
=== modified file 'qtcreator/share/qtcreator/ubuntu/menu.json'
--- qtcreator/share/qtcreator/ubuntu/menu.json 2013-04-26 08:19:25 +0000
+++ qtcreator/share/qtcreator/ubuntu/menu.json 2013-05-01 23:52:25 +0000
@@ -14,7 +14,7 @@
14 "deviceRequired": true,14 "deviceRequired": true,
15 "qmlProjectRequired": true,15 "qmlProjectRequired": true,
16 "actions": [16 "actions": [
17 "%SCRIPTDIRECTORY%/qtc_device_run_app %FOLDERNAME% %DISPLAYNAME%.desktop %DISPLAYNAME%.qml /home/phablet/dev_tmp /home/phablet/.local/share/applications"17 "%SCRIPTDIRECTORY%/qtc_device_run_app %SERIALNUMBER% %FOLDERNAME% %DISPLAYNAME%.desktop %DISPLAYNAME%.qml /home/phablet/dev_tmp /home/phablet/.local/share/applications"
18 ]18 ]
19 },19 },
20 {20 {
@@ -25,7 +25,7 @@
25 "deviceRequired": true,25 "deviceRequired": true,
26 "qmlProjectRequired": true,26 "qmlProjectRequired": true,
27 "actions": [27 "actions": [
28 "%SCRIPTDIRECTORY%/qtc_device_close_all_apps %DISPLAYNAME%"28 "%SCRIPTDIRECTORY%/qtc_device_close_all_apps %SERIALNUMBER% %DISPLAYNAME%"
29 ]29 ]
30 },30 },
31 {31 {
@@ -48,7 +48,7 @@
48 "qmlProjectRequired": true,48 "qmlProjectRequired": true,
49 "actions": [49 "actions": [
50 "%SCRIPTDIRECTORY%/qtc_project_create_package",50 "%SCRIPTDIRECTORY%/qtc_project_create_package",
51 "%SCRIPTDIRECTORY%/qtc_device_deploy_package ../%FOLDERNAME%*.deb phablet@127.0.0.1 2222 /home/phablet"51 "%SCRIPTDIRECTORY%/qtc_device_deploy_package %SERIALNUMBER% ../%FOLDERNAME%*.deb phablet@127.0.0.1 2222 /home/phablet"
52 ]52 ]
53 },53 },
54 {54 {
@@ -59,7 +59,7 @@
59 "deviceRequired": true,59 "deviceRequired": true,
60 "qmakeProjectRequired": true,60 "qmakeProjectRequired": true,
61 "actions": [61 "actions": [
62 "%SCRIPTDIRECTORY%/qtc_device_buildpackage %FOLDERNAME%"62 "%SCRIPTDIRECTORY%/qtc_device_buildpackage %SERIALNUMBER% %FOLDERNAME%"
63 ]63 ]
64 },64 },
65 {65 {
@@ -70,7 +70,7 @@
70 "deviceRequired": true,70 "deviceRequired": true,
71 "qmakeProjectRequired": true,71 "qmakeProjectRequired": true,
72 "actions": [72 "actions": [
73 "%SCRIPTDIRECTORY%/qtc_device_buildanddeploypackage %FOLDERNAME%"73 "%SCRIPTDIRECTORY%/qtc_device_buildanddeploypackage %SERIALNUMBER% %FOLDERNAME%"
74 ]74 ]
75 }75 }
76 ]76 ]
@@ -166,7 +166,7 @@
166 "keysequence": "Ctrl+F10",166 "keysequence": "Ctrl+F10",
167 "deviceRequired": true,167 "deviceRequired": true,
168 "actions": [168 "actions": [
169 "x-terminal-emulator -e \"ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null phablet@127.0.0.1 -p2222\""169 "x-terminal-emulator -e \"ssh -i ~/.ssh/ubuntudevice_%SERIALNUMBER%_id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null phablet@127.0.0.1 -p2222\""
170 ]170 ]
171 },171 },
172 {172 {
@@ -174,7 +174,7 @@
174 "id": "Ubuntu.Menu.Device.CloseAllApps",174 "id": "Ubuntu.Menu.Device.CloseAllApps",
175 "deviceRequired": true,175 "deviceRequired": true,
176 "actions": [176 "actions": [
177 "%SCRIPTDIRECTORY%/qtc_device_close_all_apps"177 "%SCRIPTDIRECTORY%/qtc_device_close_all_apps %SERIALNUMBER%"
178 ]178 ]
179 },179 },
180 {180 {
@@ -187,7 +187,7 @@
187 "keysequence": "Ctrl+F11",187 "keysequence": "Ctrl+F11",
188 "deviceRequired": true,188 "deviceRequired": true,
189 "actions": [189 "actions": [
190 "%SCRIPTDIRECTORY%/qtc_device_developertools"190 "%SCRIPTDIRECTORY%/qtc_device_developertools %SERIALNUMBER%"
191 ]191 ]
192 }192 }
193 ]193 ]
@@ -202,9 +202,9 @@
202 "keysequence": "Ctrl+F8",202 "keysequence": "Ctrl+F8",
203 "deviceRequired": true,203 "deviceRequired": true,
204 "actions": [204 "actions": [
205 "adb root",205 "adb -s %SERIALNUMBER% root",
206 "adb wait-for-device",206 "adb -s %SERIALNUMBER% wait-for-device",
207 "adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin reboot"207 "adb -s %SERIALNUMBER% shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin reboot"
208 ]208 ]
209 },209 },
210 {210 {
@@ -213,9 +213,9 @@
213 "keysequence": "Ctrl+F9",213 "keysequence": "Ctrl+F9",
214 "deviceRequired": true,214 "deviceRequired": true,
215 "actions": [215 "actions": [
216 "adb root",216 "adb -s %SERIALNUMBER% root",
217 "adb wait-for-device",217 "adb -s %SERIALNUMBER% wait-for-device",
218 "adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin shutdown -h now"218 "adb -s %SERIALNUMBER% shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin shutdown -h now"
219 ]219 ]
220 }220 }
221 ]221 ]
@@ -231,9 +231,9 @@
231 "id": "Ubuntu.Menu.Device.AptGet.Update",231 "id": "Ubuntu.Menu.Device.AptGet.Update",
232 "deviceRequired": true,232 "deviceRequired": true,
233 "actions": [233 "actions": [
234 "adb root",234 "adb -s %SERIALNUMBER% root",
235 "adb wait-for-device",235 "adb -s %SERIALNUMBER% wait-for-device",
236 "adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get update"236 "adb -s %SERIALNUMBER% shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get update"
237 ]237 ]
238 },238 },
239 {239 {
@@ -241,9 +241,9 @@
241 "id": "Ubuntu.Menu.Device.AptGet.Upgrade",241 "id": "Ubuntu.Menu.Device.AptGet.Upgrade",
242 "deviceRequired": true,242 "deviceRequired": true,
243 "actions": [243 "actions": [
244 "adb root",244 "adb -s %SERIALNUMBER% root",
245 "adb wait-for-device",245 "adb -s %SERIALNUMBER% wait-for-device",
246 "x-terminal-emulator -e \"adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get upgrade\""246 "x-terminal-emulator -e \"adb -s %SERIALNUMBER% shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get upgrade\""
247 ]247 ]
248 },248 },
249 {249 {
@@ -251,8 +251,6 @@
251 "id": "Ubuntu.Menu.Device.AptGet.Install",251 "id": "Ubuntu.Menu.Device.AptGet.Install",
252 "deviceRequired": true,252 "deviceRequired": true,
253 "actions": [253 "actions": [
254 "adb root",
255 "adb wait-for-device",
256 {254 {
257 "queryDialog": {255 "queryDialog": {
258 "title": "Install Package",256 "title": "Install Package",
@@ -260,9 +258,9 @@
260 "value": "<packagename>"258 "value": "<packagename>"
261 }259 }
262 },260 },
263 "adb root",261 "adb -s %SERIALNUMBER% root",
264 "adb wait-for-device",262 "adb -s %SERIALNUMBER% wait-for-device",
265 "adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get -y install %0"263 "adb -s %SERIALNUMBER% shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get -y install %0"
266 ]264 ]
267 },265 },
268 {266 {
@@ -270,8 +268,8 @@
270 "id": "Ubuntu.Menu.Device.AptGet.BuildDep",268 "id": "Ubuntu.Menu.Device.AptGet.BuildDep",
271 "deviceRequired": true,269 "deviceRequired": true,
272 "actions": [270 "actions": [
273 "adb root",271 "adb -s %SERIALNUMBER% root",
274 "adb wait-for-device",272 "adb -s %SERIALNUMBER% wait-for-device",
275 {273 {
276 "queryDialog": {274 "queryDialog": {
277 "title": "Install Package Build Dependencies",275 "title": "Install Package Build Dependencies",
@@ -279,9 +277,7 @@
279 "value": "<packagename>"277 "value": "<packagename>"
280 }278 }
281 },279 },
282 "adb root",280 "adb -s %SERIALNUMBER% shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get -y build-dep %0"
283 "adb wait-for-device",
284 "adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get -y build-dep %0"
285 ]281 ]
286 }282 }
287 ]283 ]
@@ -295,7 +291,7 @@
295 "id": "Ubuntu.Menu.Device.ADB.shell",291 "id": "Ubuntu.Menu.Device.ADB.shell",
296 "deviceRequired": true,292 "deviceRequired": true,
297 "actions": [293 "actions": [
298 "x-terminal-emulator -e \"adb shell\""294 "x-terminal-emulator -e \"adb -s %SERIALNUMBER% shell\""
299 ]295 ]
300 },296 },
301 {297 {
@@ -303,7 +299,7 @@
303 "id": "Ubuntu.Menu.Device.ADB.root",299 "id": "Ubuntu.Menu.Device.ADB.root",
304 "deviceRequired": true,300 "deviceRequired": true,
305 "actions": [301 "actions": [
306 "adb root"302 "adb -s %SERIALNUMBER% root"
307 ]303 ]
308 },304 },
309 {305 {
@@ -318,7 +314,7 @@
318 "id": "Ubuntu.Menu.Device.ADB.setUsbConfigPtpAdb",314 "id": "Ubuntu.Menu.Device.ADB.setUsbConfigPtpAdb",
319 "deviceRequired": true,315 "deviceRequired": true,
320 "actions": [316 "actions": [
321 "%SCRIPTDIRECTORY%/device_set_persist-sys-usb-config"317 "%SCRIPTDIRECTORY%/device_set_persist-sys-usb-config %SERIALNUMBER%"
322 ]318 ]
323 },319 },
324 {320 {
@@ -327,10 +323,10 @@
327 "keysequence": "Ctrl+Shift+P",323 "keysequence": "Ctrl+Shift+P",
328 "deviceRequired": true,324 "deviceRequired": true,
329 "actions": [325 "actions": [
330 "adb root",326 "adb -s %SERIALNUMBER% root",
331 "adb shell /system/bin/screencap -p /sdcard/screenshot.png",327 "adb -s %SERIALNUMBER% shell /system/bin/screencap -p /sdcard/screenshot.png",
332 "adb pull /sdcard/screenshot.png screenshot.png",328 "adb -s %SERIALNUMBER% pull /sdcard/screenshot.png screenshot.png",
333 "eog screenshot.png"329 "eog -s %SERIALNUMBER% screenshot.png"
334 ]330 ]
335 }331 }
336 ]332 ]
337333
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_flashdaily'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_flashdaily 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_flashdaily 2013-05-01 23:52:25 +0000
@@ -16,6 +16,8 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19adb root19SERIALNUMBER=$1
20adb wait-for-device20
21x-terminal-emulator -e "bash -ic phablet-flash"21adb -s ${SERIALNUMBER} root
22adb -s ${SERIALNUMBER} wait-for-device
23x-terminal-emulator -e "bash -ic 'phablet-flash -s ${SERIALNUMBER}'"
2224
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_flashdaily_bootstrap'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_flashdaily_bootstrap 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_flashdaily_bootstrap 2013-05-01 23:52:25 +0000
@@ -16,6 +16,8 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19adb root19SERIALNUMBER=$1
20adb wait-for-device20
21x-terminal-emulator -e "bash -ic phablet-flash -b"21adb -s ${SERIALNUMBER} root
22adb -s ${SERIALNUMBER} wait-for-device
23x-terminal-emulator -e "bash -ic 'phablet-flash -b -s ${SERIALNUMBER}'"
2224
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_hasnetwork'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_hasnetwork 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_hasnetwork 2013-05-01 23:52:25 +0000
@@ -16,9 +16,11 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19adb root &> /dev/null19SERIALNUMBER=$1
20adb wait-for-device20
21NM_STATE=`adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin nmcli nm | head -n+2 | awk '{print $2}'`21adb -s ${SERIALNUMBER} root &> /dev/null
22adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
23NM_STATE=`adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin nmcli nm | head -n+2 | awk '{print $2}'`
22if [[ $NM_STATE != *disconnected* ]]; then24if [[ $NM_STATE != *disconnected* ]]; then
23 echo "1"25 echo "1"
24else26else
2527
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_network_clone'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_network_clone 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_network_clone 2013-05-01 23:52:25 +0000
@@ -16,13 +16,15 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19gksudo phablet-network-setup19SERIALNUMBER=$1
20
21gksudo phablet-network-setup -s ${SERIALNUMBER}
2022
21SCRIPTPATH=`dirname $0`23SCRIPTPATH=`dirname $0`
22HASNETWORK=`${SCRIPTPATH}/device_hasnetwork`24HASNETWORK=`${SCRIPTPATH}/device_hasnetwork ${SERIALNUMBER}`
23while [[ ${HASNETWORK} == "0" ]]; do25while [[ ${HASNETWORK} == "0" ]]; do
24sleep 126sleep 1
25echo -n .27echo -n .
26HASNETWORK=`${SCRIPTPATH}/device_hasnetwork`28HASNETWORK=`${SCRIPTPATH}/device_hasnetwork ${SERIALNUMBER}`
27done29done
28echo "The device has connected to a network."30echo "The device has connected to a network."
2931
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_portforward'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_portforward 2013-04-23 18:00:52 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_portforward 2013-05-01 23:52:25 +0000
@@ -16,8 +16,9 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19SSHPORT=$119SERIALNUMBER=$1
20QMLPORT=$220SSHPORT=$2
21QMLPORT=$3
2122
22if [[ -z $SSHPORT ]]; then23if [[ -z $SSHPORT ]]; then
23 SSHPORT=222224 SSHPORT=2222
@@ -27,7 +28,7 @@
27 QMLPORT=376828 QMLPORT=3768
28fi29fi
2930
30adb root &> /dev/null31adb -s ${SERIALNUMBER} root &> /dev/null
31adb wait-for-device &> /dev/null32adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
32adb forward tcp:$SSHPORT tcp:2233adb -s ${SERIALNUMBER} forward tcp:$SSHPORT tcp:22
33adb forward tcp:$QMLPORT tcp:376834adb -s ${SERIALNUMBER} forward tcp:$QMLPORT tcp:3768
3435
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_reboot'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_reboot 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_reboot 2013-05-01 23:52:25 +0000
@@ -16,6 +16,8 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19adb root &> /dev/null19SERIALNUMBER=$1
20adb wait-for-device &> /dev/null20
21adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin reboot21adb -s ${SERIALNUMBER} root &> /dev/null
22adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
23adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin reboot
2224
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_reboot2bootloader'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_reboot2bootloader 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_reboot2bootloader 2013-05-01 23:52:25 +0000
@@ -16,6 +16,8 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19adb root &> /dev/null19SERIALNUMBER=$1
20adb wait-for-device &> /dev/null20
21adb reboot-bootloader21adb -s ${SERIALNUMBER} root &> /dev/null
22adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
23adb -s ${SERIALNUMBER} reboot-bootloader
2224
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_reboot2recovery'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_reboot2recovery 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_reboot2recovery 2013-05-01 23:52:25 +0000
@@ -16,6 +16,8 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19adb root &> /dev/null19SERIALNUMBER=$1
20adb wait-for-device &> /dev/null20
21adb reboot recovery21adb -s ${SERIALNUMBER} root &> /dev/null
22adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
23adb -s ${SERIALNUMBER} reboot recovery
2224
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_rootshell'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_rootshell 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_rootshell 2013-05-01 23:52:25 +0000
@@ -16,6 +16,8 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19adb root &> /dev/null19SERIALNUMBER=$1
20adb wait-for-device &> /dev/null20
21x-terminal-emulator -e "adb shell ubuntu_chroot shell"21adb -s ${SERIALNUMBER} root &> /dev/null
22adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
23x-terminal-emulator -e "adb -s ${SERIALNUMBER} shell ubuntu_chroot shell"
2224
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_set_persist-sys-usb-config'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_set_persist-sys-usb-config 2013-04-26 08:16:54 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_set_persist-sys-usb-config 2013-05-01 23:52:25 +0000
@@ -15,4 +15,6 @@
15#15#
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
1717
18adb shell setprop persist.sys.usb.config ptp,adb18SERIALNUMBER=$1
19
20adb -s ${SERIALNUMBER} shell setprop persist.sys.usb.config ptp,adb
1921
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_shutdown'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_shutdown 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_shutdown 2013-05-01 23:52:25 +0000
@@ -16,6 +16,8 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19adb root &> /dev/null19SERIALNUMBER=$1
20adb wait-for-device &> /dev/null20
21adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin shutdown -h now21adb -s ${SERIALNUMBER} root &> /dev/null
22adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
23adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin shutdown -h now
2224
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_time_clone'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_time_clone 2013-04-19 13:55:48 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_time_clone 2013-05-01 23:52:25 +0000
@@ -16,7 +16,9 @@
16# Author: Zoltán Balogh <zoltan.balogh@canonical.com>16# Author: Zoltán Balogh <zoltan.balogh@canonical.com>
17set -e17set -e
1818
19ADB="adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"19SERIALNUMBER=$1
20
21ADB="adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
20LOCAL_DATE=`date +%Y%m%d`22LOCAL_DATE=`date +%Y%m%d`
21LOCAL_TIME=`date +%T`23LOCAL_TIME=`date +%T`
22TIMEZONE=`cat /etc/timezone`24TIMEZONE=`cat /etc/timezone`
2325
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/device_version'
--- qtcreator/share/qtcreator/ubuntu/scripts/device_version 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/device_version 2013-05-01 23:52:25 +0000
@@ -16,6 +16,8 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19adb root &> /dev/null19SERIALNUMBER=$1
20adb wait-for-device &> /dev/null20
21adb shell cat /system/*ubuntu_stamp21adb -s ${SERIALNUMBER} root &> /dev/null
22adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
23adb -s ${SERIALNUMBER} shell cat /system/*ubuntu_stamp
2224
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/openssh_connect'
--- qtcreator/share/qtcreator/ubuntu/scripts/openssh_connect 2013-04-23 18:00:52 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/openssh_connect 2013-05-01 23:52:25 +0000
@@ -16,10 +16,12 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e; 17set -e;
1818
19PORT=$119SERIALNUMBER=$1
20USERNAME=$220PORT=$2
21USERNAME=$3
21SCRIPTPATH=`dirname $0`22SCRIPTPATH=`dirname $0`
2223SSHIDENTITY=~/.ssh/ubuntudevice_$SERIALNUMBER_id_rsa
23${SCRIPTPATH}/device_portforward $PORT 376824
2425${SCRIPTPATH}/device_portforward ${SERIALNUMBER} ${PORT} 3768
25x-terminal-emulator -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $PORT $USERNAME@127.0.0.1 bash -i"26
27x-terminal-emulator -e "ssh -i ${SSHIDENTITY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $PORT $USERNAME@127.0.0.1 bash -i" &
2628
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/openssh_install'
--- qtcreator/share/qtcreator/ubuntu/scripts/openssh_install 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/openssh_install 2013-05-01 23:52:25 +0000
@@ -16,5 +16,7 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e; 17set -e;
1818
19SERIALNUMBER=$1
20
19SCRIPTPATH=`dirname $0`21SCRIPTPATH=`dirname $0`
20${SCRIPTPATH}/qtc_device_developertools
21\ No newline at end of file22\ No newline at end of file
23${SCRIPTPATH}/qtc_device_developertools ${SERIALNUMBER}
2224
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/openssh_publickey'
--- qtcreator/share/qtcreator/ubuntu/scripts/openssh_publickey 2013-04-23 18:00:52 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/openssh_publickey 2013-05-01 23:52:25 +0000
@@ -16,9 +16,11 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e; 17set -e;
1818
19KEYPATH=~/.ssh/ubuntudevice_$2_id_rsa
20USERNAME=$119USERNAME=$1
21SHELL="adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"20SERIALNUMBER=$2
21KEYPATH=~/.ssh/ubuntudevice_${SERIALNUMBER}_id_rsa
22
23SHELL="adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
2224
23function check_key {25function check_key {
2426
@@ -43,8 +45,8 @@
43}45}
4446
45#################47#################
46adb root &> /dev/null48adb -s ${SERIALNUMBER} root &> /dev/null
47adb wait-for-device > /dev/null49adb -s ${SERIALNUMBER} wait-for-device > /dev/null
4850
49if [[ -f $KEYPATH ]]; then51if [[ -f $KEYPATH ]]; then
50 check_key52 check_key
5153
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/openssh_remove'
--- qtcreator/share/qtcreator/ubuntu/scripts/openssh_remove 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/openssh_remove 2013-05-01 23:52:25 +0000
@@ -16,8 +16,10 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e; 17set -e;
1818
19adb root &> /dev/null19SERIALNUMBER=$1
20adb wait-for-device &> /dev/null20
21adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get remove openssh-server -y21adb -s ${SERIALNUMBER} root &> /dev/null
22adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
23adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get remove openssh-server -y
2224
2325
2426
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/openssh_version'
--- qtcreator/share/qtcreator/ubuntu/scripts/openssh_version 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/openssh_version 2013-05-01 23:52:25 +0000
@@ -14,11 +14,13 @@
14# along with this program. If not, see <http://www.gnu.org/licenses/>.14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15#15#
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17#set -e;
1818
19adb root &> /dev/null19SERIALNUMBER=$1
20adb wait-for-device &> /dev/null20
21adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get -f install &> /dev/null21adb -s ${SERIALNUMBER} root &> /dev/null
22adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-cache policy openssh-server|grep Installed|sed "s/Installed\://g"22adb -s ${SERIALNUMBER} wait-for-device &> /dev/null
23adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-get -f install &> /dev/null
24adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin apt-cache policy openssh-server|grep Installed|sed "s/Installed\://g"
2325
2426
2527
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_buildanddeploypackage'
--- qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_buildanddeploypackage 2013-04-25 08:45:39 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_buildanddeploypackage 2013-05-01 23:52:25 +0000
@@ -16,10 +16,12 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19FOLDERNAME=$119SERIALNUMBER=$1
20TARGET_DEVICE=$220FOLDERNAME=$2
21TARGET_DEVICE_PORT=$321TARGET_DEVICE=$3
22TARGET_DEVICE_HOME=$422TARGET_DEVICE_PORT=$4
23TARGET_DEVICE_HOME=$5
24SSHIDENTITY=~/.ssh/ubuntudevice_$SERIALNUMBER_id_rsa
2325
24if [[ -z ${TARGET_DEVICE_PORT} ]]; then26if [[ -z ${TARGET_DEVICE_PORT} ]]; then
25 TARGET_DEVICE_PORT=222227 TARGET_DEVICE_PORT=2222
@@ -33,13 +35,13 @@
33 TARGET_DEVICE_HOME=/home/phablet/dev_tmp35 TARGET_DEVICE_HOME=/home/phablet/dev_tmp
34fi36fi
3537
36SCP="scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P${TARGET_DEVICE_PORT}"38SCP="scp -i ${SSHIDENTITY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P${TARGET_DEVICE_PORT}"
37SSH="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p${TARGET_DEVICE_PORT} ${TARGET_DEVICE}"39SSH="ssh -i ${SSHIDENTITY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p${TARGET_DEVICE_PORT} ${TARGET_DEVICE}"
38ADB="adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"40ADB="adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
3941
40SCRIPTPATH=`dirname $0`42SCRIPTPATH=`dirname $0`
4143
42${SCRIPTPATH}/qtc_device_buildpackage ${FOLDERNAME}44${SCRIPTPATH}/qtc_device_buildpackage ${SERIALNUMBER} ${FOLDERNAME}
4345
44FILES=`$SSH "cd ${TARGET_DEVICE_HOME}; ls -1 *.deb"`46FILES=`$SSH "cd ${TARGET_DEVICE_HOME}; ls -1 *.deb"`
45echo $FILES | xargs -0 -I FILE $ADB gdebi --n ${TARGET_DEVICE_HOME}/FILE47echo $FILES | xargs -0 -I FILE $ADB gdebi --n ${TARGET_DEVICE_HOME}/FILE
4648
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_buildpackage'
--- qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_buildpackage 2013-04-25 11:02:31 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_buildpackage 2013-05-01 23:52:25 +0000
@@ -38,12 +38,14 @@
3838
39set -e39set -e
4040
41FOLDERNAME=$141SERIALNUMBER=$1
42TARGET_DEVICE=$242FOLDERNAME=$2
43TARGET_DEVICE_PORT=$343TARGET_DEVICE=$3
44TARGET_DEVICE_HOME=$444TARGET_DEVICE_PORT=$4
45TARGET_DEVICE_HOME=$5
4546
46USAGE="$0 [foldername] [target_device] [target_device_port] [target_device_home]"47USAGE="$0 [serialnumber] [foldername] [target_device] [target_device_port] [target_device_home]"
48SSHIDENTITY=~/.ssh/ubuntudevice_$SERIALNUMBER_id_rsa
4749
48if [[ -z $FOLDERNAME ]]; then50if [[ -z $FOLDERNAME ]]; then
49 echo ${USAGE}51 echo ${USAGE}
@@ -62,12 +64,12 @@
62 TARGET_DEVICE_HOME=/home/phablet/dev_tmp64 TARGET_DEVICE_HOME=/home/phablet/dev_tmp
63fi65fi
6466
65SCP="scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P${TARGET_DEVICE_PORT}"67SCP="scp -i ${SSHIDENTITY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P${TARGET_DEVICE_PORT}"
66SSH="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p${TARGET_DEVICE_PORT} ${TARGET_DEVICE}"68SSH="ssh -i ${SSHIDENTITY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p${TARGET_DEVICE_PORT} ${TARGET_DEVICE}"
67ADB="adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin "69ADB="adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin "
68SCRIPTPATH=`dirname $0`70SCRIPTPATH=`dirname $0`
6971
70${SCRIPTPATH}/device_portforward ${TARGET_DEVICE_PORT} 376872${SCRIPTPATH}/device_portforward ${SERIALNUMBER} ${TARGET_DEVICE_PORT} 3768
7173
72pushd ${FOLDERNAME}74pushd ${FOLDERNAME}
73 set +e75 set +e
7476
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_close_all_apps'
--- qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_close_all_apps 2013-04-25 12:41:29 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_close_all_apps 2013-05-01 23:52:25 +0000
@@ -17,8 +17,9 @@
17#set -e;17#set -e;
18#set -x18#set -x
1919
20APPLICATION=$120SERIALNUMBER=$1
21ADB="adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"21APPLICATION=$2
22ADB="adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
2223
23if [[ -z ${APPLICATION} ]]; then24if [[ -z ${APPLICATION} ]]; then
24 ${ADB} kill -s 9 \`pidof qmlscene\`25 ${ADB} kill -s 9 \`pidof qmlscene\`
2526
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_deploy_package'
--- qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_deploy_package 2013-04-23 18:00:52 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_deploy_package 2013-05-01 23:52:25 +0000
@@ -16,12 +16,15 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19PACKAGE=$119SERIALNUMBER=$1
20TARGET_DEVICE=$220PACKAGE=$2
21TARGET_DEVICE_PORT=$321TARGET_DEVICE=$3
22TARGET_DEVICE_HOME=$422TARGET_DEVICE_PORT=$4
2323TARGET_DEVICE_HOME=$5
24USAGE="$0 [package] [target_device] [target_device_port] [target_device_home]"24
25SSHIDENTITY=~/.ssh/ubuntudevice_$SERIALNUMBER_id_rsa
26
27USAGE="$0 [serialnumber] [package] [target_device] [target_device_port] [target_device_home]"
2528
26if [[ -z $PACKAGE || -z $TARGET_DEVICE || -z $TARGET_DEVICE_PORT || -z $TARGET_DEVICE_HOME ]]; then29if [[ -z $PACKAGE || -z $TARGET_DEVICE || -z $TARGET_DEVICE_PORT || -z $TARGET_DEVICE_HOME ]]; then
27 echo ${USAGE}30 echo ${USAGE}
@@ -45,11 +48,11 @@
45PLAIN_PACKAGE=`basename ${PACKAGE}`48PLAIN_PACKAGE=`basename ${PACKAGE}`
46SCRIPTPATH=`dirname $0`49SCRIPTPATH=`dirname $0`
4750
48${SCRIPTPATH}/device_portforward ${TARGET_DEVICE_PORT} 376851${SCRIPTPATH}/device_portforward ${SERIALNUMBER} ${TARGET_DEVICE_PORT} 3768
4952
50SCP="scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P${TARGET_DEVICE_PORT}"53SCP="scp -i ${SSHIDENTITY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P${TARGET_DEVICE_PORT}"
51SSH="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p${TARGET_DEVICE_PORT} ${TARGET_DEVICE}"54SSH="ssh -i ${SSHIDENTITY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p${TARGET_DEVICE_PORT} ${TARGET_DEVICE}"
52ADB="adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"55ADB="adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
5356
54# -- actions --57# -- actions --
55$SCP ${PACKAGE} ${TARGET_DEVICE}:${TARGET_DEVICE_HOME}58$SCP ${PACKAGE} ${TARGET_DEVICE}:${TARGET_DEVICE_HOME}
5659
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_developertools'
--- qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_developertools 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_developertools 2013-05-01 23:52:25 +0000
@@ -16,12 +16,14 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19ADB="adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"19SERIALNUMBER=$1
2020
21adb root21ADB="adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
22adb wait-for-device22
23adb forward tcp:2222 tcp:2223adb -s ${SERIALNUMBER} root
24adb forward tcp:3768 tcp:376824adb -s ${SERIALNUMBER} wait-for-device
25adb -s ${SERIALNUMBER} forward tcp:2222 tcp:22
26adb -s ${SERIALNUMBER} forward tcp:3768 tcp:3768
25$ADB apt-get -y -f install27$ADB apt-get -y -f install
26$ADB apt-get install software-properties-common -y28$ADB apt-get install software-properties-common -y
27$ADB apt-add-repository ppa:canonical-qt5-edgers/qt5-proper -y29$ADB apt-add-repository ppa:canonical-qt5-edgers/qt5-proper -y
2830
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_restart_appslense'
--- qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_restart_appslense 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_restart_appslense 2013-05-01 23:52:25 +0000
@@ -16,7 +16,8 @@
16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>16# Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17set -e;17set -e;
1818
19ADB="adb shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"19SERIALNUMBER=$1
20ADB="adb -s ${SERIALNUMBER} shell chroot /data/ubuntu /usr/bin/env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
2021
21# -- actions --22# -- actions --
22$ADB kill -s 9 \`pidof unity-applications-daemon\`23$ADB kill -s 9 \`pidof unity-applications-daemon\`
2324
=== modified file 'qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_run_app'
--- qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_run_app 2013-04-23 11:09:57 +0000
+++ qtcreator/share/qtcreator/ubuntu/scripts/qtc_device_run_app 2013-05-01 23:52:25 +0000
@@ -17,15 +17,17 @@
17set -e;17set -e;
18#set -x18#set -x
1919
20FOLDERNAME=$120SERIALNUMBER=$1
21DESKTOP_FILENAME=$221SSHIDENTITY=~/.ssh/ubuntudevice_$1_id_rsa
22MAIN_QML=$322FOLDERNAME=$2
23TARGET_DEVICE_HOME=$423DESKTOP_FILENAME=$3
24TARGET_DEVICE_DESKTOP_PATH=$524MAIN_QML=$4
25TARGET_DEVICE=$625TARGET_DEVICE_HOME=$5
26TARGET_DEVICE_PORT=$726TARGET_DEVICE_DESKTOP_PATH=$6
27TARGET_DEVICE=$7
28TARGET_DEVICE_PORT=$8
2729
28USAGE="$0 [foldername] [desktop_filename] [main_qml] [target_device_home] [target_device_desktop_path] [target_device] [target_device_port]"30USAGE="$0 [serialnumber] [foldername] [desktop_filename] [main_qml] [target_device_home] [target_device_desktop_path] [target_device] [target_device_port]"
2931
30if [[ -z ${DESKTOP_FILENAME} || -z ${FOLDERNAME} ]]; then32if [[ -z ${DESKTOP_FILENAME} || -z ${FOLDERNAME} ]]; then
31 echo ${USAGE}33 echo ${USAGE}
@@ -52,12 +54,12 @@
52 TARGET_DEVICE_DESKTOP_PATH=${TARGET_DEVICE_HOME}/.local/share/applications54 TARGET_DEVICE_DESKTOP_PATH=${TARGET_DEVICE_HOME}/.local/share/applications
53fi55fi
5456
55SCP="scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P${TARGET_DEVICE_PORT}"57SCP="scp -i ${SSHIDENTITY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P${TARGET_DEVICE_PORT}"
56SSH="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p${TARGET_DEVICE_PORT} ${TARGET_DEVICE}"58SSH="ssh -i ${SSHIDENTITY} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p${TARGET_DEVICE_PORT} ${TARGET_DEVICE}"
57SCRIPTPATH=`dirname $0`59SCRIPTPATH=`dirname $0`
58COMMAND="qmlscene ${TARGET_DEVICE_HOME}/${FOLDERNAME}/${MAIN_QML} --desktop_file_hint=${TARGET_DEVICE_DESKTOP_PATH}/${DESKTOP_FILENAME}"60COMMAND="qmlscene ${TARGET_DEVICE_HOME}/${FOLDERNAME}/${MAIN_QML} --desktop_file_hint=${TARGET_DEVICE_DESKTOP_PATH}/${DESKTOP_FILENAME}"
5961
60${SCRIPTPATH}/device_portforward 2222 376862${SCRIPTPATH}/device_portforward ${SERIALNUMBER} ${TARGET_DEVICE_PORT} 3768
6163
62# make a tar package64# make a tar package
63tar -cjf ${FOLDERNAME}.tar.bz2 ${FOLDERNAME}65tar -cjf ${FOLDERNAME}.tar.bz2 ${FOLDERNAME}
6466
=== modified file 'qtcreator/src/plugins/ubuntu/ubuntuconstants.h'
--- qtcreator/src/plugins/ubuntu/ubuntuconstants.h 2013-04-24 17:24:47 +0000
+++ qtcreator/src/plugins/ubuntu/ubuntuconstants.h 2013-05-01 23:52:25 +0000
@@ -86,6 +86,7 @@
86const char UBUNTU_ACTION_PROJECTFILES[] = "%PROJECTFILES%";86const char UBUNTU_ACTION_PROJECTFILES[] = "%PROJECTFILES%";
87const char UBUNTU_ACTION_SCRIPTDIRECTORY[] = "%SCRIPTDIRECTORY%";87const char UBUNTU_ACTION_SCRIPTDIRECTORY[] = "%SCRIPTDIRECTORY%";
88const char UBUNTU_ACTION_SHAREDIRECTORY[] = "%SHAREDIRECTORY%";88const char UBUNTU_ACTION_SHAREDIRECTORY[] = "%SHAREDIRECTORY%";
89const char UBUNTU_ACTION_SERIALNUMBER[] = "%SERIALNUMBER%";
8990
90const char UBUNTU_FILENAME_DISPLAYNAME[] = "displayName";91const char UBUNTU_FILENAME_DISPLAYNAME[] = "displayName";
9192
9293
=== modified file 'qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.cpp'
--- qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.cpp 2013-04-24 16:56:03 +0000
+++ qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.cpp 2013-05-01 23:52:25 +0000
@@ -46,11 +46,14 @@
46 ui->pushButtonSshInstall->hide();46 ui->pushButtonSshInstall->hide();
47 ui->pushButtonSshRemove->hide();47 ui->pushButtonSshRemove->hide();
48 ui->widgetDeviceSerial->hide();48 ui->widgetDeviceSerial->hide();
49 ui->pushButtonCancel->hide();49 //ui->pushButtonCancel->hide();
50 ui->frameNoDevices->hide();50 ui->frameNoDevices->hide();
51 ui->lblLoading->hide();51 ui->lblLoading->hide();
52 ui->frameNoNetwork->hide();52 ui->frameNoNetwork->hide();
5353
54 ui->progressBar->setMinimum(0);
55 ui->progressBar->setMaximum(0);
56
54 connect(&m_ubuntuProcess,SIGNAL(started(QString)),this,SLOT(onStarted(QString)));57 connect(&m_ubuntuProcess,SIGNAL(started(QString)),this,SLOT(onStarted(QString)));
55 connect(&m_ubuntuProcess,SIGNAL(message(QString)),this,SLOT(onMessage(QString)));58 connect(&m_ubuntuProcess,SIGNAL(message(QString)),this,SLOT(onMessage(QString)));
56 connect(&m_ubuntuProcess,SIGNAL(finished(QString,int)),this,SLOT(onFinished(QString, int)));59 connect(&m_ubuntuProcess,SIGNAL(finished(QString,int)),this,SLOT(onFinished(QString, int)));
@@ -64,12 +67,15 @@
64}67}
6568
66void UbuntuDevicesWidget::onStarted(QString cmd) {69void UbuntuDevicesWidget::onStarted(QString cmd) {
70 ui->stackedWidgetConnectedDevice->setCurrentIndex(1);
71 ui->lblDeviceProcessInfo->setText(QFileInfo(cmd).baseName());
67 ui->widgetDeviceInfo->hide();72 ui->widgetDeviceInfo->hide();
68 ui->pushButtonCancel->show();73 //ui->pushButtonCancel->show();
69 ui->lblLoading->show();74 ui->lblLoading->show();
70}75}
7176
72void UbuntuDevicesWidget::onFinished(QString cmd, int code) {77void UbuntuDevicesWidget::onFinished(QString cmd, int code) {
78 ui->stackedWidgetConnectedDevice->setCurrentIndex(0);
73 if (m_aboutToClose) { return; }79 if (m_aboutToClose) { return; }
7480
75 bool bOk = true;81 bool bOk = true;
@@ -82,10 +88,12 @@
82 QStringList lineData = line.split(QLatin1String("\t"));88 QStringList lineData = line.split(QLatin1String("\t"));
83 if (lineData.count() == 2) {89 if (lineData.count() == 2) {
84 QString sSerialNumber = lineData.takeFirst();90 QString sSerialNumber = lineData.takeFirst();
85 QString sDeviceName = lineData.takeFirst();91 //QString sDeviceName = lineData.takeFirst();
8692
87 ui->lblDeviceName->setText(sDeviceName.trimmed());93 //ui->lblDeviceName->setText(sDeviceName.trimmed());
88 ui->lblSerialnumber->setText(sSerialNumber.trimmed());94 ui->comboBoxSerialNumber->addItem(sSerialNumber.trimmed());
95 //ui->lblSerialnumber->setText(sSerialNumber.trimmed());
96 m_deviceSerialNumber = sSerialNumber.trimmed();
89 }97 }
90 }98 }
9199
@@ -93,10 +101,11 @@
93 ui->frameNoDevices->show();101 ui->frameNoDevices->show();
94 ui->widgetDeviceInfo->hide();102 ui->widgetDeviceInfo->hide();
95 ui->widgetDeviceSerial->hide();103 ui->widgetDeviceSerial->hide();
96104 ui->comboBoxSerialNumber->clear();
97 bOk = false;105 bOk = false;
98 m_deviceDetected = false;106 m_deviceDetected = false;
99107
108 ui->stackedWidgetDeviceConnected->setCurrentIndex(0);
100 endAction(QString::fromLatin1(" * there is no device connected."));109 endAction(QString::fromLatin1(" * there is no device connected."));
101 }110 }
102 if (lines.count() > 0) {111 if (lines.count() > 0) {
@@ -104,7 +113,7 @@
104 ui->widgetDeviceSerial->show();113 ui->widgetDeviceSerial->show();
105114
106 m_deviceDetected = true;115 m_deviceDetected = true;
107116 ui->stackedWidgetDeviceConnected->setCurrentIndex(1);
108 endAction(QString::fromLatin1(" * found %0 devices.").arg(lines.count()));117 endAction(QString::fromLatin1(" * found %0 devices.").arg(lines.count()));
109 detectDeviceVersion();118 detectDeviceVersion();
110 }119 }
@@ -119,13 +128,14 @@
119 ui->widgetSshProperties->show();128 ui->widgetSshProperties->show();
120 ui->pushButtonSshInstall->hide();129 ui->pushButtonSshInstall->hide();
121 ui->pushButtonSshRemove->show();130 ui->pushButtonSshRemove->show();
122131 ui->stackedWidgetDeveloperMode->setCurrentIndex(1);
123 on_pushButtonPortForward_clicked();132 on_pushButtonPortForward_clicked();
124 } else {133 } else {
125 endAction(QString::fromLatin1("..openssh-server was not installed."));134 endAction(QString::fromLatin1("..openssh-server was not installed."));
126 ui->pushButtonSshInstall->show();135 ui->pushButtonSshInstall->show();
127 ui->pushButtonSshRemove->hide();136 ui->pushButtonSshRemove->hide();
128 ui->widgetSshProperties->hide();137 ui->widgetSshProperties->hide();
138 ui->stackedWidgetDeveloperMode->setCurrentIndex(0);
129 }139 }
130 } else if (cmd == QString::fromLatin1("%0/openssh_remove").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH)) {140 } else if (cmd == QString::fromLatin1("%0/openssh_remove").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH)) {
131 endAction(QString::fromLatin1("..openssh-server was removed."));141 endAction(QString::fromLatin1("..openssh-server was removed."));
@@ -160,42 +170,38 @@
160 if (bOk && bHasNetwork) {170 if (bOk && bHasNetwork) {
161 ui->widgetDeviceInfo->show();171 ui->widgetDeviceInfo->show();
162 }172 }
163 ui->pushButtonCancel->hide();173 // ui->pushButtonCancel->hide();
164 ui->lblLoading->hide();174 ui->lblLoading->hide();
165 m_reply.clear();175 m_reply.clear();
166}176}
167177
168void UbuntuDevicesWidget::on_pushButtonCancel_clicked() {
169 m_ubuntuProcess.kill();
170}
171
172void UbuntuDevicesWidget::on_pushButtonReboot_clicked() {178void UbuntuDevicesWidget::on_pushButtonReboot_clicked() {
173 beginAction(QString::fromLatin1("Reboot device.."));179 beginAction(QString::fromLatin1("Reboot device.."));
174 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_reboot").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());180 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_reboot %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
175 m_ubuntuProcess.processCmdQueue();181 m_ubuntuProcess.processCmdQueue();
176}182}
177183
178void UbuntuDevicesWidget::on_pushButtonShutdown_clicked() {184void UbuntuDevicesWidget::on_pushButtonShutdown_clicked() {
179 beginAction(QString::fromLatin1("Shutdown device.."));185 beginAction(QString::fromLatin1("Shutdown device.."));
180 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_shutdown").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());186 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_shutdown %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
181 m_ubuntuProcess.processCmdQueue();187 m_ubuntuProcess.processCmdQueue();
182}188}
183189
184void UbuntuDevicesWidget::on_pushButtonRebootToBootloader_clicked() {190void UbuntuDevicesWidget::on_pushButtonRebootToBootloader_clicked() {
185 beginAction(QString::fromLatin1("Reboot to bootloader.."));191 beginAction(QString::fromLatin1("Reboot to bootloader.."));
186 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_reboot2bootloader").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());192 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_reboot2bootloader %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
187 m_ubuntuProcess.processCmdQueue();193 m_ubuntuProcess.processCmdQueue();
188}194}
189195
190void UbuntuDevicesWidget::on_pushButtonRebootToRecovery_clicked() {196void UbuntuDevicesWidget::on_pushButtonRebootToRecovery_clicked() {
191 beginAction(QString::fromLatin1("Reboot to recovery.."));197 beginAction(QString::fromLatin1("Reboot to recovery.."));
192 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_reboot2recovery").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());198 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_reboot2recovery %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
193 m_ubuntuProcess.processCmdQueue();199 m_ubuntuProcess.processCmdQueue();
194}200}
195201
196void UbuntuDevicesWidget::detectOpenSsh() {202void UbuntuDevicesWidget::detectOpenSsh() {
197 beginAction(QString::fromLatin1("Detecting if openssh-server is installed.."));203 beginAction(QString::fromLatin1("Detecting if openssh-server is installed.."));
198 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_version").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());204 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_version %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
199 m_ubuntuProcess.processCmdQueue();205 m_ubuntuProcess.processCmdQueue();
200}206}
201207
@@ -206,32 +212,46 @@
206}212}
207213
208void UbuntuDevicesWidget::on_pushButtonSshConnect_clicked() {214void UbuntuDevicesWidget::on_pushButtonSshConnect_clicked() {
209 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_connect %1 %2").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(ui->spinBoxSshPort->value()).arg(ui->lineEditUserName->text()) << QApplication::applicationDirPath());215 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_connect %1 %2 %3").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()).arg(ui->spinBoxSshPort->value()).arg(ui->lineEditUserName->text()) << QApplication::applicationDirPath());
210 m_ubuntuProcess.processCmdQueue();216 m_ubuntuProcess.processCmdQueue();
211}217}
212218
213void UbuntuDevicesWidget::on_pushButtonCloneNetworkConfig_clicked() {219void UbuntuDevicesWidget::on_pushButtonCloneNetworkConfig_clicked() {
214 beginAction(QString::fromLatin1("Clone network configuration from host to device.."));220 beginAction(QString::fromLatin1("Clone network configuration from host to device.."));
215 ui->frameNoNetwork->hide();221 ui->frameNoNetwork->hide();
216 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_network_clone").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());222 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_network_clone %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
217 m_ubuntuProcess.processCmdQueue();223 m_ubuntuProcess.processCmdQueue();
218}224}
219225
226void UbuntuDevicesWidget::on_comboBoxSerialNumber_currentIndexChanged( const QString & text ) {
227 m_deviceSerialNumber = text;
228 if (!text.isEmpty()) {
229 detectDeviceVersion();
230 }
231}
232
220void UbuntuDevicesWidget::onError(QString msg) {233void UbuntuDevicesWidget::onError(QString msg) {
221 ui->plainTextEdit->appendHtml(QString::fromLatin1("<p style=\"color: red\">%0</p>").arg(msg));234 ui->plainTextEdit->appendHtml(QString::fromLatin1("<p style=\"color: red\">%0</p>").arg(msg));
222}235}
223236
224void UbuntuDevicesWidget::on_pushButtonRefresh_clicked() {237void UbuntuDevicesWidget::on_pushButtonRefresh_clicked() {
238 m_deviceDetected = false;
239 m_ubuntuProcess.clear();
240 m_ubuntuProcess.kill();
241
242 ui->plainTextEdit->clear();
243
225 m_reply.clear();244 m_reply.clear();
226245
227 ui->frameNoDevices->hide();246 ui->frameNoDevices->hide();
228247
229 ui->widgetDeviceInfo->hide();248 ui->widgetDeviceInfo->hide();
230 ui->lblLoading->show();249 ui->lblLoading->show();
231 ui->pushButtonCancel->show();250 // ui->pushButtonCancel->show();
232251
233 ui->lblDeviceName->setText(QLatin1String(""));252 //ui->lblDeviceName->setText(QLatin1String(""));
234 ui->lblSerialnumber->setText(QLatin1String(""));253 ui->comboBoxSerialNumber->clear();
254 // ui->lblSerialnumber->setText(QLatin1String(""));
235255
236 detectDevices();256 detectDevices();
237}257}
@@ -246,37 +266,41 @@
246266
247void UbuntuDevicesWidget::on_pushButtonPortForward_clicked() {267void UbuntuDevicesWidget::on_pushButtonPortForward_clicked() {
248 beginAction(QString::fromLatin1("Enabling port forward.."));268 beginAction(QString::fromLatin1("Enabling port forward.."));
249 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_portforward %1 %2").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(ui->spinBoxSshPort->value()).arg(ui->spinBoxQmlPort->value()) << QApplication::applicationDirPath());269 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_portforward %1 %2 %3").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()).arg(ui->spinBoxSshPort->value()).arg(ui->spinBoxQmlPort->value()) << QApplication::applicationDirPath());
250 m_ubuntuProcess.processCmdQueue();270 m_ubuntuProcess.processCmdQueue();
251}271}
252272
253void UbuntuDevicesWidget::on_pushButtonSshSetupPublicKey_clicked() {273void UbuntuDevicesWidget::on_pushButtonSshSetupPublicKey_clicked() {
254 beginAction(QString::fromLatin1("Setting up public key authentication.."));274 beginAction(QString::fromLatin1("Setting up public key authentication.."));
255 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_publickey %1 %2").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(ui->lineEditUserName->text()).arg(ui->lblSerialnumber->text()) << QApplication::applicationDirPath());275 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_publickey %1 %2").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(ui->lineEditUserName->text()).arg(m_deviceSerialNumber) << QApplication::applicationDirPath());
256 m_ubuntuProcess.processCmdQueue();276 m_ubuntuProcess.processCmdQueue();
257}277}
258278
259void UbuntuDevicesWidget::on_pushButtonUpgradeToDailyImage_clicked() {279void UbuntuDevicesWidget::on_pushButtonUpgradeToDailyImage_clicked() {
260 beginAction(QString::fromLatin1("Upgrade device to daily.."));280 beginAction(QString::fromLatin1("Upgrade device to daily.."));
261 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_flashdaily").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());281 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_flashdaily %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
262 m_ubuntuProcess.processCmdQueue();282 m_ubuntuProcess.processCmdQueue();
263}283}
264284
265void UbuntuDevicesWidget::on_pushButtonUpgradeToDailyImageWithBootstrap_clicked() {285void UbuntuDevicesWidget::on_pushButtonUpgradeToDailyImageWithBootstrap_clicked() {
266 beginAction(QString::fromLatin1("Upgrade device to daily with a full bootstrap.."));286 beginAction(QString::fromLatin1("Upgrade device to daily with a full bootstrap.."));
267 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_flashdaily_bootstrap").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());287 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_flashdaily_bootstrap %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
268 m_ubuntuProcess.processCmdQueue();288 m_ubuntuProcess.processCmdQueue();
269}289}
270290
271void UbuntuDevicesWidget::detectHasNetworkConnection() {291void UbuntuDevicesWidget::detectHasNetworkConnection() {
272 beginAction(QString::fromLatin1("Check if the device is connected to a network.."));292 beginAction(QString::fromLatin1("Check if the device is connected to a network.."));
273 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_hasnetwork").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());293 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_hasnetwork %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
274 m_ubuntuProcess.processCmdQueue();294 m_ubuntuProcess.processCmdQueue();
275}295}
276296
297QString UbuntuDevicesWidget::serialNumber() {
298 return ui->comboBoxSerialNumber->currentText();
299}
300
277void UbuntuDevicesWidget::detectDeviceVersion() {301void UbuntuDevicesWidget::detectDeviceVersion() {
278 beginAction(QString::fromLatin1("Check device image version.."));302 beginAction(QString::fromLatin1("Check device image version.."));
279 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_version").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());303 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_version %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
280 m_ubuntuProcess.processCmdQueue();304 m_ubuntuProcess.processCmdQueue();
281}305}
282306
@@ -289,18 +313,18 @@
289313
290void UbuntuDevicesWidget::on_pushButtonSshInstall_clicked() {314void UbuntuDevicesWidget::on_pushButtonSshInstall_clicked() {
291 beginAction(QString::fromLatin1("Installing openssh-server.."));315 beginAction(QString::fromLatin1("Installing openssh-server.."));
292 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_install").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());316 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_install %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
293 m_ubuntuProcess.processCmdQueue();317 m_ubuntuProcess.processCmdQueue();
294}318}
295319
296void UbuntuDevicesWidget::on_pushButtonCloneTimeConfig_clicked() {320void UbuntuDevicesWidget::on_pushButtonCloneTimeConfig_clicked() {
297 beginAction(QString::fromLatin1("Cloning time configuration from host to device.."));321 beginAction(QString::fromLatin1("Cloning time configuration from host to device.."));
298 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_time_clone").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());322 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/device_time_clone %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
299 m_ubuntuProcess.processCmdQueue();323 m_ubuntuProcess.processCmdQueue();
300}324}
301325
302void UbuntuDevicesWidget::on_pushButtonSshRemove_clicked() {326void UbuntuDevicesWidget::on_pushButtonSshRemove_clicked() {
303 beginAction(QString::fromLatin1("Removing openssh-server.."));327 beginAction(QString::fromLatin1("Removing openssh-server.."));
304 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_remove").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH) << QApplication::applicationDirPath());328 m_ubuntuProcess.append(QStringList() << QString::fromLatin1("%0/openssh_remove %1").arg(Ubuntu::Constants::UBUNTU_SCRIPTPATH).arg(serialNumber()) << QApplication::applicationDirPath());
305 m_ubuntuProcess.processCmdQueue();329 m_ubuntuProcess.processCmdQueue();
306}330}
307331
=== modified file 'qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.h'
--- qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.h 2013-04-24 16:56:03 +0000
+++ qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.h 2013-05-01 23:52:25 +0000
@@ -37,6 +37,7 @@
37 static UbuntuDevicesWidget* instance();37 static UbuntuDevicesWidget* instance();
3838
39 bool deviceDetected() { return m_deviceDetected; }39 bool deviceDetected() { return m_deviceDetected; }
40 QString serialNumber();
4041
41signals:42signals:
42 void updateDeviceActions();43 void updateDeviceActions();
@@ -60,10 +61,10 @@
60 void on_pushButtonRebootToRecovery_clicked();61 void on_pushButtonRebootToRecovery_clicked();
61 void on_pushButtonUpgradeToDailyImage_clicked();62 void on_pushButtonUpgradeToDailyImage_clicked();
62 void on_pushButtonUpgradeToDailyImageWithBootstrap_clicked();63 void on_pushButtonUpgradeToDailyImageWithBootstrap_clicked();
63 void on_pushButtonCancel_clicked();
64 void on_pushButtonCloneNetworkConfig_clicked();64 void on_pushButtonCloneNetworkConfig_clicked();
65 void on_pushButtonCloneTimeConfig_clicked();65 void on_pushButtonCloneTimeConfig_clicked();
66 void on_pushButtonCloneNetworkConfig_2_clicked() { on_pushButtonCloneNetworkConfig_clicked(); }66 void on_pushButtonCloneNetworkConfig_2_clicked() { on_pushButtonCloneNetworkConfig_clicked(); }
67 void on_comboBoxSerialNumber_currentIndexChanged( const QString & text );
6768
68 void detectDevices();69 void detectDevices();
69 void detectOpenSsh();70 void detectOpenSsh();
@@ -81,6 +82,7 @@
8182
82 bool m_aboutToClose;83 bool m_aboutToClose;
83 bool m_deviceDetected;84 bool m_deviceDetected;
85 QString m_deviceSerialNumber;
8486
85 static UbuntuDevicesWidget *m_instance;87 static UbuntuDevicesWidget *m_instance;
86};88};
8789
=== modified file 'qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.ui'
--- qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.ui 2013-04-24 10:17:45 +0000
+++ qtcreator/src/plugins/ubuntu/ubuntudeviceswidget.ui 2013-05-01 23:52:25 +0000
@@ -106,16 +106,6 @@
106 </property>106 </property>
107 </spacer>107 </spacer>
108 </item>108 </item>
109 <item>
110 <widget class="QPushButton" name="pushButtonRefresh">
111 <property name="text">
112 <string>Refresh</string>
113 </property>
114 <property name="flat">
115 <bool>true</bool>
116 </property>
117 </widget>
118 </item>
119 </layout>109 </layout>
120 </item>110 </item>
121 <item>111 <item>
@@ -147,6 +137,79 @@
147 </widget>137 </widget>
148 </item>138 </item>
149 <item>139 <item>
140 <widget class="QWidget" name="widgetDeviceSerial" native="true">
141 <layout class="QVBoxLayout" name="verticalLayout_4">
142 <property name="leftMargin">
143 <number>0</number>
144 </property>
145 <property name="topMargin">
146 <number>0</number>
147 </property>
148 <property name="rightMargin">
149 <number>0</number>
150 </property>
151 <property name="bottomMargin">
152 <number>0</number>
153 </property>
154 <item>
155 <layout class="QHBoxLayout" name="horizontalLayout_2">
156 <property name="leftMargin">
157 <number>20</number>
158 </property>
159 <property name="rightMargin">
160 <number>20</number>
161 </property>
162 <item>
163 <widget class="QLabel" name="label_2">
164 <property name="font">
165 <font>
166 <family>Ubuntu</family>
167 </font>
168 </property>
169 <property name="text">
170 <string>Serial number</string>
171 </property>
172 </widget>
173 </item>
174 <item>
175 <widget class="QComboBox" name="comboBoxSerialNumber">
176 <property name="minimumSize">
177 <size>
178 <width>200</width>
179 <height>0</height>
180 </size>
181 </property>
182 </widget>
183 </item>
184 <item>
185 <spacer name="horizontalSpacer_2">
186 <property name="orientation">
187 <enum>Qt::Horizontal</enum>
188 </property>
189 <property name="sizeHint" stdset="0">
190 <size>
191 <width>40</width>
192 <height>20</height>
193 </size>
194 </property>
195 </spacer>
196 </item>
197 <item>
198 <widget class="QPushButton" name="pushButtonRefresh">
199 <property name="text">
200 <string>Redetect Devices</string>
201 </property>
202 <property name="flat">
203 <bool>false</bool>
204 </property>
205 </widget>
206 </item>
207 </layout>
208 </item>
209 </layout>
210 </widget>
211 </item>
212 <item>
150 <widget class="QScrollArea" name="scrollArea">213 <widget class="QScrollArea" name="scrollArea">
151 <property name="frameShape">214 <property name="frameShape">
152 <enum>QFrame::NoFrame</enum>215 <enum>QFrame::NoFrame</enum>
@@ -159,8 +222,8 @@
159 <rect>222 <rect>
160 <x>0</x>223 <x>0</x>
161 <y>0</y>224 <y>0</y>
162 <width>1118</width>225 <width>1134</width>
163 <height>693</height>226 <height>637</height>
164 </rect>227 </rect>
165 </property>228 </property>
166 <layout class="QVBoxLayout" name="verticalLayout_14">229 <layout class="QVBoxLayout" name="verticalLayout_14">
@@ -200,644 +263,712 @@
200 </property>263 </property>
201 <widget class="QWidget" name="tab">264 <widget class="QWidget" name="tab">
202 <attribute name="title">265 <attribute name="title">
203 <string>Properties</string>266 <string>Device Actions</string>
204 </attribute>267 </attribute>
205 <layout class="QHBoxLayout" name="horizontalLayout_3">268 <layout class="QHBoxLayout" name="horizontalLayout_3">
206 <property name="bottomMargin">269 <property name="bottomMargin">
207 <number>0</number>270 <number>0</number>
208 </property>271 </property>
209 <item>272 <item>
210 <spacer name="horizontalSpacer_4">273 <widget class="QStackedWidget" name="stackedWidgetDeviceConnected">
211 <property name="orientation">274 <property name="currentIndex">
212 <enum>Qt::Horizontal</enum>275 <number>1</number>
213 </property>276 </property>
214 <property name="sizeType">277 <widget class="QWidget" name="page_3">
215 <enum>QSizePolicy::MinimumExpanding</enum>278 <layout class="QHBoxLayout" name="horizontalLayout_7">
216 </property>279 <item>
217 <property name="sizeHint" stdset="0">280 <spacer name="horizontalSpacer_3">
218 <size>281 <property name="orientation">
219 <width>40</width>282 <enum>Qt::Horizontal</enum>
220 <height>20</height>283 </property>
221 </size>284 <property name="sizeType">
222 </property>285 <enum>QSizePolicy::MinimumExpanding</enum>
223 </spacer>286 </property>
224 </item>287 <property name="sizeHint" stdset="0">
225 <item>288 <size>
226 <layout class="QVBoxLayout" name="verticalLayout_11">289 <width>40</width>
227 <item>290 <height>20</height>
228 <spacer name="verticalSpacer_6">291 </size>
229 <property name="orientation">292 </property>
230 <enum>Qt::Vertical</enum>293 </spacer>
231 </property>294 </item>
232 <property name="sizeHint" stdset="0">295 <item>
233 <size>296 <layout class="QVBoxLayout" name="verticalLayout_11">
234 <width>20</width>297 <item>
235 <height>40</height>298 <spacer name="verticalSpacer_6">
236 </size>299 <property name="orientation">
237 </property>300 <enum>Qt::Vertical</enum>
238 </spacer>301 </property>
239 </item>302 <property name="sizeHint" stdset="0">
240 <item>303 <size>
241 <widget class="QFrame" name="frameNoDevices">304 <width>20</width>
242 <property name="frameShape">305 <height>40</height>
243 <enum>QFrame::NoFrame</enum>306 </size>
244 </property>307 </property>
245 <property name="frameShadow">308 </spacer>
246 <enum>QFrame::Raised</enum>309 </item>
247 </property>310 <item>
248 <layout class="QVBoxLayout" name="verticalLayout_13">311 <widget class="QFrame" name="frameNoDevices">
249 <item>312 <property name="frameShape">
250 <widget class="QLabel" name="labelNoDevices">313 <enum>QFrame::NoFrame</enum>
251 <property name="font">314 </property>
252 <font>315 <property name="frameShadow">
253 <family>Ubuntu</family>316 <enum>QFrame::Raised</enum>
254 <pointsize>12</pointsize>317 </property>
255 <weight>50</weight>318 <layout class="QVBoxLayout" name="verticalLayout_13">
256 <italic>false</italic>319 <item>
257 <bold>false</bold>320 <widget class="QLabel" name="labelNoDevices">
258 </font>321 <property name="font">
259 </property>322 <font>
260 <property name="text">323 <family>Ubuntu</family>
261 <string>No devices detected.</string>324 <pointsize>12</pointsize>
262 </property>325 <weight>50</weight>
263 <property name="alignment">326 <italic>false</italic>
264 <set>Qt::AlignCenter</set>327 <bold>false</bold>
265 </property>328 </font>
266 </widget>329 </property>
267 </item>330 <property name="text">
268 <item>331 <string>No devices detected.</string>
269 <widget class="QPushButton" name="pushButtonRefresh_2">332 </property>
270 <property name="text">333 <property name="alignment">
271 <string>Redetect devices</string>334 <set>Qt::AlignCenter</set>
272 </property>335 </property>
273 </widget>336 </widget>
274 </item>337 </item>
275 </layout>338 <item>
276 </widget>339 <widget class="QPushButton" name="pushButtonRefresh_2">
277 </item>340 <property name="text">
278 <item>341 <string>Redetect devices</string>
279 <widget class="QFrame" name="frameNoNetwork">342 </property>
280 <property name="frameShape">343 </widget>
281 <enum>QFrame::NoFrame</enum>344 </item>
282 </property>345 </layout>
283 <property name="frameShadow">346 </widget>
284 <enum>QFrame::Raised</enum>347 </item>
285 </property>348 <item>
286 <layout class="QVBoxLayout" name="verticalLayout_12">349 <widget class="QFrame" name="frameNoNetwork">
287 <item>350 <property name="frameShape">
288 <widget class="QLabel" name="lblNoNetwork">351 <enum>QFrame::NoFrame</enum>
289 <property name="font">352 </property>
290 <font>353 <property name="frameShadow">
291 <family>Ubuntu</family>354 <enum>QFrame::Raised</enum>
292 <pointsize>12</pointsize>355 </property>
293 </font>356 <layout class="QVBoxLayout" name="verticalLayout_12">
294 </property>357 <item>
295 <property name="text">358 <widget class="QLabel" name="lblNoNetwork">
296 <string>Device has no network connection.359 <property name="font">
360 <font>
361 <family>Ubuntu</family>
362 <pointsize>12</pointsize>
363 </font>
364 </property>
365 <property name="text">
366 <string>Device has no network connection.
297Connect to a wlan or to a wwan and try again.</string>367Connect to a wlan or to a wwan and try again.</string>
298 </property>368 </property>
299 <property name="alignment">369 <property name="alignment">
300 <set>Qt::AlignCenter</set>370 <set>Qt::AlignCenter</set>
301 </property>371 </property>
302 </widget>372 </widget>
303 </item>373 </item>
304 <item>374 <item>
305 <widget class="QPushButton" name="pushButtonCloneNetworkConfig">375 <widget class="QPushButton" name="pushButtonCloneNetworkConfig">
306 <property name="text">376 <property name="text">
307 <string>Clone network config from host to device</string>377 <string>Clone network config from host to device</string>
308 </property>378 </property>
309 </widget>379 </widget>
310 </item>380 </item>
311 </layout>381 </layout>
312 </widget>382 </widget>
313 </item>383 </item>
314 <item>
315 <widget class="QLabel" name="lblLoading">
316 <property name="text">
317 <string>please wait..</string>
318 </property>
319 <property name="alignment">
320 <set>Qt::AlignCenter</set>
321 </property>
322 </widget>
323 </item>
324 <item>
325 <widget class="QPushButton" name="pushButtonCancel">
326 <property name="font">
327 <font>
328 <family>Ubuntu</family>
329 <pointsize>12</pointsize>
330 </font>
331 </property>
332 <property name="styleSheet">
333 <string notr="true">padding: 10; color: #333</string>
334 </property>
335 <property name="text">
336 <string>Cancel</string>
337 </property>
338 </widget>
339 </item>
340 <item>
341 <spacer name="verticalSpacer_5">
342 <property name="orientation">
343 <enum>Qt::Vertical</enum>
344 </property>
345 <property name="sizeHint" stdset="0">
346 <size>
347 <width>20</width>
348 <height>40</height>
349 </size>
350 </property>
351 </spacer>
352 </item>
353 </layout>
354 </item>
355 <item>
356 <widget class="QWidget" name="widgetDeviceInfo" native="true">
357 <property name="sizePolicy">
358 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
359 <horstretch>0</horstretch>
360 <verstretch>0</verstretch>
361 </sizepolicy>
362 </property>
363 <layout class="QVBoxLayout" name="verticalLayout_6">
364 <property name="topMargin">
365 <number>0</number>
366 </property>
367 <property name="bottomMargin">
368 <number>9</number>
369 </property>
370 <item>
371 <widget class="QFrame" name="frame">
372 <property name="frameShape">
373 <enum>QFrame::NoFrame</enum>
374 </property>
375 <property name="frameShadow">
376 <enum>QFrame::Raised</enum>
377 </property>
378 <layout class="QVBoxLayout" name="verticalLayout_15">
379 <property name="leftMargin">
380 <number>0</number>
381 </property>
382 <property name="topMargin">
383 <number>0</number>
384 </property>
385 <property name="rightMargin">
386 <number>0</number>
387 </property>
388 <property name="bottomMargin">
389 <number>0</number>
390 </property>
391 <item>384 <item>
392 <widget class="QLabel" name="label_7">385 <widget class="QLabel" name="lblLoading">
393 <property name="text">386 <property name="text">
394 <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;You will find Ubuntu UI templates from &lt;span style=&quot; font-weight:600;&quot;&gt;File &amp;gt; New File or Project&lt;/span&gt;. &lt;/p&gt;&lt;p&gt;After which you can deploy your app to the device using &lt;span style=&quot; font-weight:600; font-style:italic;&quot;&gt;CTRL+F12&lt;/span&gt; or&lt;br/&gt;by browsing &lt;span style=&quot; font-weight:600; font-style:italic;&quot;&gt;Build &amp;gt; Ubuntu &amp;gt; Run in Ubuntu Device.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;You can also find screenshot feature from &lt;b&gt;&lt;i&gt;Tools &amp;gt; Ubuntu&lt;/i&gt;&lt;/b&gt; and&lt;br /&gt;links from &lt;b&gt;&lt;i&gt;Help &amp;gt; Ubuntu&lt;/i&gt;&lt;/b&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>387 <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:16pt; font-weight:600;&quot;&gt;Please wait&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;See more details by changing to &lt;span style=&quot; font-style:italic;&quot;&gt;Log&lt;/span&gt; tab below.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
388 </property>
389 <property name="alignment">
390 <set>Qt::AlignCenter</set>
395 </property>391 </property>
396 </widget>392 </widget>
397 </item>393 </item>
394 <item>
395 <spacer name="verticalSpacer_5">
396 <property name="orientation">
397 <enum>Qt::Vertical</enum>
398 </property>
399 <property name="sizeHint" stdset="0">
400 <size>
401 <width>20</width>
402 <height>40</height>
403 </size>
404 </property>
405 </spacer>
406 </item>
398 </layout>407 </layout>
399 </widget>408 </item>
400 </item>409 <item>
401 <item>410 <spacer name="horizontalSpacer_4">
402 <spacer name="verticalSpacer_2">411 <property name="orientation">
403 <property name="orientation">412 <enum>Qt::Horizontal</enum>
404 <enum>Qt::Vertical</enum>413 </property>
405 </property>414 <property name="sizeType">
406 <property name="sizeHint" stdset="0">415 <enum>QSizePolicy::MinimumExpanding</enum>
407 <size>416 </property>
408 <width>20</width>417 <property name="sizeHint" stdset="0">
409 <height>40</height>418 <size>
410 </size>419 <width>365</width>
411 </property>420 <height>20</height>
412 </spacer>421 </size>
413 </item>422 </property>
414 <item>423 </spacer>
415 <widget class="QWidget" name="widgetSshProperties" native="true">424 </item>
416 <layout class="QGridLayout" name="gridLayout">425 </layout>
417 <property name="topMargin">426 </widget>
418 <number>0</number>427 <widget class="QWidget" name="page_4">
419 </property>428 <layout class="QVBoxLayout" name="verticalLayout_19">
420 <property name="bottomMargin">429 <item>
421 <number>0</number>430 <widget class="QStackedWidget" name="stackedWidgetConnectedDevice">
422 </property>431 <property name="currentIndex">
423 <item row="1" column="0">432 <number>1</number>
424 <widget class="QPushButton" name="pushButtonPortForward">433 </property>
425 <property name="styleSheet">434 <widget class="QWidget" name="page_5">
426 <string notr="true">color: #333</string>435 <layout class="QHBoxLayout" name="horizontalLayout_8">
427 </property>436 <item>
428 <property name="text">437 <widget class="QWidget" name="widgetDeviceInfo" native="true">
429 <string>Enable port forward from device to localhost</string>438 <property name="sizePolicy">
430 </property>439 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
431 </widget>440 <horstretch>0</horstretch>
432 </item>441 <verstretch>0</verstretch>
433 <item row="2" column="0">442 </sizepolicy>
434 <widget class="QPushButton" name="pushButtonSshSetupPublicKey">443 </property>
435 <property name="enabled">444 <layout class="QHBoxLayout" name="horizontalLayout_6">
436 <bool>true</bool>445 <property name="topMargin">
437 </property>446 <number>0</number>
438 <property name="styleSheet">447 </property>
439 <string notr="true">color: #333</string>448 <property name="bottomMargin">
440 </property>449 <number>9</number>
441 <property name="text">450 </property>
442 <string>Setup public key authentication</string>451 <item>
443 </property>452 <widget class="QStackedWidget" name="stackedWidgetDeveloperMode">
444 </widget>453 <property name="currentIndex">
445 </item>454 <number>0</number>
446 <item row="0" column="0">455 </property>
447 <widget class="QGroupBox" name="groupBox_3">456 <widget class="QWidget" name="page">
448 <property name="title">457 <layout class="QVBoxLayout" name="verticalLayout_16">
449 <string/>458 <item>
450 </property>459 <widget class="QLabel" name="label_7">
451 <layout class="QHBoxLayout" name="horizontalLayout_5">460 <property name="text">
452 <property name="topMargin">461 <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:16pt;&quot;&gt;Your device has been detected.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Next&lt;span style=&quot; font-weight:600; font-style:italic;&quot;&gt; you &lt;/span&gt;&lt;span style=&quot; font-weight:600; font-style:italic;&quot;&gt;will need to Enable Developer Mode &lt;/span&gt;from the right side.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
453 <number>0</number>462 </property>
454 </property>463 <property name="textFormat">
455 <property name="bottomMargin">464 <enum>Qt::RichText</enum>
456 <number>0</number>465 </property>
457 </property>466 </widget>
458 <item>467 </item>
459 <widget class="QLabel" name="label_3">468 </layout>
460 <property name="text">469 </widget>
461 <string>Username</string>470 <widget class="QWidget" name="page_2">
462 </property>471 <layout class="QVBoxLayout" name="verticalLayout_17">
463 </widget>472 <item>
464 </item>473 <widget class="QLabel" name="label_4">
465 <item>474 <property name="text">
466 <widget class="QLineEdit" name="lineEditUserName">475 <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-size:16pt;&quot;&gt;Your device has been enabled for developer use!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;You will find Ubuntu UI templates from &lt;span style=&quot; font-weight:600;&quot;&gt;File &amp;gt; New File or Project&lt;/span&gt;. &lt;/p&gt;&lt;p&gt;After which you can deploy your app to the device using &lt;span style=&quot; font-weight:600; font-style:italic;&quot;&gt;CTRL+F12&lt;/span&gt; or&lt;br/&gt;by browsing &lt;span style=&quot; font-weight:600; font-style:italic;&quot;&gt;Build &amp;gt; Ubuntu Touch &amp;gt; Run Application on Device.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;You can also find screenshot feature from &lt;span style=&quot; font-weight:600; font-style:italic;&quot;&gt;Tools &amp;gt; Ubuntu Touch&lt;/span&gt; and&lt;br/&gt;links from &lt;span style=&quot; font-weight:600; font-style:italic;&quot;&gt;Help &amp;gt; Ubuntu Touch&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
467 <property name="enabled">476 </property>
468 <bool>false</bool>477 </widget>
469 </property>478 </item>
470 <property name="text">479 </layout>
471 <string>phablet</string>480 </widget>
472 </property>481 </widget>
473 </widget>482 </item>
474 </item>483 <item>
475 <item>484 <widget class="QFrame" name="frame">
476 <widget class="QLabel" name="label_6">485 <property name="frameShape">
477 <property name="text">486 <enum>QFrame::NoFrame</enum>
478 <string>Ssh Port</string>487 </property>
479 </property>488 <property name="frameShadow">
480 </widget>489 <enum>QFrame::Raised</enum>
481 </item>490 </property>
482 <item>491 <layout class="QVBoxLayout" name="verticalLayout_15">
483 <widget class="QSpinBox" name="spinBoxSshPort">492 <property name="leftMargin">
484 <property name="enabled">493 <number>0</number>
485 <bool>false</bool>494 </property>
486 </property>495 <property name="topMargin">
487 <property name="minimum">496 <number>0</number>
488 <number>1300</number>497 </property>
489 </property>498 <property name="rightMargin">
490 <property name="maximum">499 <number>0</number>
491 <number>32000</number>500 </property>
492 </property>501 <property name="bottomMargin">
493 <property name="value">502 <number>0</number>
494 <number>2222</number>503 </property>
495 </property>504 </layout>
496 </widget>505 </widget>
497 </item>506 </item>
498 <item>507 </layout>
499 <widget class="QLabel" name="label_5">508 </widget>
500 <property name="text">509 </item>
501 <string>QML Port</string>510 <item>
502 </property>511 <widget class="QTabWidget" name="tabWidget_2">
503 </widget>512 <property name="tabPosition">
504 </item>513 <enum>QTabWidget::West</enum>
505 <item>514 </property>
506 <widget class="QSpinBox" name="spinBoxQmlPort">515 <property name="currentIndex">
507 <property name="enabled">516 <number>0</number>
508 <bool>false</bool>517 </property>
509 </property>518 <property name="documentMode">
510 <property name="minimum">519 <bool>true</bool>
511 <number>1300</number>520 </property>
512 </property>521 <widget class="QWidget" name="tab_3">
513 <property name="maximum">522 <attribute name="title">
514 <number>32000</number>523 <string>Simple</string>
515 </property>524 </attribute>
516 <property name="value">525 <layout class="QVBoxLayout" name="verticalLayout_6">
517 <number>3768</number>526 <item>
518 </property>527 <widget class="QWidget" name="widget_2" native="true">
519 </widget>528 <layout class="QVBoxLayout" name="verticalLayout_5">
520 </item>529 <item>
521 </layout>530 <spacer name="verticalSpacer">
522 </widget>531 <property name="orientation">
523 </item>532 <enum>Qt::Vertical</enum>
524 <item row="5" column="0">533 </property>
525 <widget class="QGroupBox" name="groupBox">534 <property name="sizeHint" stdset="0">
526 <property name="title">535 <size>
527 <string>Device Mode</string>536 <width>20</width>
528 </property>537 <height>40</height>
529 <layout class="QVBoxLayout" name="verticalLayout_7">538 </size>
530 <property name="bottomMargin">539 </property>
531 <number>0</number>540 </spacer>
532 </property>541 </item>
533 <item>542 <item>
534 <layout class="QHBoxLayout" name="horizontalLayout_4">543 <widget class="QPushButton" name="pushButtonCloneNetworkConfig_2">
535 <item>544 <property name="text">
536 <widget class="QPushButton" name="pushButtonReboot">545 <string>Clone network config from host to device</string>
537 <property name="sizePolicy">546 </property>
538 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">547 </widget>
539 <horstretch>0</horstretch>548 </item>
540 <verstretch>0</verstretch>549 <item>
541 </sizepolicy>550 <widget class="QPushButton" name="pushButtonCloneTimeConfig">
542 </property>551 <property name="text">
543 <property name="styleSheet">552 <string>Clone time config from host to device</string>
544 <string notr="true">color: #333</string>553 </property>
545 </property>554 </widget>
546 <property name="text">555 </item>
547 <string>Reboot</string>556 <item>
548 </property>557 <widget class="QPushButton" name="pushButtonSshInstall">
549 </widget>558 <property name="font">
550 </item>559 <font>
551 <item>560 <family>Ubuntu</family>
552 <widget class="QPushButton" name="pushButtonShutdown">561 <pointsize>12</pointsize>
553 <property name="sizePolicy">562 <weight>50</weight>
554 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">563 <italic>false</italic>
555 <horstretch>0</horstretch>564 <bold>false</bold>
556 <verstretch>0</verstretch>565 </font>
557 </sizepolicy>566 </property>
558 </property>567 <property name="styleSheet">
559 <property name="styleSheet">568 <string notr="true">padding: 10; color: #333</string>
560 <string notr="true">color: #333</string>569 </property>
561 </property>570 <property name="text">
562 <property name="text">571 <string>Enable developer mode</string>
563 <string>Shutdown</string>572 </property>
564 </property>573 <property name="flat">
565 </widget>574 <bool>false</bool>
566 </item>575 </property>
567 <item>576 </widget>
568 <widget class="QPushButton" name="pushButtonRebootToBootloader">577 </item>
569 <property name="sizePolicy">578 <item>
570 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">579 <widget class="QPushButton" name="pushButtonSshRemove">
571 <horstretch>0</horstretch>580 <property name="font">
572 <verstretch>0</verstretch>581 <font>
573 </sizepolicy>582 <family>Ubuntu</family>
574 </property>583 <pointsize>12</pointsize>
575 <property name="styleSheet">584 </font>
576 <string notr="true">color: #333</string>585 </property>
577 </property>586 <property name="styleSheet">
578 <property name="text">587 <string notr="true">padding: 10; color: #333</string>
579 <string>Reboot to 588 </property>
589 <property name="text">
590 <string>Disable developer mode</string>
591 </property>
592 </widget>
593 </item>
594 <item>
595 <spacer name="verticalSpacer_2">
596 <property name="orientation">
597 <enum>Qt::Vertical</enum>
598 </property>
599 <property name="sizeHint" stdset="0">
600 <size>
601 <width>20</width>
602 <height>40</height>
603 </size>
604 </property>
605 </spacer>
606 </item>
607 </layout>
608 </widget>
609 </item>
610 </layout>
611 </widget>
612 <widget class="QWidget" name="tab_4">
613 <attribute name="title">
614 <string>Advanced</string>
615 </attribute>
616 <layout class="QVBoxLayout" name="verticalLayout_10">
617 <item>
618 <widget class="QWidget" name="widgetSshProperties" native="true">
619 <layout class="QGridLayout" name="gridLayout">
620 <property name="topMargin">
621 <number>0</number>
622 </property>
623 <property name="bottomMargin">
624 <number>0</number>
625 </property>
626 <item row="2" column="1">
627 <widget class="QPushButton" name="pushButtonPortForward">
628 <property name="styleSheet">
629 <string notr="true">color: #333</string>
630 </property>
631 <property name="text">
632 <string>Enable port forward from device to localhost</string>
633 </property>
634 </widget>
635 </item>
636 <item row="3" column="1">
637 <widget class="QPushButton" name="pushButtonSshSetupPublicKey">
638 <property name="enabled">
639 <bool>true</bool>
640 </property>
641 <property name="styleSheet">
642 <string notr="true">color: #333</string>
643 </property>
644 <property name="text">
645 <string>Setup public key authentication</string>
646 </property>
647 </widget>
648 </item>
649 <item row="1" column="1">
650 <widget class="QGroupBox" name="groupBox_3">
651 <property name="title">
652 <string/>
653 </property>
654 <layout class="QHBoxLayout" name="horizontalLayout_5">
655 <property name="topMargin">
656 <number>0</number>
657 </property>
658 <property name="bottomMargin">
659 <number>0</number>
660 </property>
661 <item>
662 <widget class="QLabel" name="label_3">
663 <property name="text">
664 <string>Username</string>
665 </property>
666 </widget>
667 </item>
668 <item>
669 <widget class="QLineEdit" name="lineEditUserName">
670 <property name="enabled">
671 <bool>false</bool>
672 </property>
673 <property name="text">
674 <string>phablet</string>
675 </property>
676 </widget>
677 </item>
678 <item>
679 <widget class="QLabel" name="label_6">
680 <property name="text">
681 <string>Ssh Port</string>
682 </property>
683 </widget>
684 </item>
685 <item>
686 <widget class="QSpinBox" name="spinBoxSshPort">
687 <property name="enabled">
688 <bool>false</bool>
689 </property>
690 <property name="minimum">
691 <number>1300</number>
692 </property>
693 <property name="maximum">
694 <number>32000</number>
695 </property>
696 <property name="value">
697 <number>2222</number>
698 </property>
699 </widget>
700 </item>
701 <item>
702 <widget class="QLabel" name="label_5">
703 <property name="text">
704 <string>QML Port</string>
705 </property>
706 </widget>
707 </item>
708 <item>
709 <widget class="QSpinBox" name="spinBoxQmlPort">
710 <property name="enabled">
711 <bool>false</bool>
712 </property>
713 <property name="minimum">
714 <number>1300</number>
715 </property>
716 <property name="maximum">
717 <number>32000</number>
718 </property>
719 <property name="value">
720 <number>3768</number>
721 </property>
722 </widget>
723 </item>
724 </layout>
725 </widget>
726 </item>
727 <item row="4" column="1">
728 <widget class="QPushButton" name="pushButtonSshConnect">
729 <property name="styleSheet">
730 <string notr="true">color: #333</string>
731 </property>
732 <property name="text">
733 <string>Open ssh connection to device</string>
734 </property>
735 </widget>
736 </item>
737 <item row="5" column="1">
738 <widget class="QGroupBox" name="groupBox_2">
739 <property name="title">
740 <string>Flash the device</string>
741 </property>
742 <layout class="QVBoxLayout" name="verticalLayout_9">
743 <property name="topMargin">
744 <number>9</number>
745 </property>
746 <property name="bottomMargin">
747 <number>0</number>
748 </property>
749 <item>
750 <widget class="QPushButton" name="pushButtonUpgradeToDailyImage">
751 <property name="styleSheet">
752 <string notr="true">color: #333</string>
753 </property>
754 <property name="text">
755 <string>Upgrade to daily image</string>
756 </property>
757 </widget>
758 </item>
759 <item>
760 <widget class="QPushButton" name="pushButtonUpgradeToDailyImageWithBootstrap">
761 <property name="styleSheet">
762 <string notr="true">color: #333</string>
763 </property>
764 <property name="text">
765 <string>Upgrade to daily image (with full bootstrap)</string>
766 </property>
767 </widget>
768 </item>
769 </layout>
770 </widget>
771 </item>
772 <item row="7" column="1">
773 <spacer name="verticalSpacer_3">
774 <property name="orientation">
775 <enum>Qt::Vertical</enum>
776 </property>
777 <property name="sizeHint" stdset="0">
778 <size>
779 <width>20</width>
780 <height>40</height>
781 </size>
782 </property>
783 </spacer>
784 </item>
785 <item row="0" column="1">
786 <spacer name="verticalSpacer_4">
787 <property name="orientation">
788 <enum>Qt::Vertical</enum>
789 </property>
790 <property name="sizeHint" stdset="0">
791 <size>
792 <width>20</width>
793 <height>40</height>
794 </size>
795 </property>
796 </spacer>
797 </item>
798 <item row="6" column="1">
799 <widget class="QGroupBox" name="groupBox">
800 <property name="title">
801 <string>Device Mode</string>
802 </property>
803 <layout class="QVBoxLayout" name="verticalLayout_7">
804 <property name="bottomMargin">
805 <number>0</number>
806 </property>
807 <item>
808 <layout class="QHBoxLayout" name="horizontalLayout_4">
809 <item>
810 <widget class="QPushButton" name="pushButtonReboot">
811 <property name="sizePolicy">
812 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
813 <horstretch>0</horstretch>
814 <verstretch>0</verstretch>
815 </sizepolicy>
816 </property>
817 <property name="styleSheet">
818 <string notr="true">color: #333</string>
819 </property>
820 <property name="text">
821 <string>Reboot</string>
822 </property>
823 </widget>
824 </item>
825 <item>
826 <widget class="QPushButton" name="pushButtonShutdown">
827 <property name="sizePolicy">
828 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
829 <horstretch>0</horstretch>
830 <verstretch>0</verstretch>
831 </sizepolicy>
832 </property>
833 <property name="styleSheet">
834 <string notr="true">color: #333</string>
835 </property>
836 <property name="text">
837 <string>Shutdown</string>
838 </property>
839 </widget>
840 </item>
841 <item>
842 <widget class="QPushButton" name="pushButtonRebootToBootloader">
843 <property name="sizePolicy">
844 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
845 <horstretch>0</horstretch>
846 <verstretch>0</verstretch>
847 </sizepolicy>
848 </property>
849 <property name="styleSheet">
850 <string notr="true">color: #333</string>
851 </property>
852 <property name="text">
853 <string>Reboot to
580Bootloader</string>854Bootloader</string>
581 </property>855 </property>
582 </widget>856 </widget>
583 </item>857 </item>
584 <item>858 <item>
585 <widget class="QPushButton" name="pushButtonRebootToRecovery">859 <widget class="QPushButton" name="pushButtonRebootToRecovery">
586 <property name="sizePolicy">860 <property name="sizePolicy">
587 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">861 <sizepolicy hsizetype="Minimum" vsizetype="Expanding">
588 <horstretch>0</horstretch>862 <horstretch>0</horstretch>
589 <verstretch>0</verstretch>863 <verstretch>0</verstretch>
590 </sizepolicy>864 </sizepolicy>
591 </property>865 </property>
592 <property name="styleSheet">866 <property name="styleSheet">
593 <string notr="true">color: #333</string>867 <string notr="true">color: #333</string>
594 </property>868 </property>
595 <property name="text">869 <property name="text">
596 <string>Reboot to870 <string>Reboot to
597Recovery</string>871Recovery</string>
598 </property>872 </property>
599 </widget>873 </widget>
600 </item>874 </item>
601 </layout>875 </layout>
602 </item>876 </item>
603 </layout>877 </layout>
604 </widget>878 </widget>
605 </item>879 </item>
606 <item row="4" column="0">880 </layout>
607 <widget class="QGroupBox" name="groupBox_2">881 </widget>
608 <property name="title">882 </item>
609 <string>Flash the device</string>883 </layout>
610 </property>884 </widget>
611 <layout class="QVBoxLayout" name="verticalLayout_9">885 </widget>
612 <property name="topMargin">886 </item>
613 <number>9</number>887 </layout>
614 </property>888 </widget>
615 <property name="bottomMargin">889 <widget class="QWidget" name="page_6">
616 <number>0</number>890 <layout class="QVBoxLayout" name="verticalLayout_18">
617 </property>891 <item>
618 <item>892 <spacer name="verticalSpacer_7">
619 <widget class="QPushButton" name="pushButtonUpgradeToDailyImage">893 <property name="orientation">
620 <property name="styleSheet">894 <enum>Qt::Vertical</enum>
621 <string notr="true">color: #333</string>895 </property>
622 </property>896 <property name="sizeHint" stdset="0">
623 <property name="text">897 <size>
624 <string>Upgrade to daily image</string>898 <width>20</width>
625 </property>899 <height>40</height>
626 </widget>900 </size>
627 </item>901 </property>
628 <item>902 </spacer>
629 <widget class="QPushButton" name="pushButtonUpgradeToDailyImageWithBootstrap">903 </item>
630 <property name="styleSheet">904 <item>
631 <string notr="true">color: #333</string>905 <widget class="QLabel" name="label_8">
632 </property>906 <property name="text">
633 <property name="text">907 <string>Executing following script in the background..</string>
634 <string>/!\ Upgrade to daily image (with full bootstrap) /!\</string>908 </property>
635 </property>909 <property name="alignment">
636 </widget>910 <set>Qt::AlignCenter</set>
637 </item>911 </property>
638 </layout>912 </widget>
639 </widget>913 </item>
640 </item>914 <item>
641 <item row="3" column="0">915 <widget class="QLabel" name="lblDeviceProcessInfo">
642 <widget class="QPushButton" name="pushButtonSshConnect">916 <property name="font">
643 <property name="styleSheet">917 <font>
644 <string notr="true">color: #333</string>918 <pointsize>20</pointsize>
645 </property>919 </font>
646 <property name="text">920 </property>
647 <string>Open ssh connection to device</string>921 <property name="text">
648 </property>922 <string>TextLabel</string>
649 </widget>923 </property>
650 </item>924 <property name="alignment">
651 </layout>925 <set>Qt::AlignCenter</set>
652 </widget>926 </property>
653 </item>927 </widget>
654 <item>928 </item>
655 <spacer name="verticalSpacer_3">929 <item>
656 <property name="orientation">930 <widget class="QProgressBar" name="progressBar">
657 <enum>Qt::Vertical</enum>931 <property name="value">
658 </property>932 <number>24</number>
659 <property name="sizeHint" stdset="0">933 </property>
660 <size>934 </widget>
661 <width>20</width>935 </item>
662 <height>40</height>936 <item>
663 </size>937 <widget class="QLabel" name="label_9">
664 </property>938 <property name="text">
665 </spacer>939 <string>Please wait.. if you like you can follow the progress on the &lt;i&gt;Log&lt;/i&gt; tab at the bottom.</string>
666 </item>940 </property>
667 <item>941 <property name="alignment">
668 <widget class="QPushButton" name="pushButtonCloneNetworkConfig_2">942 <set>Qt::AlignCenter</set>
669 <property name="text">943 </property>
670 <string>Clone network config from host to device</string>944 </widget>
671 </property>945 </item>
672 </widget>946 <item>
673 </item>947 <spacer name="verticalSpacer_8">
674 <item>948 <property name="orientation">
675 <widget class="QPushButton" name="pushButtonCloneTimeConfig">949 <enum>Qt::Vertical</enum>
676 <property name="text">950 </property>
677 <string>Clone time config from host to device</string>951 <property name="sizeHint" stdset="0">
678 </property>952 <size>
679 </widget>953 <width>20</width>
680 </item>954 <height>40</height>
681 <item>955 </size>
682 <widget class="QPushButton" name="pushButtonSshInstall">956 </property>
683 <property name="font">957 </spacer>
684 <font>958 </item>
685 <family>Ubuntu</family>959 </layout>
686 <pointsize>12</pointsize>960 </widget>
687 <weight>50</weight>961 </widget>
688 <italic>false</italic>962 </item>
689 <bold>false</bold>963 </layout>
690 </font>964 </widget>
691 </property>
692 <property name="styleSheet">
693 <string notr="true">padding: 10; color: #333</string>
694 </property>
695 <property name="text">
696 <string>Enable developer mode</string>
697 </property>
698 <property name="flat">
699 <bool>false</bool>
700 </property>
701 </widget>
702 </item>
703 <item>
704 <widget class="QPushButton" name="pushButtonSshRemove">
705 <property name="font">
706 <font>
707 <family>Ubuntu</family>
708 <pointsize>12</pointsize>
709 </font>
710 </property>
711 <property name="styleSheet">
712 <string notr="true">padding: 10; color: #333</string>
713 </property>
714 <property name="text">
715 <string>Disable developer mode</string>
716 </property>
717 </widget>
718 </item>
719 <item>
720 <spacer name="verticalSpacer">
721 <property name="orientation">
722 <enum>Qt::Vertical</enum>
723 </property>
724 <property name="sizeHint" stdset="0">
725 <size>
726 <width>20</width>
727 <height>40</height>
728 </size>
729 </property>
730 </spacer>
731 </item>
732 <item>
733 <widget class="QWidget" name="widgetDeviceSerial" native="true">
734 <layout class="QVBoxLayout" name="verticalLayout_4">
735 <property name="leftMargin">
736 <number>0</number>
737 </property>
738 <property name="topMargin">
739 <number>0</number>
740 </property>
741 <property name="rightMargin">
742 <number>0</number>
743 </property>
744 <property name="bottomMargin">
745 <number>0</number>
746 </property>
747 <item>
748 <layout class="QHBoxLayout" name="horizontalLayout_2">
749 <item>
750 <widget class="QLabel" name="label_2">
751 <property name="font">
752 <font>
753 <family>Ubuntu</family>
754 </font>
755 </property>
756 <property name="text">
757 <string>Serial number</string>
758 </property>
759 </widget>
760 </item>
761 <item>
762 <widget class="QLabel" name="lblSerialnumber">
763 <property name="font">
764 <font>
765 <family>Ubuntu</family>
766 <pointsize>9</pointsize>
767 </font>
768 </property>
769 <property name="text">
770 <string/>
771 </property>
772 </widget>
773 </item>
774 <item>
775 <spacer name="horizontalSpacer_2">
776 <property name="orientation">
777 <enum>Qt::Horizontal</enum>
778 </property>
779 <property name="sizeHint" stdset="0">
780 <size>
781 <width>40</width>
782 <height>20</height>
783 </size>
784 </property>
785 </spacer>
786 </item>
787 <item>
788 <widget class="QLabel" name="label_4">
789 <property name="font">
790 <font>
791 <family>Ubuntu</family>
792 </font>
793 </property>
794 <property name="text">
795 <string>State</string>
796 </property>
797 </widget>
798 </item>
799 <item>
800 <widget class="QLabel" name="lblDeviceName">
801 <property name="font">
802 <font>
803 <family>Ubuntu</family>
804 <pointsize>9</pointsize>
805 </font>
806 </property>
807 <property name="text">
808 <string/>
809 </property>
810 </widget>
811 </item>
812 </layout>
813 </item>
814 </layout>
815 </widget>
816 </item>
817 </layout>
818 </widget>965 </widget>
819 </item>966 </item>
820 <item>
821 <spacer name="horizontalSpacer_3">
822 <property name="orientation">
823 <enum>Qt::Horizontal</enum>
824 </property>
825 <property name="sizeType">
826 <enum>QSizePolicy::MinimumExpanding</enum>
827 </property>
828 <property name="sizeHint" stdset="0">
829 <size>
830 <width>40</width>
831 <height>20</height>
832 </size>
833 </property>
834 </spacer>
835 </item>
836 </layout>967 </layout>
837 </widget>968 </widget>
838 <widget class="QWidget" name="tab_2">969 <widget class="QWidget" name="tab_2">
839 <attribute name="title">970 <attribute name="title">
840 <string>Messages</string>971 <string>Log</string>
841 </attribute>972 </attribute>
842 <layout class="QVBoxLayout" name="verticalLayout_8">973 <layout class="QVBoxLayout" name="verticalLayout_8">
843 <item>974 <item>
844975
=== modified file 'qtcreator/src/plugins/ubuntu/ubuntumenu.cpp'
--- qtcreator/src/plugins/ubuntu/ubuntumenu.cpp 2013-04-24 17:24:47 +0000
+++ qtcreator/src/plugins/ubuntu/ubuntumenu.cpp 2013-05-01 23:52:25 +0000
@@ -336,6 +336,7 @@
336336
337 command = command.replace(QLatin1String(Constants::UBUNTU_ACTION_SHAREDIRECTORY),Constants::UBUNTU_SHAREPATH);337 command = command.replace(QLatin1String(Constants::UBUNTU_ACTION_SHAREDIRECTORY),Constants::UBUNTU_SHAREPATH);
338 command = command.replace(QLatin1String(Constants::UBUNTU_ACTION_SCRIPTDIRECTORY),Constants::UBUNTU_SCRIPTPATH);338 command = command.replace(QLatin1String(Constants::UBUNTU_ACTION_SCRIPTDIRECTORY),Constants::UBUNTU_SCRIPTPATH);
339 command = command.replace(QLatin1String(Constants::UBUNTU_ACTION_SERIALNUMBER),UbuntuDevicesWidget::instance()->serialNumber());
339340
340 if (bQuery && bQueryOk) {341 if (bQuery && bQueryOk) {
341 command = QString(command).arg(queryData);342 command = QString(command).arg(queryData);
342343
=== modified file 'qtcreator/src/plugins/ubuntu/ubuntuprojectapplicationwizard.cpp'
--- qtcreator/src/plugins/ubuntu/ubuntuprojectapplicationwizard.cpp 2013-04-24 13:38:33 +0000
+++ qtcreator/src/plugins/ubuntu/ubuntuprojectapplicationwizard.cpp 2013-05-01 23:52:25 +0000
@@ -28,6 +28,8 @@
28#include <qtsupport/qtsupportconstants.h>28#include <qtsupport/qtsupportconstants.h>
29#include <coreplugin/icore.h>29#include <coreplugin/icore.h>
3030
31#include <QtGlobal>
32
31#include <QIcon>33#include <QIcon>
32#include <QDir>34#include <QDir>
33#include <QDebug>35#include <QDebug>
@@ -57,8 +59,12 @@
5759
58Core::FeatureSet UbuntuProjectApplicationWizard::requiredFeatures() const60Core::FeatureSet UbuntuProjectApplicationWizard::requiredFeatures() const
59{61{
60 return Core::Feature(QtSupport::Constants::FEATURE_QMLPROJECT)62#ifdef Q_PROCESSOR_ARM
61 | Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_2);63 return Core::Feature(0);
64#else
65 return Core::Feature(QtSupport::Constants::FEATURE_QMLPROJECT)
66 | Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_2);
67#endif
62}68}
6369
64Core::BaseFileWizardParameters UbuntuProjectApplicationWizard::parameters(QJsonObject params)70Core::BaseFileWizardParameters UbuntuProjectApplicationWizard::parameters(QJsonObject params)

Subscribers

People subscribed via source and target branches